|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The state manager is the manager object which actually handles all state related stuff. States can created, removed and managed here. This class actually encapsulate the underlying communication to an actual implementation such as an EJB server containing the state definitions.
| Method Summary | |
IState |
createState(java.lang.String name,
java.lang.String description,
ITicket user)
This creates a new global state within the given workflow system. |
IState |
createState(java.lang.String name,
java.lang.String description,
IWorkflowModel model,
ITicket user)
This creates a new state within the given workflow model. |
java.util.Iterator |
getGlobalStates(ITicket user)
Return the global states of a flow system. |
IState |
getState(int id,
ITicket user)
Get a state. |
java.util.Iterator |
getStates(IWorkflowModel model,
ITicket user)
Return all the states valid for a model. |
void |
removeState(IState state,
ITicket user)
Removes a state from the db. |
java.util.Iterator |
searchStates(java.lang.String name,
IWorkflowModel model,
IWorkflow flow,
ITicket admin)
Search for states. |
void |
updateState(int id,
java.lang.String name,
java.lang.String description,
ITicket user)
Update a state value. |
| Methods inherited from interface org.jwarp.flow.IWorkflowSystemAware |
getWorkflowSystem, setWorkflowSystem |
| Methods inherited from interface org.jwarp.service.configuration.IConfigurable |
configure |
| Method Detail |
public java.util.Iterator getStates(IWorkflowModel model,
ITicket user)
throws java.lang.SecurityException
model - The modeluser - The user ticketjava.lang.SecurityException - If access was denied.
public java.util.Iterator getGlobalStates(ITicket user)
throws java.lang.SecurityException
system - The systemuser - The user ticketjava.lang.SecurityException - If access was denied.
public IState createState(java.lang.String name,
java.lang.String description,
ITicket user)
throws InitializationException,
java.lang.SecurityException
name - The name of the new roledescription - The roles descriptionsystem - The systemuser - The user ticketInitializationException - If the state could not be created.java.lang.SecurityException - If access was denied.
public IState createState(java.lang.String name,
java.lang.String description,
IWorkflowModel model,
ITicket user)
throws InitializationException,
java.lang.SecurityException
name - The name of the new statedescription - The roles descriptionsystem - The systemuser - The user ticketInitializationException - If the state could not be created.java.lang.SecurityException - If access was denied.
public void updateState(int id,
java.lang.String name,
java.lang.String description,
ITicket user)
throws NotFoundException,
java.lang.SecurityException
id - The state's idname - The new state's namedescription - The new state's descriptionuser - The user ticketjava.lang.SecurityException - If access was denied.NotFoundException - If the state could not be located.
public void removeState(IState state,
ITicket user)
throws NotFoundException,
java.lang.SecurityException
state - The roleuser - The userNotFoundException - If the state could not be located.java.lang.SecurityException - If access was denied.
public IState getState(int id,
ITicket user)
throws java.lang.SecurityException
id - The state's id numberuser - The user ticketjava.lang.SecurityException - If access was denied.
public java.util.Iterator searchStates(java.lang.String name,
IWorkflowModel model,
IWorkflow flow,
ITicket admin)
throws java.lang.SecurityException
name - The state's namesystem - The workflow systemmodel - The workflow modelflow - The workflowadmin - The user ticketjava.lang.SecurityException - If access was denied.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||