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
,PublishableODFContentCondition
,SendCDMFRFunction
,SendMailFunction
,SendNewsletterFunction
,SendNewsPublicationNotificationCondition
,SetProposalDateContentFunction
,TranslationAlertFunction
,UnlockContentFunction
,ValidateContentCondition
Abstract class for easily retrieving environment components
in a condition or a function and especially a content.
-
Field Summary
Modifier and TypeFieldDescriptionprotected ContentHelper
The content helperstatic final String
Constant for storing the content into the transient variables map.static final String
Constant 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected WorkflowAwareContent
getContent
(Map transientVars) Retrieve the content associated with the workflow.void
service
(ServiceManager smanager) Methods inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser
-
Field Details
-
CONTENT_KEY
Constant for storing the content into the transient variables map. -
HAS_CHANGED_KEY
Constant for storing the content's state (has changed or not) into the transient varaibles map.- See Also:
-
_contentHelper
The content helper
-
-
Constructor Details
-
AbstractContentWorkflowComponent
public AbstractContentWorkflowComponent()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in 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.
-