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:
AbstractCodeEditionFunction,AbstractContentFunction,CheckDuplicateContentsFunction,CreateContentFunction,DeleteRemoteProgramFunction,EditContentFunction,ExtractOutgoingReferencesFunction,FormEditionFunction,HasLiveLabelCondition,InitContentFunction,LockCondition,MarkContentArchivedFunction,NotifyCopyFunction,PublishableODFContentCondition,SendMailFunction,SendNewsletterFunction,SendNewsPublicationNotificationCondition,SetProposalDateContentFunction,SkillEditionFunction,TranslationAlertFunction,UnlockContentFunction,ValidateContentCondition,ValidateProgramItemTreeCondition
Abstract class for easily retrieving environment components
in a condition or a function and especially a content.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
AbstractWorkflowComponent.ConditionFailure -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentHelperThe content helperstatic final StringConstant for storing the content into the transient variables map.static final StringConstant for storing the content's state (has changed or not) into the transient variables map.Fields inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_VALIDATION_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 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 variables map.- See Also:
-
_contentHelper
The content helper
-
-
Constructor Details
-
AbstractContentWorkflowComponent
public AbstractContentWorkflowComponent()
-
-
Method Details
-
service
- 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.
-