Package org.ametys.web.workflow
Class ArchiveWebContentAction
java.lang.Object
- All Implemented Interfaces:
Initializable
,Component
,LogEnabled
,Serviceable
,Action
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
Remove zone items referencing the contentMethods 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 Details
-
ArchiveWebContentAction
public ArchiveWebContentAction()
-
-
Method Details
-
_prepareDeletingEvent
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
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 javax.jcr.RepositoryExceptionDescription 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:
javax.jcr.RepositoryException
- The repository exception
-
removeZoneItems
Remove zone items referencing the content- Parameters:
content
- the contentobjectModel
- the current object model.result
- the result map
-