Package org.kuali.rice.kew.actions
Class ActionRegistryImpl
java.lang.Object
org.kuali.rice.kew.actions.ActionRegistryImpl
- All Implemented Interfaces:
ActionRegistry
A simple implementation of an ActionRegistry which includes all of the default Workflow Actions.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAction(String actionCode, List<DataDefinition> parameters) Constructs and returns the ActionTakenEvent implementation which can be used to invoke the Action with the given parameters.Returns an immutable map of the Action Code to Action Class mappings in this registry.getValidActions(org.kuali.rice.kim.api.identity.principal.PrincipalContract principal, DocumentRouteHeaderValue document) Returns a List of valid action codes for the given user on the document.booleanisValidAction(String actionTypeCode, org.kuali.rice.kim.api.identity.principal.PrincipalContract principal, DocumentRouteHeaderValue document) Determines whether the given action type is valid for the given user and document instance.voidregisterAction(String actionCode, String actionClass) Registers the given Action.voidunregisterAction(String actionCode) Unregisters the Action with the given code.
-
Constructor Details
-
ActionRegistryImpl
public ActionRegistryImpl()
-
-
Method Details
-
registerAction
Description copied from interface:ActionRegistryRegisters the given Action.- Specified by:
registerActionin interfaceActionRegistry- Parameters:
actionCode- Should be a one-letter unique codeactionClass- the fully-qualified Java classname of the ActionTakenEvent implementation
-
unregisterAction
Description copied from interface:ActionRegistryUnregisters the Action with the given code.- Specified by:
unregisterActionin interfaceActionRegistry
-
getActionMap
Description copied from interface:ActionRegistryReturns an immutable map of the Action Code to Action Class mappings in this registry.- Specified by:
getActionMapin interfaceActionRegistry
-
createAction
public ActionTakenEvent createAction(String actionCode, List<DataDefinition> parameters) throws ResourceUnavailableException Description copied from interface:ActionRegistryConstructs and returns the ActionTakenEvent implementation which can be used to invoke the Action with the given parameters.- Specified by:
createActionin interfaceActionRegistry- Throws:
ResourceUnavailableException- if the action class cannot be constructed
-
getValidActions
public ValidActions getValidActions(org.kuali.rice.kim.api.identity.principal.PrincipalContract principal, DocumentRouteHeaderValue document) Description copied from interface:ActionRegistryReturns a List of valid action codes for the given user on the document.- Specified by:
getValidActionsin interfaceActionRegistry
-
isValidAction
public boolean isValidAction(String actionTypeCode, org.kuali.rice.kim.api.identity.principal.PrincipalContract principal, DocumentRouteHeaderValue document) Description copied from interface:ActionRegistryDetermines whether the given action type is valid for the given user and document instance.- Specified by:
isValidActionin interfaceActionRegistry
-