Package org.ametys.cms.workflow
Class AbstractContentWorkflowComponent
- java.lang.Object
 - 
- org.ametys.plugins.workflow.AbstractWorkflowComponent
 - 
- org.ametys.cms.workflow.AbstractContentWorkflowComponent
 
 
 
- 
- All Implemented Interfaces:
 LogEnabled,Serviceable
- Direct Known Subclasses:
 AbstractContentFunction,CheckDuplicateContentsFunction,CreateContentFunction,DeleteContentFunction,DeleteRemoteProgramFunction,DepositCDMFRFunction,EditContentFunction,ExtractOutgoingReferencesFunction,FormEditionFunction,HasLiveLabelCondition,InitContentFunction,LockCondition,MarkContentArchivedFunction,NotifyCopyFunction,SendCDMFRFunction,SendMailFunction,SendNewsletterFunction,SendNewsPublicationNotificationCondition,SetProposalDateContentFunction,TranslationAlertFunction,UnlockContentFunction,ValidateContentCondition
public abstract class AbstractContentWorkflowComponent extends AbstractWorkflowComponent
Abstract class for easily retrieving environment components in a condition or a function and especially a content. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected ContentHelper_contentHelperThe content helperstatic StringCONTENT_KEYConstant for storing the content into the transient variables map.static StringHAS_CHANGED_KEYConstant for storing the content's state (has changed or not) into the transient varaibles map.- 
Fields inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_ERRORS_KEY, WORKFLOW_WARNS_KEY 
 - 
 
- 
Constructor Summary
Constructors Constructor Description AbstractContentWorkflowComponent() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WorkflowAwareContentgetContent(Map transientVars)Retrieve the content associated with the workflow.voidservice(ServiceManager smanager)- 
Methods inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser 
 - 
 
 - 
 
- 
- 
Field Detail
- 
CONTENT_KEY
public static final String CONTENT_KEY
Constant for storing the content into the transient variables map. 
- 
HAS_CHANGED_KEY
public static final String HAS_CHANGED_KEY
Constant for storing the content's state (has changed or not) into the transient varaibles map.- See Also:
 - Constant Field Values
 
 
- 
_contentHelper
protected ContentHelper _contentHelper
The content helper 
 - 
 
- 
Constructor Detail
- 
AbstractContentWorkflowComponent
public AbstractContentWorkflowComponent()
 
 - 
 
- 
Method Detail
- 
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
 servicein interfaceServiceable- Overrides:
 servicein classAbstractWorkflowComponent- Throws:
 ServiceException
 
- 
getContent
protected WorkflowAwareContent getContent(Map transientVars) throws com.opensymphony.workflow.WorkflowException
Retrieve the content associated with the workflow.- Parameters:
 transientVars- the parameters from the call.- Returns:
 - the content.
 - Throws:
 com.opensymphony.workflow.WorkflowException- if the content is not found.
 
 - 
 
 -