public class UnpublishContentFunction extends AbstractContentWorkflowComponent implements com.opensymphony.workflow.FunctionProvider
Modifier and Type | Field and Description |
---|---|
protected CurrentUserProvider |
_currentUserProvider
Current user provider
|
protected ObservationManager |
_observerManager
Observer manager.
|
_contentHelper, CONTENT_KEY
_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_ERRORS_KEY, WORKFLOW_WARNS_KEY
Constructor and Description |
---|
UnpublishContentFunction() |
Modifier and Type | Method and Description |
---|---|
void |
execute(Map transientVars,
Map args,
com.opensymphony.module.propertyset.PropertySet ps) |
void |
service(ServiceManager manager) |
protected void |
unpublishContent(WorkflowAwareContent content)
Unpublish the content.
|
getContent
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser
protected ObservationManager _observerManager
protected CurrentUserProvider _currentUserProvider
public UnpublishContentFunction()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractContentWorkflowComponent
ServiceException
public void execute(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException
execute
in interface com.opensymphony.workflow.FunctionProvider
com.opensymphony.workflow.WorkflowException
protected void unpublishContent(WorkflowAwareContent content) throws com.opensymphony.workflow.WorkflowException
content
- the content to unpublish.com.opensymphony.workflow.WorkflowException
- if an error occurs.