|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.workflow.SimpleWorkflowManager
Constructor Summary | |
SimpleWorkflowManager()
|
Method Summary | |
org.ofbiz.core.entity.GenericValue |
createIssue(String remoteUserName,
Map fields)
Create an issue in the database. |
void |
createWorkflow(User creator,
JiraWorkflow workflow)
|
void |
deleteWorkflow(JiraWorkflow workflow)
|
void |
doWorkflowAction(WorkflowProgressAware from)
|
com.opensymphony.workflow.loader.ActionDescriptor |
getActionDescriptor(WorkflowProgressAware workflowProgressAware)
|
Collection |
getActiveWorkflows()
Retrieve all currently active workflows. |
protected com.opensymphony.workflow.config.Configuration |
getConfiguration()
|
User |
getRemoteUser(Map transientVars)
|
com.opensymphony.workflow.spi.WorkflowStore |
getStore()
This is used for unit testing so we can return our own 'mock store' instead of the static StoreFactory.getPersistence(ctx); Also used in the migrateIssueToWorkflow method. |
JiraWorkflow |
getWorkflow(org.ofbiz.core.entity.GenericValue 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. |
Collection |
getWorkflows()
Retrieve all of the workflows in the system |
Collection |
getWorkflowsFromScheme(org.ofbiz.core.entity.GenericValue workflowScheme)
Returns all workflows for a given scheme |
boolean |
isActive(JiraWorkflow workflow)
Determine whether or not a given workflow is active in the system. |
boolean |
isEditable(Issue issue)
|
boolean |
isSystemWorkflow(JiraWorkflow workflow)
Determine whether or not a given workflow is a system workflow. |
com.opensymphony.workflow.Workflow |
makeWorkflow(String userName)
|
void |
migrateIssueToWorkflow(org.ofbiz.core.entity.GenericValue issue,
JiraWorkflow newWorkflow,
org.ofbiz.core.entity.GenericValue status)
|
void |
removeWorkflowEntries(org.ofbiz.core.entity.GenericValue issue)
|
protected void |
resetConfiguration()
|
void |
saveWorkflow(JiraWorkflow workflow)
|
boolean |
workflowExists(String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleWorkflowManager()
Method Detail |
protected void resetConfiguration()
public Collection getWorkflows()
WorkflowManager
getWorkflows
in interface WorkflowManager
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
WorkflowException
public boolean isSystemWorkflow(JiraWorkflow workflow) throws WorkflowException
WorkflowManager
isSystemWorkflow
in interface WorkflowManager
WorkflowException
public Collection getActiveWorkflows() throws WorkflowException
WorkflowManager
getActiveWorkflows
in interface WorkflowManager
WorkflowException
public JiraWorkflow getWorkflow(String name)
WorkflowManager
getWorkflow
in interface WorkflowManager
public JiraWorkflow getWorkflow(org.ofbiz.core.entity.GenericValue issue) throws WorkflowException
WorkflowManager
getWorkflow
in interface WorkflowManager
WorkflowException
public JiraWorkflow getWorkflow(Long projectId, String issueTypeId) throws WorkflowException
WorkflowManager
getWorkflow
in interface WorkflowManager
WorkflowException
public JiraWorkflow getWorkflowFromScheme(org.ofbiz.core.entity.GenericValue scheme, String issueTypeId) throws WorkflowException
WorkflowManager
getWorkflowFromScheme
in interface WorkflowManager
WorkflowException
public Collection getWorkflowsFromScheme(org.ofbiz.core.entity.GenericValue workflowScheme) throws WorkflowException
WorkflowManager
getWorkflowsFromScheme
in interface WorkflowManager
workflowScheme
-
WorkflowException
public org.ofbiz.core.entity.GenericValue createIssue(String remoteUserName, Map fields) throws WorkflowException
createIssue
in interface WorkflowManager
remoteUserName
- Issue creatorfields
- Map of fields. Must include:
MutableIssue
object (holding values, not yet persisted to disk).
IssueFieldConstants.ISSUE_TYPE
-> issue type
WorkflowException
public void removeWorkflowEntries(org.ofbiz.core.entity.GenericValue issue) throws org.ofbiz.core.entity.GenericEntityException
removeWorkflowEntries
in interface WorkflowManager
org.ofbiz.core.entity.GenericEntityException
public void doWorkflowAction(WorkflowProgressAware from)
doWorkflowAction
in interface WorkflowManager
public User getRemoteUser(Map transientVars) throws EntityNotFoundException
getRemoteUser
in interface WorkflowManager
EntityNotFoundException
public com.opensymphony.workflow.spi.WorkflowStore getStore() throws com.opensymphony.workflow.StoreException
getStore
in interface WorkflowManager
com.opensymphony.workflow.StoreException
public void createWorkflow(User creator, JiraWorkflow workflow) throws WorkflowException
createWorkflow
in interface WorkflowManager
WorkflowException
public void saveWorkflow(JiraWorkflow workflow) throws WorkflowException
saveWorkflow
in interface WorkflowManager
WorkflowException
public void deleteWorkflow(JiraWorkflow workflow) throws WorkflowException
deleteWorkflow
in interface WorkflowManager
WorkflowException
public com.opensymphony.workflow.loader.ActionDescriptor getActionDescriptor(WorkflowProgressAware workflowProgressAware) throws Exception
getActionDescriptor
in interface WorkflowManager
Exception
public void migrateIssueToWorkflow(org.ofbiz.core.entity.GenericValue issue, JiraWorkflow newWorkflow, org.ofbiz.core.entity.GenericValue status) throws WorkflowException
migrateIssueToWorkflow
in interface WorkflowManager
WorkflowException
public com.opensymphony.workflow.Workflow makeWorkflow(String userName)
makeWorkflow
in interface WorkflowManager
public boolean workflowExists(String name) throws WorkflowException
workflowExists
in interface WorkflowManager
WorkflowException
public boolean isEditable(Issue issue)
isEditable
in interface WorkflowManager
protected com.opensymphony.workflow.config.Configuration getConfiguration()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |