|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.workflow.SimpleWorkflowManager com.atlassian.jira.workflow.OSWorkflowManager
public class OSWorkflowManager
Constructor Summary | |
---|---|
OSWorkflowManager()
|
|
OSWorkflowManager(com.opensymphony.workflow.config.Configuration configuration)
|
Method Summary | |
---|---|
void |
createWorkflow(User creator,
JiraWorkflow workflow)
|
void |
deleteWorkflow(JiraWorkflow workflow)
|
Collection |
getActiveWorkflows()
Retrieve all currently active workflows. |
JiraWorkflow |
getWorkflow(org.ofbiz.core.entity.GenericValue issue)
Retrieve the workflow for a given issue. |
JiraWorkflow |
getWorkflow(Issue issue)
Retrieve the workflow for a given issue. |
JiraWorkflow |
getWorkflow(Long projectId,
String issueTypeId)
Retrieve the workflow for a given project - issue type pair. |
JiraWorkflow |
getWorkflow(String name)
Retrieve a single workflow by name |
JiraWorkflow |
getWorkflowFromScheme(org.ofbiz.core.entity.GenericValue scheme,
String issueTypeId)
Return the workflow in a particular scheme for a given issue type. |
protected String |
getWorkflowName(Long projectId,
String issueType)
This method returns the (unique) name of the workflow which should be used for the provided projectId and issueType |
Collection |
getWorkflows()
Retrieve all of the workflows in the system |
Collection |
getWorkflowsFromScheme(org.ofbiz.core.entity.GenericValue scheme)
Returns all workflows for a given scheme |
boolean |
isActive(JiraWorkflow workflow)
Determine whether or not a given workflow is active in the system. |
boolean |
isSystemWorkflow(JiraWorkflow workflow)
Determine whether or not a given workflow is a system workflow. |
void |
migrateIssueToWorkflow(org.ofbiz.core.entity.GenericValue issue,
JiraWorkflow newWorkflow,
org.ofbiz.core.entity.GenericValue newStatus)
|
void |
saveWorkflow(JiraWorkflow workflow)
|
protected void |
updateIssueStatusAndUpdatedDate(org.ofbiz.core.entity.GenericValue issue,
org.ofbiz.core.entity.GenericValue newStatus)
|
boolean |
workflowExists(String name)
|
Methods inherited from class com.atlassian.jira.workflow.SimpleWorkflowManager |
---|
createIssue, doWorkflowAction, getActionDescriptor, getConfiguration, getDefaultWorkflow, getPostFunctionsForWorkflow, getRemoteUser, getStepId, getStore, isEditable, makeWorkflow, migrateIssueToWorkflow, removeWorkflowEntries, resetConfiguration, setConfiguration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OSWorkflowManager()
public OSWorkflowManager(com.opensymphony.workflow.config.Configuration configuration)
Method Detail |
---|
public Collection getWorkflows()
getWorkflows
in interface WorkflowManager
getWorkflows
in class SimpleWorkflowManager
protected String getWorkflowName(Long projectId, String issueType) throws WorkflowException
projectId
- issueType
-
WorkflowException
public Collection getActiveWorkflows() throws WorkflowException
WorkflowManager
getActiveWorkflows
in interface WorkflowManager
getActiveWorkflows
in class SimpleWorkflowManager
WorkflowException
public boolean isActive(JiraWorkflow workflow) throws WorkflowException
WorkflowManager
Active workflows are those currently assigned to schemes and associated with projects - they cannot be edited but can be used.
isActive
in interface WorkflowManager
isActive
in class SimpleWorkflowManager
WorkflowException
public boolean isSystemWorkflow(JiraWorkflow workflow)
WorkflowManager
isSystemWorkflow
in interface WorkflowManager
isSystemWorkflow
in class SimpleWorkflowManager
public JiraWorkflow getWorkflow(String name)
WorkflowManager
getWorkflow
in interface WorkflowManager
getWorkflow
in class SimpleWorkflowManager
public boolean workflowExists(String name) throws WorkflowException
workflowExists
in interface WorkflowManager
workflowExists
in class SimpleWorkflowManager
WorkflowException
public JiraWorkflow getWorkflow(Issue issue) throws WorkflowException
WorkflowManager
getWorkflow
in interface WorkflowManager
getWorkflow
in class SimpleWorkflowManager
WorkflowException
public JiraWorkflow getWorkflow(Long projectId, String issueTypeId) throws WorkflowException
WorkflowManager
getWorkflow
in interface WorkflowManager
getWorkflow
in class SimpleWorkflowManager
WorkflowException
public JiraWorkflow getWorkflowFromScheme(org.ofbiz.core.entity.GenericValue scheme, String issueTypeId) throws WorkflowException
WorkflowManager
getWorkflowFromScheme
in interface WorkflowManager
getWorkflowFromScheme
in class SimpleWorkflowManager
WorkflowException
public Collection getWorkflowsFromScheme(org.ofbiz.core.entity.GenericValue scheme) throws WorkflowException
WorkflowManager
getWorkflowsFromScheme
in interface WorkflowManager
getWorkflowsFromScheme
in class SimpleWorkflowManager
WorkflowException
public void createWorkflow(User creator, JiraWorkflow workflow) throws WorkflowException
createWorkflow
in interface WorkflowManager
createWorkflow
in class SimpleWorkflowManager
WorkflowException
public void saveWorkflow(JiraWorkflow workflow) throws WorkflowException
saveWorkflow
in interface WorkflowManager
saveWorkflow
in class SimpleWorkflowManager
WorkflowException
public void deleteWorkflow(JiraWorkflow workflow) throws WorkflowException
deleteWorkflow
in interface WorkflowManager
deleteWorkflow
in class SimpleWorkflowManager
WorkflowException
public JiraWorkflow getWorkflow(org.ofbiz.core.entity.GenericValue issue) throws WorkflowException
WorkflowManager
getWorkflow
in interface WorkflowManager
getWorkflow
in class SimpleWorkflowManager
WorkflowException
public void migrateIssueToWorkflow(org.ofbiz.core.entity.GenericValue issue, JiraWorkflow newWorkflow, org.ofbiz.core.entity.GenericValue newStatus) throws WorkflowException
migrateIssueToWorkflow
in interface WorkflowManager
migrateIssueToWorkflow
in class SimpleWorkflowManager
WorkflowException
protected void updateIssueStatusAndUpdatedDate(org.ofbiz.core.entity.GenericValue issue, org.ofbiz.core.entity.GenericValue newStatus)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |