|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.WFAction
public abstract class WFAction
This abstract class represents a workflow action attached to a WFState.
Nested Class Summary | |
---|---|
static class |
WFAction.AlertAdmins
|
static class |
WFAction.AlertAuthor
|
static class |
WFAction.AlertWorkers
|
Field Summary | |
---|---|
static String |
EVENT_IN
|
static String |
EVENT_OUT
|
protected long |
repeatTime
|
static String |
REVISION
|
static String |
TYPE_ALERT_ADMINS
|
static String |
TYPE_ALERT_AUTHOR
|
static String |
TYPE_ALERT_WORKERS
|
static String |
WF_ALERT_ADMIN_MAILORIGIN
MailMessage origin for workflow alert concerning administrator. |
static String |
WF_ALERT_AUTHOR_MAILORIGIN
MailMessage origin for workflow alert concerning author. |
static String |
WF_ALERT_PUBLICATION
Key used in context Map of MailMessage.send(java.util.HashMap)
method to store the publication for which the workflow alert mail is being sent. |
static String |
WF_ALERT_WORKER_MAILORIGIN
MailMessage origin for workflow alert concerning worker. |
Constructor Summary | |
---|---|
WFAction()
|
Method Summary | |
---|---|
static WFAction |
getInstance(String type,
WFState state)
|
long |
getRepeatTime()
|
abstract String |
getType()
|
abstract void |
perform(Publication pub,
boolean isReminder)
|
void |
setRepeatTime(long v)
|
abstract String |
toString(String userLang)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
public static final String EVENT_IN
public static final String EVENT_OUT
public static final String TYPE_ALERT_AUTHOR
public static final String TYPE_ALERT_WORKERS
public static final String TYPE_ALERT_ADMINS
public static final String WF_ALERT_AUTHOR_MAILORIGIN
public static final String WF_ALERT_WORKER_MAILORIGIN
public static final String WF_ALERT_ADMIN_MAILORIGIN
public static final String WF_ALERT_PUBLICATION
MailMessage.send(java.util.HashMap)
method to store the publication for which the workflow alert mail is being sent.
Example of use in a MailPolicyFilter
public boolean beforeSendMail(MailMessage msg, HashMapctxt) { if (WF_ALERT_AUTHOR_MAILORIGIN.equals(msg.getOrigin()) || WF_ALERT_WORKER_MAILORIGIN.equals(msg.getOrigin()) || WF_ALERT_ADMIN_MAILORIGIN.equals(msg.getOrigin())) { Publication pub = (Publication) ctxt.get(WFAction.WF_ALERT_PUBLICATION); [...] } return true; }
protected long repeatTime
Constructor Detail |
---|
public WFAction()
Method Detail |
---|
public static WFAction getInstance(String type, WFState state)
public abstract String getType()
public abstract void perform(Publication pub, boolean isReminder)
public abstract String toString(String userLang)
public long getRepeatTime()
public void setRepeatTime(long v)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |