|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.workflow.AbstractJiraWorkflow
public abstract class AbstractJiraWorkflow
| Field Summary | |
|---|---|
protected WorkflowManager |
workflowManager
|
| Constructor Summary | |
|---|---|
protected |
AbstractJiraWorkflow(WorkflowManager workflowManager,
com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor)
|
| Method Summary | |
|---|---|
int |
compareTo(JiraWorkflow o)
|
boolean |
equals(Object o)
|
Collection |
getActionsForScreen(FieldScreen fieldScreen)
|
Collection |
getActionsWithResult(com.opensymphony.workflow.loader.StepDescriptor stepDescriptor)
Get all the actions which have a particular step as their unconditional result. |
String |
getActionType(com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
|
Collection |
getAllActions()
Get all the actions in this workflow, global, common and from steps. |
String |
getDescription()
|
com.opensymphony.workflow.loader.WorkflowDescriptor |
getDescriptor()
|
org.ofbiz.core.entity.GenericValue |
getLinkedStatus(com.opensymphony.workflow.loader.StepDescriptor stepDescriptor)
|
List |
getLinkedStatuses()
Returns all statuses for this workflow |
Status |
getLinkedStatusObject(com.opensymphony.workflow.loader.StepDescriptor stepDescriptor)
|
List |
getLinkedStatusObjects()
Returns all statuses for this workflow |
com.opensymphony.workflow.loader.StepDescriptor |
getLinkedStep(org.ofbiz.core.entity.GenericValue status)
Get the StepDescriptor linked to the given status for this workflow. |
String |
getMode()
Returns either JiraWorkflow.DRAFT or JiraWorkflow.LIVE depending on the workflow
implementation. |
abstract String |
getName()
|
int |
getNextActionId()
Get the next available action id |
Collection |
getPostFunctionsForTransition(com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
Returns all post-functions of the transition, including the ones on all conditional results, unconditional results and 'global' (non-result) postfunctions. |
Collection |
getStepsForTransition(com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
Returns a collection of all step descriptors that reference the given common action. |
Collection |
getStepsWithAction(com.opensymphony.workflow.loader.StepDescriptor stepDescriptor)
|
String |
getUpdateAuthorName()
Returns the most recent authors username. |
Date |
getUpdatedDate()
Returns the date of the most recent update to this workflow. |
boolean |
hasDraftWorkflow()
Determines if this workflow has a draft edit copy. |
int |
hashCode()
|
boolean |
isActive()
Determine whether this workflow object is currently active. |
boolean |
isCommonAction(com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
|
boolean |
isDefault()
Determines if the workflow is the default JIRA workflow |
boolean |
isEditable()
Determines if the workflow can be modifed within JIRA. |
boolean |
isGlobalAction(com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
|
boolean |
isInitialAction(com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
|
boolean |
isOrdinaryAction(com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
|
boolean |
isSystemWorkflow()
Determines if the workflow is loaded from XML or the database |
boolean |
removeStep(com.opensymphony.workflow.loader.StepDescriptor stepDescriptor)
Remove a step from the workflow. |
void |
reset()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.atlassian.jira.workflow.JiraWorkflow |
|---|
isDraftWorkflow |
| Field Detail |
|---|
protected final WorkflowManager workflowManager
| Constructor Detail |
|---|
protected AbstractJiraWorkflow(WorkflowManager workflowManager,
com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor)
| Method Detail |
|---|
public abstract String getName()
getName in interface JiraWorkflowpublic String getDescription()
getDescription in interface JiraWorkflowpublic com.opensymphony.workflow.loader.WorkflowDescriptor getDescriptor()
getDescriptor in interface JiraWorkflowpublic Collection getAllActions()
JiraWorkflow
getAllActions in interface JiraWorkflowActionDescriptors.public int getNextActionId()
JiraWorkflow
getNextActionId in interface JiraWorkflowpublic Collection getActionsWithResult(com.opensymphony.workflow.loader.StepDescriptor stepDescriptor)
JiraWorkflow
getActionsWithResult in interface JiraWorkflowpublic Collection getStepsWithAction(com.opensymphony.workflow.loader.StepDescriptor stepDescriptor)
public boolean removeStep(com.opensymphony.workflow.loader.StepDescriptor stepDescriptor)
JiraWorkflowThis method will also remove all actions with this step ID as their unconditional result.
removeStep in interface JiraWorkflowtrue if the remove was successfulpublic com.opensymphony.workflow.loader.StepDescriptor getLinkedStep(org.ofbiz.core.entity.GenericValue status)
JiraWorkflow
getLinkedStep in interface JiraWorkflowpublic org.ofbiz.core.entity.GenericValue getLinkedStatus(com.opensymphony.workflow.loader.StepDescriptor stepDescriptor)
getLinkedStatus in interface JiraWorkflowpublic Status getLinkedStatusObject(com.opensymphony.workflow.loader.StepDescriptor stepDescriptor)
getLinkedStatusObject in interface JiraWorkflowpublic List getLinkedStatuses()
JiraWorkflow
getLinkedStatuses in interface JiraWorkflowList of GenericValuepublic List getLinkedStatusObjects()
JiraWorkflow
getLinkedStatusObjects in interface JiraWorkflowList of Status objectspublic Collection getStepsForTransition(com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
JiraWorkflow
getStepsForTransition in interface JiraWorkflowpublic Collection getPostFunctionsForTransition(com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
JiraWorkflow
getPostFunctionsForTransition in interface JiraWorkflow
public boolean isActive()
throws WorkflowException
JiraWorkflow
isActive in interface JiraWorkflowtrue if this workflow object is active.
WorkflowException - Runtime Exception indicating a problem in the WorkflowManager.
public boolean isSystemWorkflow()
throws WorkflowException
JiraWorkflow
isSystemWorkflow in interface JiraWorkflowtrue if this workflow object is the uneditable system workflow.
WorkflowException - Runtime Exception indicating a problem in the WorkflowManager.
public boolean isEditable()
throws WorkflowException
JiraWorkflowSystem workflows are never editable. The "published" version of an active workflow is not editable, but the draft version is. Inactive workflows are editable.
isEditable in interface JiraWorkflowtrue if this workflow is editable.
WorkflowException - Runtime Exception indicating a problem in the WorkflowManager.public boolean isDefault()
JiraWorkflow
isDefault in interface JiraWorkflowtrue if this is the workflow is the default JIRA workflow.public boolean isInitialAction(com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
isInitialAction in interface JiraWorkflowpublic boolean isCommonAction(com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
isCommonAction in interface JiraWorkflowpublic boolean isGlobalAction(com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
isGlobalAction in interface JiraWorkflowpublic boolean isOrdinaryAction(com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
isOrdinaryAction in interface JiraWorkflowpublic String getActionType(com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
getActionType in interface JiraWorkflowpublic void reset()
reset in interface JiraWorkflowpublic Collection getActionsForScreen(FieldScreen fieldScreen)
getActionsForScreen in interface JiraWorkflowpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(JiraWorkflow o)
compareTo in interface Comparable<JiraWorkflow>public String getUpdateAuthorName()
JiraWorkflow
getUpdateAuthorName in interface JiraWorkflowpublic Date getUpdatedDate()
JiraWorkflow
getUpdatedDate in interface JiraWorkflowpublic boolean hasDraftWorkflow()
JiraWorkflow
hasDraftWorkflow in interface JiraWorkflowtrue if this workflow has a draft edit copy.public String getMode()
JiraWorkflowJiraWorkflow.DRAFT or JiraWorkflow.LIVE depending on the workflow
implementation.
getMode in interface JiraWorkflowJiraWorkflow.DRAFT or JiraWorkflow.LIVE
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||