|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ActionRegistry
Maintains the registry of Workflow Actions. Actions are (currently) identified by a one-letter action code and map to a Class which should extend the org.kuali.rice.kew.actions.ActionTakenEvent class.
| Method Summary | |
|---|---|
ActionTakenEvent |
createAction(java.lang.String actionCode,
java.util.List<org.kuali.rice.core.reflect.DataDefinition> parameters)
Constructs and returns the ActionTakenEvent implementation which can be used to invoke the Action with the given parameters. |
java.util.Map |
getActionMap()
Returns an immutable map of the Action Code to Action Class mappings in this registry. |
ValidActions |
getValidActions(org.kuali.rice.kim.bo.entity.KimPrincipal principal,
DocumentRouteHeaderValue document)
Returns a List of valid action codes for the given user on the document. |
void |
registerAction(java.lang.String actionCode,
java.lang.String actionClass)
Registers the given Action. |
void |
unregisterAction(java.lang.String actionCode)
Unregisters the Action with the given code. |
| Method Detail |
|---|
void registerAction(java.lang.String actionCode,
java.lang.String actionClass)
actionCode - Should be a one-letter unique codeactionClass - the fully-qualified Java classname of the ActionTakenEvent implementation
java.lang.IllegalArgumentException - if the actionCode is not one character or already in use,
also throws this exception if the actionClass is nullvoid unregisterAction(java.lang.String actionCode)
java.util.Map getActionMap()
ActionTakenEvent createAction(java.lang.String actionCode,
java.util.List<org.kuali.rice.core.reflect.DataDefinition> parameters)
throws org.kuali.rice.kew.exception.ResourceUnavailableException
org.kuali.rice.kew.exception.ResourceUnavailableException - if the action class cannot be constructed
java.lang.IllegalArgumentException - if the given actionCode has not been registered
ValidActions getValidActions(org.kuali.rice.kim.bo.entity.KimPrincipal principal,
DocumentRouteHeaderValue document)
throws org.kuali.rice.kew.exception.ResourceUnavailableException
org.kuali.rice.kew.exception.ResourceUnavailableException - if an action class cannot be constructed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||