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, _resolverFields inherited from class org.ametys.cms.workflow.ContentWorkflowAction
_userProviderFields inherited from class org.ametys.plugins.workflow.cocoon.AbstractWorkflowAction
_workflowProviderFields inherited from class org.apache.cocoon.acting.ServiceableAction
managerFields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP -
Constructor Summary
Constructors -
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 voidarchiveContent(WorkflowAwareContent content, Map objectModel, Map<String, Object> result) Archive a content.protected voidRemove zone items referencing the contentMethods inherited from class org.ametys.cms.workflow.ArchiveContentAction
_act, getArchiveSession, serviceMethods inherited from class org.ametys.cms.workflow.ContentWorkflowAction
_getContent, _getCurrentStep, _getExceptionContext, _getInputs, _getUser, _getWorkflowId, _processWorkflowException, initializeMethods inherited from class org.ametys.plugins.workflow.cocoon.WorkflowAction
_getActionResultMethods inherited from class org.ametys.plugins.workflow.cocoon.AbstractWorkflowAction
_getActionId, _getFailConditions, _getWorkflowErrors, _getWorkflowWarns, _processInvalidActionException, actMethods 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:ArchiveContentActionPrepare event to notify observers- Overrides:
_prepareDeletingEventin classArchiveContentAction- Parameters:
user- the responsible for the actioncontent- the archived content- Returns:
- the event
-
_prepareDeletedEvent
Description copied from class:ArchiveContentActionPrepare event to notify observers- Overrides:
_prepareDeletedEventin 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:ArchiveContentActionArchive a content.- Overrides:
archiveContentin 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
-