public class ArchiveWebContentAction extends ArchiveContentAction
_cloneComponent, _observationManager, _repository, _resolver
_userProvider
_workflowProvider
manager
EMPTY_MAP
Constructor and Description |
---|
ArchiveWebContentAction() |
Modifier and Type | Method and Description |
---|---|
protected Event |
_prepareDeletedEvent(UserIdentity user,
Content content)
Prepare event to notify observers
|
protected Event |
_prepareDeletingEvent(UserIdentity user,
Content content)
Prepare event to notify observers
|
protected 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
|
_act, getArchiveSession, service
_getContent, _getCurrentStep, _getExceptionContext, _getInputs, _getUser, _getWorkflowId, _processWorkflowException, initialize
_getActionResult
_getActionId, _getFailConditions, _getWorkflowErrors, _getWorkflowWarns, _processInvalidActionException, act
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public ArchiveWebContentAction()
protected Event _prepareDeletingEvent(UserIdentity user, Content content)
ArchiveContentAction
_prepareDeletingEvent
in class ArchiveContentAction
user
- the responsible for the actioncontent
- the archived contentprotected Event _prepareDeletedEvent(UserIdentity user, Content content)
ArchiveContentAction
_prepareDeletedEvent
in class ArchiveContentAction
user
- the responsible for the actioncontent
- the archived contentprotected void archiveContent(WorkflowAwareContent content, Map objectModel, Map<String,Object> result) throws RepositoryException
ArchiveContentAction
archiveContent
in class ArchiveContentAction
content
- the content to archive.objectModel
- the current object model.result
- the result mapRepositoryException
- The repository exception