public abstract class WFAction
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALERT_DOMAIN |
static java.lang.String |
EVENT_IN |
static java.lang.String |
EVENT_OUT |
static java.lang.String |
FORM_SUBMISSION_ALERT |
static java.lang.String |
FORM_SUBMISSION_FULLNAME_ALERT |
protected long |
repeatTime |
static java.lang.String |
REVISION |
static java.lang.String |
STATE_IN_ALERT |
static java.lang.String |
STATE_IN_FULLNAME_ALERT |
static java.lang.String |
STATE_OUT_ALERT |
static java.lang.String |
STATE_OUT_FULLNAME_ALERT |
static java.lang.String |
TYPE_ALERT_ADMINS |
static java.lang.String |
TYPE_ALERT_AUTHOR |
static java.lang.String |
TYPE_ALERT_WORKERS |
static java.lang.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. |
Constructor and Description |
---|
WFAction() |
Modifier and Type | Method and Description |
---|---|
static WFAction |
getInstance(java.lang.String type,
WFState state) |
long |
getRepeatTime() |
abstract java.lang.String |
getType() |
abstract void |
perform(Publication pub,
boolean isReminder,
java.lang.String alertName) |
protected void |
sendAlert(Publication pub,
java.util.Collection<Member> recipientSet,
boolean isReminder,
java.lang.String alertName) |
void |
setRepeatTime(long v) |
abstract java.lang.String |
toString(java.lang.String userLang) |
public static final java.lang.String REVISION
public static final java.lang.String ALERT_DOMAIN
public static final java.lang.String STATE_IN_ALERT
public static final java.lang.String STATE_OUT_ALERT
public static final java.lang.String FORM_SUBMISSION_ALERT
public static final java.lang.String STATE_IN_FULLNAME_ALERT
public static final java.lang.String STATE_OUT_FULLNAME_ALERT
public static final java.lang.String FORM_SUBMISSION_FULLNAME_ALERT
public static final java.lang.String EVENT_IN
public static final java.lang.String EVENT_OUT
public static final java.lang.String TYPE_ALERT_AUTHOR
public static final java.lang.String TYPE_ALERT_WORKERS
public static final java.lang.String TYPE_ALERT_ADMINS
public static final java.lang.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
protected void sendAlert(Publication pub, java.util.Collection<Member> recipientSet, boolean isReminder, java.lang.String alertName)
public abstract java.lang.String getType()
public abstract void perform(Publication pub, boolean isReminder, java.lang.String alertName)
public abstract java.lang.String toString(java.lang.String userLang)
public long getRepeatTime()
public void setRepeatTime(long v)
Copyright © 2001-2010 Jalios SA. All Rights Reserved.