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.
|
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.
|
getContentaddWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUserprotected ObservationManager _observerManager
protected CurrentUserProvider _currentUserProvider
public UnpublishContentFunction()
public void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class AbstractWorkflowComponentServiceExceptionpublic void execute(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException
execute in interface com.opensymphony.workflow.FunctionProvidercom.opensymphony.workflow.WorkflowExceptionprotected void unpublishContent(WorkflowAwareContent content) throws com.opensymphony.workflow.WorkflowException
content - the content to unpublish.com.opensymphony.workflow.WorkflowException - if an error occurs.