|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.tigris.scarab.workflow.DefaultWorkflow
Default implementation of workflow is a noop. It doesn't do anything.
| Constructor Summary | |
DefaultWorkflow()
|
|
| Method Summary | |
void |
addIssueTypeWorkflowToModule(Module module,
IssueType issueType)
|
boolean |
canMakeTransition(ScarabUser user,
AttributeOption fromOption,
AttributeOption toOption,
Issue issue)
|
boolean |
canMakeTransitionsFrom(ScarabUser user,
IssueType issueType,
Attribute attribute,
AttributeOption fromOption)
|
java.lang.String |
checkInitialTransition(AttributeOption toOption,
Issue issue,
java.util.Map newAttVals,
ScarabUser user)
|
java.lang.String |
checkTransition(AttributeOption fromOption,
AttributeOption toOption,
Issue issue,
java.util.Map newAttVals,
ScarabUser user)
|
void |
copyIssueTypeWorkflows(IssueType issueType,
IssueType newIssueType)
|
void |
deleteWorkflowsForAttribute(Attribute attr,
Module module,
IssueType issueType)
|
void |
deleteWorkflowsForOption(AttributeOption option,
Module module,
IssueType issueType)
|
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. |
OptionWorkflow |
getWorkflowForRole(AttributeOption fromOption,
AttributeOption toOption,
java.lang.String roleName,
Module module,
IssueType issueType)
|
java.util.List |
getWorkflowsForIssueType(IssueType issueType)
|
java.util.List |
getWorkflowsForRoleList(AttributeOption fromOption,
AttributeOption toOption,
java.util.List roleNames,
Module module,
IssueType issueType)
|
OptionWorkflow |
inherit(AttributeOption fromOption,
AttributeOption toOption,
java.lang.String roleName,
Module module,
IssueType issueType)
|
void |
resetAllWorkflowsForIssueType(Module module,
IssueType issueType)
|
void |
resetWorkflow(AttributeOption fromOption,
AttributeOption toOption,
java.lang.String roleName,
Module module,
IssueType issueType)
|
void |
resetWorkflows(java.lang.String roleName,
Module module,
IssueType issueType,
boolean initial)
|
void |
saveWorkflow(AttributeOption fromOption,
AttributeOption toOption,
java.lang.String roleName,
Module module,
IssueType issueType,
WorkflowRules workflowRule)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultWorkflow()
| Method Detail |
public boolean canMakeTransition(ScarabUser user,
AttributeOption fromOption,
AttributeOption toOption,
Issue issue)
throws ScarabException
canMakeTransition in interface WorkflowScarabException
public java.util.List getTransitions(ScarabUser user,
IssueType issueType,
Attribute attribute)
throws ScarabException
getTransitions in interface Workfloworg.apache.torque.TorqueException
ScarabException
public TransitionNode getTransitionTree(ScarabUser user,
IssueType issueType,
Attribute attribute)
throws ScarabException
getTransitionTree in interface Workfloworg.apache.torque.TorqueException
ScarabException
public java.util.List getTransitionsFrom(ScarabUser user,
IssueType issueType,
Attribute attribute,
AttributeOption fromOption)
throws ScarabException
getTransitionsFrom in interface Workfloworg.apache.torque.TorqueException
ScarabException
public boolean canMakeTransitionsFrom(ScarabUser user,
IssueType issueType,
Attribute attribute,
AttributeOption fromOption)
throws ScarabException
canMakeTransitionsFrom in interface WorkflowScarabException
public java.lang.String checkTransition(AttributeOption fromOption,
AttributeOption toOption,
Issue issue,
java.util.Map newAttVals,
ScarabUser user)
throws ScarabException
checkTransition in interface WorkflowScarabException
public java.lang.String checkInitialTransition(AttributeOption toOption,
Issue issue,
java.util.Map newAttVals,
ScarabUser user)
throws ScarabException
checkInitialTransition in interface WorkflowScarabException
public OptionWorkflow getWorkflowForRole(AttributeOption fromOption,
AttributeOption toOption,
java.lang.String roleName,
Module module,
IssueType issueType)
throws ScarabException
getWorkflowForRole in interface WorkflowScarabException
public java.util.List getWorkflowsForIssueType(IssueType issueType)
throws ScarabException
getWorkflowsForIssueType in interface WorkflowScarabException
public java.util.List getWorkflowsForRoleList(AttributeOption fromOption,
AttributeOption toOption,
java.util.List roleNames,
Module module,
IssueType issueType)
throws ScarabException
getWorkflowsForRoleList in interface WorkflowScarabException
public OptionWorkflow inherit(AttributeOption fromOption,
AttributeOption toOption,
java.lang.String roleName,
Module module,
IssueType issueType)
throws ScarabException
inherit in interface WorkflowScarabException
public void saveWorkflow(AttributeOption fromOption,
AttributeOption toOption,
java.lang.String roleName,
Module module,
IssueType issueType,
WorkflowRules workflowRule)
throws ScarabException
saveWorkflow in interface WorkflowScarabException
public void resetWorkflow(AttributeOption fromOption,
AttributeOption toOption,
java.lang.String roleName,
Module module,
IssueType issueType)
throws ScarabException
resetWorkflow in interface WorkflowScarabException
public void resetWorkflows(java.lang.String roleName,
Module module,
IssueType issueType,
boolean initial)
throws ScarabException
resetWorkflows in interface WorkflowScarabException
public void deleteWorkflowsForOption(AttributeOption option,
Module module,
IssueType issueType)
throws ScarabException
deleteWorkflowsForOption in interface WorkflowScarabException
public void deleteWorkflowsForAttribute(Attribute attr,
Module module,
IssueType issueType)
throws ScarabException
deleteWorkflowsForAttribute in interface WorkflowScarabException
public void addIssueTypeWorkflowToModule(Module module,
IssueType issueType)
throws ScarabException
addIssueTypeWorkflowToModule in interface WorkflowScarabException
public void copyIssueTypeWorkflows(IssueType issueType,
IssueType newIssueType)
throws ScarabException
copyIssueTypeWorkflows in interface WorkflowScarabException
public void resetAllWorkflowsForIssueType(Module module,
IssueType issueType)
throws ScarabException
resetAllWorkflowsForIssueType in interface WorkflowScarabException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||