public class ValidateContentFunction extends AbstractContentFunction
_observationManager, _workflowProvider
CONTENT_KEY
_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_ERRORS_KEY, WORKFLOW_WARNS_KEY
Constructor and Description |
---|
ValidateContentFunction() |
Modifier and Type | Method and Description |
---|---|
protected void |
_notifyObservers(Map transientVars,
Content content)
Notify observers of content validation
|
protected void |
_validateContent(ModifiableWorkflowAwareContent content)
Validates the content: set the validation metadata.
|
void |
execute(Map transientVars,
Map args,
com.opensymphony.module.propertyset.PropertySet ps) |
_addLabel, _addLockToken, _createVersion, _setCurrentStepId, _setCurrentStepIdAndNotify, initialize
getContent
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser, service
public ValidateContentFunction()
public void execute(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException
com.opensymphony.workflow.WorkflowException
protected void _notifyObservers(Map transientVars, Content content) throws AmetysRepositoryException, com.opensymphony.workflow.WorkflowException
transientVars
- The transient variablescontent
- The created contentAmetysRepositoryException
- If an error occurred with the repositorycom.opensymphony.workflow.WorkflowException
- If an error occurred with the workflowprotected void _validateContent(ModifiableWorkflowAwareContent content) throws com.opensymphony.workflow.WorkflowException, RepositoryException
content
- the content.com.opensymphony.workflow.WorkflowException
- if an error occurs.RepositoryException
- if an error occurs.