Class UnarchiveContentAction

All Implemented Interfaces:
Initializable, Component, LogEnabled, Serviceable, Action

Unarchive a content.
  • Field Details

  • Constructor Details

  • Method Details

    • service

      public void service(ServiceManager serviceManager) throws ServiceException
      Specified by:
      service in interface Serviceable
      Overrides:
      service in class ServiceableAction
      Throws:
      ServiceException
    • _act

      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
      Description copied from class: AbstractWorkflowAction
      Initialize or act on a workflow instance.

      Overrides:
      _act in class ContentWorkflowAction
      Parameters:
      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 use
      Returns:
      the action result.
      Throws:
      com.opensymphony.workflow.InvalidInputException - if the action id is not valid.
      com.opensymphony.workflow.WorkflowException - if the action failed.
    • _prepareArchivedEvent

      protected Event _prepareArchivedEvent(UserIdentity issuer, Content content) throws javax.jcr.RepositoryException
      Prepare event to notify observers
      Parameters:
      issuer - the responsible for the action
      content - the content after being archived
      Returns:
      the event
      Throws:
      javax.jcr.RepositoryException - if an error occurred
    • isActionValid

      protected boolean isActionValid(WorkflowAwareContent content, int actionId, Map inputs)
      Test if the action can be executed.
      Parameters:
      content - the content
      actionId - the action ID.
      inputs - the workflow inputs.
      Returns:
      true if the action is valid in the current environment, false otherwise.
    • unarchiveContent

      protected void unarchiveContent(WorkflowAwareContent content) throws javax.jcr.RepositoryException
      Unarchive a content.
      Parameters:
      content - the content (in the archives workspace).
      Throws:
      javax.jcr.RepositoryException - If an error occurred