lumis.content.workflow.action
Class WorkflowSendMailActionHandler

Package class diagram package WorkflowSendMailActionHandler
java.lang.Object
  extended by lumis.content.workflow.action.WorkflowSendMailActionHandler
All Implemented Interfaces:
IWorkflowActionHandler

public class WorkflowSendMailActionHandler
extends Object
implements IWorkflowActionHandler

Sends e-mails notifying the new assigned to users of the content state.

Since:
4.0.4

Constructor Summary
WorkflowSendMailActionHandler()
           
 
Method Summary
protected  String getWebsiteUrl()
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowSendMailActionHandler

public WorkflowSendMailActionHandler()
Method Detail

preProcessAction

public void preProcessAction(SessionConfig sessionConfig,
                             ContentLocale contentLocale,
                             WorkflowTransitionConfig transition,
                             ContentWorkflowMetaData newWorkflowMetaData,
                             ITransaction transaction)
                      throws PortalException
Description copied from interface: IWorkflowActionHandler
Method called when a workflow action is performed, before its changes are applied to the persistence layer.

Specified by:
preProcessAction in interface IWorkflowActionHandler
Parameters:
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.
Throws:
PortalException - if the action should be canceled.

prepareMailObject

protected void prepareMailObject(SessionConfig sessionConfig,
                                 IMultipleMail mail,
                                 ITransaction transaction)
Method created for classes that extend this action handler to customize the mail sent.

Parameters:
mail -
sessionConfig -
transition -
newWorkflowMetaData -
transaction -
Since:
4.0.11

getWebsiteUrl

protected String getWebsiteUrl()
Method created so that classes that extend this object may customize the website url referenced in the link to the content.

Returns:
Since:
4.0.11


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.