public class ValidateSynchronizedContentFunction extends AbstractContentFunction
| Modifier and Type | Field and Description |
|---|---|
static String |
SILENTLY
Transvient variable for validating content silently.
|
static String |
VALID_LABEL
Label for the validated version of contents.
|
_observationManager, _workflowProvider_contentHelper, CONTENT_KEY_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_ERRORS_KEY, WORKFLOW_WARNS_KEY| Constructor and Description |
|---|
ValidateSynchronizedContentFunction() |
| 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, initializegetContent, serviceaddWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUserpublic static final String VALID_LABEL
public ValidateSynchronizedContentFunction()
public void execute(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException
com.opensymphony.workflow.WorkflowExceptionprotected 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.