public class ActionRegistryImpl extends Object implements ActionRegistry
| Constructor and Description |
|---|
ActionRegistryImpl() |
| Modifier and Type | Method and Description |
|---|---|
ActionTakenEvent |
createAction(String actionCode,
List<DataDefinition> parameters)
Constructs and returns the ActionTakenEvent implementation which can be used to invoke the
Action with the given parameters.
|
Map |
getActionMap()
Returns an immutable map of the Action Code to Action Class mappings in this registry.
|
ValidActions |
getValidActions(PrincipalContract principal,
DocumentRouteHeaderValue document)
Returns a List of valid action codes for the given user on the document.
|
boolean |
isValidAction(String actionTypeCode,
PrincipalContract principal,
DocumentRouteHeaderValue document)
Determines whether the given action type is valid for the given user and document instance.
|
void |
registerAction(String actionCode,
String actionClass)
Registers the given Action.
|
void |
unregisterAction(String actionCode)
Unregisters the Action with the given code.
|
public ActionRegistryImpl()
public void registerAction(String actionCode, String actionClass)
ActionRegistryregisterAction in interface ActionRegistryactionCode - Should be a one-letter unique codeactionClass - the fully-qualified Java classname of the ActionTakenEvent implementationpublic void unregisterAction(String actionCode)
ActionRegistryunregisterAction in interface ActionRegistrypublic Map getActionMap()
ActionRegistrygetActionMap in interface ActionRegistrypublic ActionTakenEvent createAction(String actionCode, List<DataDefinition> parameters) throws ResourceUnavailableException
ActionRegistrycreateAction in interface ActionRegistryResourceUnavailableException - if the action class cannot be constructedpublic ValidActions getValidActions(PrincipalContract principal, DocumentRouteHeaderValue document)
ActionRegistrygetValidActions in interface ActionRegistrypublic boolean isValidAction(String actionTypeCode, PrincipalContract principal, DocumentRouteHeaderValue document)
ActionRegistryisValidAction in interface ActionRegistryCopyright © 2005–2015 The Kuali Foundation. All rights reserved.