|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.actions.ActionRegistryImpl
public class ActionRegistryImpl
A simple implementation of an ActionRegistry which includes all of the default Workflow Actions.
Constructor Summary | |
---|---|
ActionRegistryImpl()
|
Method Summary | |
---|---|
ActionTakenEvent |
createAction(String actionCode,
List<org.kuali.rice.core.api.reflect.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. |
org.kuali.rice.kew.api.action.ValidActions |
getNewValidActions(org.kuali.rice.kim.api.identity.principal.PrincipalContract principal,
DocumentRouteHeaderValue document)
|
ValidActions |
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. |
void |
registerAction(String actionCode,
String actionClass)
Registers the given Action. |
void |
unregisterAction(String actionCode)
Unregisters the Action with the given code. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionRegistryImpl()
Method Detail |
---|
public void registerAction(String actionCode, String actionClass)
ActionRegistry
registerAction
in interface ActionRegistry
actionCode
- Should be a one-letter unique codeactionClass
- the fully-qualified Java classname of the ActionTakenEvent implementationpublic void unregisterAction(String actionCode)
ActionRegistry
unregisterAction
in interface ActionRegistry
public Map getActionMap()
ActionRegistry
getActionMap
in interface ActionRegistry
public ActionTakenEvent createAction(String actionCode, List<org.kuali.rice.core.api.reflect.DataDefinition> parameters) throws org.kuali.rice.kew.exception.ResourceUnavailableException
ActionRegistry
createAction
in interface ActionRegistry
org.kuali.rice.kew.exception.ResourceUnavailableException
- if the action class cannot be constructedpublic ValidActions getValidActions(org.kuali.rice.kim.api.identity.principal.PrincipalContract principal, DocumentRouteHeaderValue document) throws org.kuali.rice.kew.exception.ResourceUnavailableException
ActionRegistry
getValidActions
in interface ActionRegistry
org.kuali.rice.kew.exception.ResourceUnavailableException
- if an action class cannot be constructedpublic org.kuali.rice.kew.api.action.ValidActions getNewValidActions(org.kuali.rice.kim.api.identity.principal.PrincipalContract principal, DocumentRouteHeaderValue document)
getNewValidActions
in interface ActionRegistry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |