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 NodeServiceprotected PolicyComponentGets the named records management actionGet a list of the available records management action conditionsGet a list of the available records management actionsvoidinit()Initialise RM action serviceprotected voidinvokeBeforeRMActionExecution(NodeRef nodeRef, String name, Map<String, Serializable> parameters) Invoke beforeRMActionExecution policyprotected voidinvokeOnRMActionExecution(NodeRef nodeRef, String name, Map<String, Serializable> parameters) Invoke onRMActionExecution policyvoidregister(RecordsManagementAction rmAction) Register records management actionvoidregister(RecordsManagementActionCondition rmCondition) Register records management conditionvoidsetFreezeService(FreezeService freezeService) voidsetNodeService(NodeService nodeService) Set the node servicevoidsetPolicyComponent(PolicyComponent policyComponent) Set the policy componentvoidsetRetentionActions(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:RecordsManagementActionServiceRegister records management action- Specified by:
registerin interfaceRecordsManagementActionService- Parameters:
rmAction- records management action- See Also:
-
register
Description copied from interface:RecordsManagementActionServiceRegister records management condition- Specified by:
registerin 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:RecordsManagementActionServiceGet a list of the available records management actions- Specified by:
getRecordsManagementActionsin interfaceRecordsManagementActionService- Returns:
- List of records management actions
- See Also:
-
getRecordsManagementActionConditions
Description copied from interface:RecordsManagementActionServiceGet a list of the available records management action conditions- Specified by:
getRecordsManagementActionConditionsin 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:RecordsManagementActionServiceGet 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:
getDispositionActionsin interfaceRecordsManagementActionService- Returns:
- List of disposition actions
- See Also:
-
getDispositionAction
Description copied from interface:RecordsManagementActionServiceGets the named disposition action- Specified by:
getDispositionActionin 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:RecordsManagementActionServiceGets the named records management action- Specified by:
getRecordsManagementActionin 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:RecordsManagementActionServiceExecute a records management action- Specified by:
executeRecordsManagementActionin 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:RecordsManagementActionServiceExecute a records management action against several nodes- Specified by:
executeRecordsManagementActionin 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:RecordsManagementActionServiceExecute a records management action- Specified by:
executeRecordsManagementActionin 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:RecordsManagementActionServiceExecute a records management action. The nodeRef against which the action is to be executed must be provided by the RecordsManagementAction implementation.- Specified by:
executeRecordsManagementActionin 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:RecordsManagementActionServiceExecute a records management action against several nodes- Specified by:
executeRecordsManagementActionin 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:
-