|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.tigris.scarab.workflow.DefaultWorkflow
org.tigris.scarab.workflow.CheapWorkflow
Simple implementation of Workflow, relies on the Transition tables, where every record defines a transition available for a given Role, from an option to another.
| Constructor Summary | |
CheapWorkflow()
|
|
| Method Summary | |
boolean |
canMakeTransition(ScarabUser user,
AttributeOption fromOption,
AttributeOption toOption,
Issue issue)
Returns true if the transition from the option fromOption to toOption is allowed for the current user. |
boolean |
canMakeTransitionsFrom(ScarabUser user,
IssueType issueType,
Attribute attribute,
AttributeOption fromOption)
Returns true if at least one transition from the fromOption to any other option is allowed on the given attribute in the scope of the given IssueType and for the current user. |
java.util.List |
filterConditionalTransitions(java.util.List transitions,
Issue issue)
Filter the allowed transitions so only those not-conditioned, those whose condition fulfill, and those not restricted by the blocking condition, will remain. |
java.util.List |
getTransitions(ScarabUser user,
IssueType issueType,
Attribute attribute)
Returns the list of transitions allowed for the current user in the current module/issueType/attribute combination |
java.util.List |
getTransitionsFrom(ScarabUser user,
IssueType issueType,
Attribute attribute,
AttributeOption fromOption)
Returns the list of transitions allowed for the current user in the current module/issueType/attribute combination starting from fromOption. |
TransitionNode |
getTransitionTree(ScarabUser user,
IssueType issueType,
Attribute attribute)
Returns the tree of transitions in the current module/issueType/attribute combination. |
void |
getTransitionTree(ScarabUser user,
IssueType issueType,
Attribute attribute,
AttributeOption fromOption,
TransitionNode node,
java.util.List visitedTransitions)
Returns the list of transitions allowed for the current user in the current module/issueType/attribute combination |
| Methods inherited from class org.tigris.scarab.workflow.DefaultWorkflow |
addIssueTypeWorkflowToModule, checkInitialTransition, checkTransition, copyIssueTypeWorkflows, deleteWorkflowsForAttribute, deleteWorkflowsForOption, getWorkflowForRole, getWorkflowsForIssueType, getWorkflowsForRoleList, inherit, resetAllWorkflowsForIssueType, resetWorkflow, resetWorkflows, saveWorkflow |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CheapWorkflow()
| Method Detail |
public boolean canMakeTransition(ScarabUser user,
AttributeOption fromOption,
AttributeOption toOption,
Issue issue)
canMakeTransition in interface WorkflowcanMakeTransition in class DefaultWorkflow
public boolean canMakeTransitionsFrom(ScarabUser user,
IssueType issueType,
Attribute attribute,
AttributeOption fromOption)
throws ScarabException
canMakeTransitionsFrom in interface WorkflowcanMakeTransitionsFrom in class DefaultWorkfloworg.apache.torque.TorqueException
ScarabException
public java.util.List getTransitions(ScarabUser user,
IssueType issueType,
Attribute attribute)
throws ScarabException
getTransitions in interface WorkflowgetTransitions in class DefaultWorkfloworg.apache.torque.TorqueException
ScarabException
public TransitionNode getTransitionTree(ScarabUser user,
IssueType issueType,
Attribute attribute)
throws ScarabException
getTransitionTree in interface WorkflowgetTransitionTree in class DefaultWorkfloworg.apache.torque.TorqueException
ScarabException
public void getTransitionTree(ScarabUser user,
IssueType issueType,
Attribute attribute,
AttributeOption fromOption,
TransitionNode node,
java.util.List visitedTransitions)
throws ScarabException
org.apache.torque.TorqueException
ScarabException
public java.util.List getTransitionsFrom(ScarabUser user,
IssueType issueType,
Attribute attribute,
AttributeOption fromOption)
throws ScarabException
getTransitionsFrom in interface WorkflowgetTransitionsFrom in class DefaultWorkfloworg.apache.torque.TorqueException
ScarabException
public java.util.List filterConditionalTransitions(java.util.List transitions,
Issue issue)
throws org.apache.torque.TorqueException
transitions - issue -
org.apache.torque.TorqueException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||