public abstract class AbstractContentFunction extends AbstractContentWorkflowComponent implements com.opensymphony.workflow.FunctionProvider, Initializable
| Modifier and Type | Field and Description |
|---|---|
protected ObservationManager |
_observationManager
The observation manager
|
protected WorkflowProvider |
_workflowProvider
The workflow provider.
|
CONTENT_KEY_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_ERRORS_KEY, WORKFLOW_WARNS_KEY| Constructor and Description |
|---|
AbstractContentFunction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_addLabel(WorkflowAwareContent content,
String label)
Add a label on the content.
|
protected void |
_addLockToken(WorkflowAwareContent content)
Add the content lock token to the current session if the content is locked.
|
protected void |
_createVersion(WorkflowAwareContent content)
Persists the current version and create a new one.
|
protected void |
_setCurrentStepId(WorkflowAwareContent content,
Map transientVars)
Set the content's current step ID without notifying the observers that the content's workflow has changed.
|
protected void |
_setCurrentStepIdAndNotify(WorkflowAwareContent content,
Map transientVars)
Set the content's current step ID and notify the observers that the content's workflow has changed.
|
void |
initialize() |
getContentaddWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser, serviceprotected WorkflowProvider _workflowProvider
protected ObservationManager _observationManager
public AbstractContentFunction()
public void initialize() throws Exception
initialize in interface InitializableExceptionprotected void _addLockToken(WorkflowAwareContent content) throws com.opensymphony.workflow.WorkflowException, RepositoryException
content - the content.com.opensymphony.workflow.WorkflowException - if an error occurs.RepositoryException - if a repository error occurs.protected void _setCurrentStepId(WorkflowAwareContent content, Map transientVars) throws com.opensymphony.workflow.WorkflowException
content - the content.transientVars - The workflow transient vars.com.opensymphony.workflow.WorkflowException - if an error occurs.protected void _setCurrentStepIdAndNotify(WorkflowAwareContent content, Map transientVars) throws com.opensymphony.workflow.WorkflowException
content - the content.transientVars - The workflow transient vars.com.opensymphony.workflow.WorkflowException - if an error occurs.protected void _createVersion(WorkflowAwareContent content) throws com.opensymphony.workflow.WorkflowException
content - the content.com.opensymphony.workflow.WorkflowException - if an error occurs.protected void _addLabel(WorkflowAwareContent content, String label) throws com.opensymphony.workflow.WorkflowException, RepositoryException
content - the content.label - the label to add.com.opensymphony.workflow.WorkflowException - if an error occurs.RepositoryException - if an error occurs.