Package org.ametys.web.workflow
Class ArchiveWebContentAction
- java.lang.Object
-
- All Implemented Interfaces:
Initializable
,Component
,LogEnabled
,Serviceable
,Action
public class ArchiveWebContentAction extends ArchiveContentAction
Action for archiving a content and removing referencing zone items if necessary
-
-
Field Summary
-
Fields inherited from class org.ametys.cms.workflow.ArchiveContentAction
_cloneComponent, _observationManager, _repository, _resolver
-
Fields inherited from class org.ametys.cms.workflow.ContentWorkflowAction
_userProvider
-
Fields inherited from class org.ametys.plugins.workflow.cocoon.AbstractWorkflowAction
_workflowProvider
-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description ArchiveWebContentAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Event
_prepareDeletedEvent(UserIdentity user, Content content)
Prepare event to notify observersprotected Event
_prepareDeletingEvent(UserIdentity user, Content content)
Prepare event to notify observersprotected void
archiveContent(WorkflowAwareContent content, Map objectModel, Map<String,Object> result)
Archive a content.protected void
removeZoneItems(Content content, Map objectModel, Map<String,Object> result)
Remove zone items referencing the content-
Methods inherited from class org.ametys.cms.workflow.ArchiveContentAction
_act, getArchiveSession, service
-
Methods inherited from class org.ametys.cms.workflow.ContentWorkflowAction
_getContent, _getCurrentStep, _getExceptionContext, _getInputs, _getUser, _getWorkflowId, _processWorkflowException, initialize
-
Methods inherited from class org.ametys.plugins.workflow.cocoon.WorkflowAction
_getActionResult
-
Methods inherited from class org.ametys.plugins.workflow.cocoon.AbstractWorkflowAction
_getActionId, _getFailConditions, _getWorkflowErrors, _getWorkflowWarns, _processInvalidActionException, act
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Constructor Detail
-
ArchiveWebContentAction
public ArchiveWebContentAction()
-
-
Method Detail
-
_prepareDeletingEvent
protected Event _prepareDeletingEvent(UserIdentity user, Content content)
Description copied from class:ArchiveContentAction
Prepare event to notify observers- Overrides:
_prepareDeletingEvent
in classArchiveContentAction
- Parameters:
user
- the responsible for the actioncontent
- the archived content- Returns:
- the event
-
_prepareDeletedEvent
protected Event _prepareDeletedEvent(UserIdentity user, Content content)
Description copied from class:ArchiveContentAction
Prepare event to notify observers- Overrides:
_prepareDeletedEvent
in classArchiveContentAction
- Parameters:
user
- the responsible for the actioncontent
- the archived content- Returns:
- the event
-
archiveContent
protected void archiveContent(WorkflowAwareContent content, Map objectModel, Map<String,Object> result) throws RepositoryException
Description copied from class:ArchiveContentAction
Archive a content.- Overrides:
archiveContent
in classArchiveContentAction
- Parameters:
content
- the content to archive.objectModel
- the current object model.result
- the result map- Throws:
RepositoryException
- The repository exception
-
-