Class RecordsManagementActionServiceImpl
java.lang.Object
org.alfresco.module.org_alfresco_module_rm.action.RecordsManagementActionServiceImpl
- All Implemented Interfaces:
RecordsManagementActionService
public class RecordsManagementActionServiceImpl
extends Object
implements RecordsManagementActionService
Records Management Action Service Implementation
- Author:
- Roy Wetherall
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteRecordsManagementAction
(String name, Map<String, Serializable> parameters) Execute a records management action.executeRecordsManagementAction
(List<NodeRef> nodeRefs, String name) Execute a records management action against several nodesexecuteRecordsManagementAction
(List<NodeRef> nodeRefs, String name, Map<String, Serializable> parameters) Execute a records management action against several nodesexecuteRecordsManagementAction
(NodeRef nodeRef, String name) Execute a records management actionexecuteRecordsManagementAction
(NodeRef nodeRef, String name, Map<String, Serializable> parameters) Execute a records management actiongetDispositionAction
(String name) Gets the named disposition actionGet a list of the available disposition actions.getDispositionActions
(NodeRef nodeRef) Gets the disposition actions for the given nodeprotected NodeService
protected PolicyComponent
Gets the named records management actionGet a list of the available records management action conditionsGet a list of the available records management actionsvoid
init()
Initialise RM action serviceprotected void
invokeBeforeRMActionExecution
(NodeRef nodeRef, String name, Map<String, Serializable> parameters) Invoke beforeRMActionExecution policyprotected void
invokeOnRMActionExecution
(NodeRef nodeRef, String name, Map<String, Serializable> parameters) Invoke onRMActionExecution policyvoid
register
(RecordsManagementAction rmAction) Register records management actionvoid
register
(RecordsManagementActionCondition rmCondition) Register records management conditionvoid
setFreezeService
(FreezeService freezeService) void
setNodeService
(NodeService nodeService) Set the node servicevoid
setPolicyComponent
(PolicyComponent policyComponent) Set the policy componentvoid
setRetentionActions
(List<String> retentionActions)
-
Constructor Details
-
RecordsManagementActionServiceImpl
public RecordsManagementActionServiceImpl()
-
-
Method Details
-
getPolicyComponent
- Returns:
- Policy component
-
getNodeService
- Returns:
- Node Service
-
setFreezeService
- Parameters:
freezeService
- freeze service
-
setRetentionActions
-
setPolicyComponent
Set the policy component- Parameters:
policyComponent
- policy component
-
setNodeService
Set the node service- Parameters:
nodeService
- node service
-
init
public void init()Initialise RM action service -
register
Description copied from interface:RecordsManagementActionService
Register records management action- Specified by:
register
in interfaceRecordsManagementActionService
- Parameters:
rmAction
- records management action- See Also:
-
register
Description copied from interface:RecordsManagementActionService
Register records management condition- Specified by:
register
in interfaceRecordsManagementActionService
- Parameters:
rmCondition
- records management condition
-
invokeBeforeRMActionExecution
protected void invokeBeforeRMActionExecution(NodeRef nodeRef, String name, Map<String, Serializable> parameters) Invoke beforeRMActionExecution policy- Parameters:
nodeRef
- node referencename
- action nameparameters
- action parameters
-
invokeOnRMActionExecution
protected void invokeOnRMActionExecution(NodeRef nodeRef, String name, Map<String, Serializable> parameters) Invoke onRMActionExecution policy- Parameters:
nodeRef
- node referencename
- action nameparameters
- action parameters
-
getRecordsManagementActions
Description copied from interface:RecordsManagementActionService
Get a list of the available records management actions- Specified by:
getRecordsManagementActions
in interfaceRecordsManagementActionService
- Returns:
- List of records management actions
- See Also:
-
getRecordsManagementActionConditions
Description copied from interface:RecordsManagementActionService
Get a list of the available records management action conditions- Specified by:
getRecordsManagementActionConditions
in interfaceRecordsManagementActionService
- Returns:
- List of records management action conditions
- See Also:
-
getDispositionActions
Gets the disposition actions for the given node- Parameters:
nodeRef
- The node reference- Returns:
- List of records management action
-
getDispositionActions
Description copied from interface:RecordsManagementActionService
Get a list of the available disposition actions. A disposition action is a records management action that can be used when defining disposition instructions.- Specified by:
getDispositionActions
in interfaceRecordsManagementActionService
- Returns:
- List of disposition actions
- See Also:
-
getDispositionAction
Description copied from interface:RecordsManagementActionService
Gets the named disposition action- Specified by:
getDispositionAction
in interfaceRecordsManagementActionService
- Parameters:
name
- The name of the disposition action to retrieve- Returns:
- The RecordsManagementAction or null if it doesn't exist
- See Also:
-
getRecordsManagementAction
Description copied from interface:RecordsManagementActionService
Gets the named records management action- Specified by:
getRecordsManagementAction
in interfaceRecordsManagementActionService
- Parameters:
name
- The name of the RM action to retrieve- Returns:
- The RecordsManagementAction or null if it doesn't exist
- See Also:
-
executeRecordsManagementAction
Description copied from interface:RecordsManagementActionService
Execute a records management action- Specified by:
executeRecordsManagementAction
in interfaceRecordsManagementActionService
- Parameters:
nodeRef
- node reference to a rm container, rm folder or recordname
- action name- Returns:
- The result of executed records management action
- See Also:
-
executeRecordsManagementAction
public Map<NodeRef,RecordsManagementActionResult> executeRecordsManagementAction(List<NodeRef> nodeRefs, String name) Description copied from interface:RecordsManagementActionService
Execute a records management action against several nodes- Specified by:
executeRecordsManagementAction
in interfaceRecordsManagementActionService
- Parameters:
nodeRefs
- node references to rm containers, rm folders or recordsname
- action name- Returns:
- The result of executed records management action against several nodes
- See Also:
-
executeRecordsManagementAction
public RecordsManagementActionResult executeRecordsManagementAction(NodeRef nodeRef, String name, Map<String, Serializable> parameters) Description copied from interface:RecordsManagementActionService
Execute a records management action- Specified by:
executeRecordsManagementAction
in interfaceRecordsManagementActionService
- Parameters:
nodeRef
- node reference to a rm container, rm folder or recordname
- action nameparameters
- action parameters- Returns:
- The result of executed records management action
- See Also:
-
executeRecordsManagementAction
public RecordsManagementActionResult executeRecordsManagementAction(String name, Map<String, Serializable> parameters) Description copied from interface:RecordsManagementActionService
Execute a records management action. The nodeRef against which the action is to be executed must be provided by the RecordsManagementAction implementation.- Specified by:
executeRecordsManagementAction
in interfaceRecordsManagementActionService
- Parameters:
name
- action nameparameters
- action parameters- Returns:
- The result of executed records management action
- See Also:
-
executeRecordsManagementAction
public Map<NodeRef,RecordsManagementActionResult> executeRecordsManagementAction(List<NodeRef> nodeRefs, String name, Map<String, Serializable> parameters) Description copied from interface:RecordsManagementActionService
Execute a records management action against several nodes- Specified by:
executeRecordsManagementAction
in interfaceRecordsManagementActionService
- Parameters:
nodeRefs
- node references to rm containers, rm folders or recordsname
- action nameparameters
- action parameters- Returns:
- The result of executed records management action against several nodes
- See Also:
-