public class UnarchiveContentAction extends ContentWorkflowAction
| Modifier and Type | Field and Description | 
|---|---|
| protected CloneComponent | _cloneComponentThe clone component. | 
| protected ObservationManager | _observationManagerObservation manager available to subclasses. | 
| protected Repository | _repositoryThe repository. | 
| protected AmetysObjectResolver | _resolverThe ametys object resolver. | 
_userProvider_workflowProvidermanagerEMPTY_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, actenableLogging, getLogger, setupLogger, setupLogger, setupLoggerprotected Repository _repository
protected AmetysObjectResolver _resolver
protected CloneComponent _cloneComponent
protected ObservationManager _observationManager
public UnarchiveContentAction()
public void service(ServiceManager serviceManager) throws ServiceException
service in interface Serviceableservice in class ServiceableActionServiceExceptionprotected 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 ContentWorkflowActionredirector - 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