public class UnarchiveContentAction extends ContentWorkflowAction
Modifier and Type | Field and Description |
---|---|
protected CloneComponent |
_cloneComponent
The clone component.
|
protected ObservationManager |
_observationManager
Observation manager available to subclasses.
|
protected Repository |
_repository
The repository.
|
protected AmetysObjectResolver |
_resolver
The ametys object resolver.
|
_userProvider
_workflowProvider
manager
EMPTY_MAP
Constructor and Description |
---|
UnarchiveContentAction() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,String> |
_act(Redirector redirector,
Map objectModel,
String source,
Parameters parameters,
int actionId,
Map inputs)
Initialize or act on a workflow instance.
|
protected Event |
_prepareArchivedEvent(UserIdentity issuer,
Content content)
Prepare event to notify observers
|
protected boolean |
isActionValid(WorkflowAwareContent content,
int actionId,
Map inputs)
Test if the action can be executed.
|
void |
service(ServiceManager serviceManager) |
protected void |
unarchiveContent(WorkflowAwareContent content)
Unarchive a content.
|
_getContent, _getCurrentStep, _getExceptionContext, _getInputs, _getUser, _getWorkflowId, _processWorkflowException, initialize
_getActionResult
_getActionId, _getFailConditions, _getWorkflowErrors, _getWorkflowWarns, _processInvalidActionException, act
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected Repository _repository
protected AmetysObjectResolver _resolver
protected CloneComponent _cloneComponent
protected ObservationManager _observationManager
public UnarchiveContentAction()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
protected Map<String,String> _act(Redirector redirector, Map objectModel, String source, Parameters parameters, int actionId, Map inputs) throws com.opensymphony.workflow.InvalidInputException, com.opensymphony.workflow.WorkflowException
AbstractWorkflowAction
_act
in class ContentWorkflowAction
redirector
- the redirector.objectModel
- the current object model.source
- the current source.parameters
- the current parameters.actionId
- the action id to use.inputs
- the inputs to usecom.opensymphony.workflow.InvalidInputException
- if the action id is not valid.com.opensymphony.workflow.WorkflowException
- if the action failed.protected Event _prepareArchivedEvent(UserIdentity issuer, Content content) throws RepositoryException
issuer
- the responsible for the actioncontent
- the content after being archivedRepositoryException
- if an error occurredprotected boolean isActionValid(WorkflowAwareContent content, int actionId, Map inputs)
content
- the contentactionId
- the action ID.inputs
- the workflow inputs.protected void unarchiveContent(WorkflowAwareContent content) throws RepositoryException
content
- the content (in the archives workspace).RepositoryException
- If an error occurred