public class WorkflowSendMailActionHandler extends Object implements IWorkflowActionHandler
Constructor and Description |
---|
WorkflowSendMailActionHandler() |
Modifier and Type | Method and Description |
---|---|
protected String |
getWebsiteUrl(SessionConfig sessionConfig,
ContentLocale contentLocale,
ITransaction transaction)
Method created so that classes that extend this object may customize the
website url referenced in the link to the content.
|
protected void |
prepareMailObject(SessionConfig sessionConfig,
IMultipleMail mail,
ITransaction transaction)
Method created for classes that extend this action handler to customize the mail sent.
|
void |
preProcessAction(SessionConfig sessionConfig,
ContentLocale contentLocale,
WorkflowTransitionConfig transition,
ContentWorkflowMetaData newWorkflowMetaData,
ITransaction transaction)
Method called when a workflow action is performed, before its changes
are applied to the persistence layer.
|
public void preProcessAction(SessionConfig sessionConfig, ContentLocale contentLocale, WorkflowTransitionConfig transition, ContentWorkflowMetaData newWorkflowMetaData, ITransaction transaction) throws PortalException
IWorkflowActionHandler
preProcessAction
in interface IWorkflowActionHandler
sessionConfig
- the user session information.transition
- the transition being performed, or null if no transition is being performed.newWorkflowMetaData
- the new workflow metadata that will be saved. Changes to this object
will reflect in the workflow meta data that will be saved.transaction
- the transaction for persistence access.PortalException
- if the action should be canceled.protected void prepareMailObject(SessionConfig sessionConfig, IMultipleMail mail, ITransaction transaction)
mail
- sessionConfig
- transition
- newWorkflowMetaData
- transaction
- protected String getWebsiteUrl(SessionConfig sessionConfig, ContentLocale contentLocale, ITransaction transaction) throws PortalException
sessionConfig
- the user's session.contentLocale
- the content locale.transaction
- the transaction.PortalException
LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.