|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.mmbase.module.core.MMTable
|
+--org.mmbase.module.core.MMObjectBuilder
|
+--org.mmbase.module.builders.Email
Email builder, keeps and manages a queue of emails that need to be send by the SendMail module. It allows for emailing on time, repeat mail, stats and using urls as input for subject and body.
| Field Summary | |
static int |
STATE_DELIVERED
Indicates the email has been delivered. |
static int |
STATE_FAILED
Indicates the email has not been delivered due to an failure. |
static int |
STATE_QUEUED
Indicates the email has been queued and is waiting to be delivered. |
static int |
STATE_SPAMGARDE
Indicates the email has been mark as spam. |
static int |
STATE_UNKNOWN
Indicates the state of the email is unknown. |
static int |
STATE_WAITING
Indicates the email is waiting to be queued. |
static int |
TYPE_ONESHOT
Email will be sent and removed after sending. |
static int |
TYPE_ONESHOTKEEP
Email will be sent and will not be removed. |
static int |
TYPE_REPEATMAIL
Email will be sent and scheduled after sending for a next time |
| Fields inherited from class org.mmbase.module.core.MMObjectBuilder |
broadcastChanges, database, DEFAULT_ALINEA, DEFAULT_EOL, description, descriptions, fields, nodeCache, obj2type, OBJ2TYPE_MAX_SIZE, oType, REPLACE_CACHE, searchAge, sortedDBLayout, TEMPNODE_DEFAULT_SIZE, TemporaryNodes, virtual |
| Fields inherited from class org.mmbase.module.core.MMTable |
mmb, tableName |
| Constructor Summary | |
Email()
|
|
| Method Summary | |
void |
checkMailNode(MMObjectNode node)
check the message object |
void |
checkOneShotKeepMail(MMObjectNode node)
check the message object, now if state is 1 (oneshot) |
void |
checkOneShotMail(MMObjectNode node)
check the message object, now if state is 1 (oneshot) it mails and removed itself from the cloud when done |
void |
checkRepeatMail(MMObjectNode node)
check the message object, now if state is 1 (oneshot) it mails and removed itself from the cloud when done |
java.util.Vector |
getList(scanpage sp,
StringTagger tagger,
java.util.StringTokenizer tok)
some list commands for the email admin tool |
int |
getMaxNumberOfTasks()
return the maximum number of tasks we queue in memory |
int |
getMaxQueuedTime()
return the max time of queued messages |
java.util.Vector |
getMemTasks()
enum the tasks in memory for the admin tool |
int |
getNumberOfQueued()
return the number of queued messages |
int |
getNumberOfTasks()
return the number of tasks |
java.lang.String |
getPage(java.lang.String url)
getPage, using the scanparser. |
int |
getQueueProbeTime()
return the time interval we check the database for queued messages |
boolean |
init()
init |
int |
insert(java.lang.String owner,
MMObjectNode node)
insert new email object |
boolean |
performTask(MMObjectNode node)
performTask, called by the email probe if a email object needs to be handled (mostly because its mail time has passed). |
java.lang.String |
replace(scanpage sp,
java.util.StringTokenizer tok)
some stat calls used by the email admin tool |
int |
sendMailNode(MMObjectNode node)
|
| Methods inherited from class org.mmbase.module.core.MMTable |
size |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int STATE_UNKNOWN
public static final int STATE_WAITING
public static final int STATE_DELIVERED
public static final int STATE_FAILED
public static final int STATE_SPAMGARDE
public static final int STATE_QUEUED
public static final int TYPE_ONESHOT
public static final int TYPE_REPEATMAIL
public static final int TYPE_ONESHOTKEEP
| Constructor Detail |
public Email()
| Method Detail |
public boolean init()
init in class MMObjectBuilderorg.mmbase.module.core.MMObjectBuilderMMObjectBuilder.create()
public int insert(java.lang.String owner,
MMObjectNode node)
insert in class MMObjectBuilderorg.mmbase.module.core.MMObjectBuilderowner - The administrator creating the nodenode - The object to insert. The object need be of the same type as the current builder.int value which is the new object's unique number, -1 if the insert failed.public void checkOneShotMail(MMObjectNode node)
public void checkOneShotKeepMail(MMObjectNode node)
public void checkRepeatMail(MMObjectNode node)
public int sendMailNode(MMObjectNode node)
public void checkMailNode(MMObjectNode node)
public java.lang.String getPage(java.lang.String url)
public boolean performTask(MMObjectNode node)
public java.lang.String replace(scanpage sp,
java.util.StringTokenizer tok)
replace in class MMObjectBuilderorg.mmbase.module.core.MMObjectBuildersp - The scanpage (containing http and user info) that calls the functiontok - a list of strings that describe the (sub)command to executeString
public java.util.Vector getList(scanpage sp,
StringTagger tagger,
java.util.StringTokenizer tok)
getList in class MMObjectBuilderorg.mmbase.module.core.MMObjectBuildersp - The scanpage (containing http and user info) that calls the functiontagger - a Hashtable of parameters (name-value pairs) for the commandtok - a list of strings that describe the (sub)command to executeVector containing the result values as a Stringpublic java.util.Vector getMemTasks()
public int getNumberOfQueued()
public int getMaxQueuedTime()
public int getQueueProbeTime()
public int getNumberOfTasks()
public int getMaxNumberOfTasks()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||