|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.greenhopper.service.workflow.WorkflowServiceImpl
@Service(value="gh-workflowService") public class WorkflowServiceImpl
Provides workflow related service methods
Field Summary |
---|
Fields inherited from interface com.atlassian.greenhopper.service.workflow.WorkflowService |
---|
SERVICE |
Constructor Summary | |
---|---|
WorkflowServiceImpl()
|
Method Summary | |
---|---|
ServiceOutcome<java.lang.Void> |
associateSchemeToProject(com.atlassian.jira.project.Project project,
com.atlassian.jira.scheme.Scheme scheme)
Associates scheme to project |
ServiceOutcome<java.lang.Void> |
associateWorkflowToSchemeAsDefault(java.lang.String workflowName,
com.atlassian.jira.scheme.Scheme scheme)
Associates a workflow to the given scheme, makes it the default workflow for that scheme |
ServiceOutcome<com.atlassian.jira.workflow.JiraWorkflow> |
copyWorkflow(com.atlassian.crowd.embedded.api.User user,
com.atlassian.jira.workflow.JiraWorkflow workflow,
java.lang.String newName,
java.lang.String newDescription)
Creates a new copy of the existing workflow, with the specified name and description. |
ServiceOutcome<java.lang.Void> |
deleteScheme(java.lang.String name)
Delete a workflow scheme with the specified name |
ServiceOutcome<java.lang.Void> |
deleteWorkflow(java.lang.String name)
Delete a workflow with the specified name. |
ServiceOutcome<java.lang.Boolean> |
doesWorkflowSchemeExist(java.lang.String name)
Does a workflow scheme with the specified name exist? |
java.util.Set<com.atlassian.jira.issue.status.Status> |
getAccessibleStatuses(com.atlassian.crowd.embedded.api.User user,
com.atlassian.query.Query query)
Get the list of accessible statuses for issues potentially returned by the current query. |
java.util.Set<com.atlassian.jira.issue.status.Status> |
getAllWorkflowStatusObjects()
Get all available status objects. |
java.util.Collection<com.atlassian.jira.workflow.JiraWorkflow> |
getJiraWorkflows(com.atlassian.jira.project.Project projectObj)
Given a project, returns all JIRA workflows which are associated to that project Empty on error |
java.util.Collection<com.atlassian.jira.workflow.JiraWorkflow> |
getJiraWorkflows(com.atlassian.jira.project.Project projectObj,
java.lang.String issueTypeId)
Given a project and an issue type id, returns the JIRA Workflow which is associated to that project for that issue type Empty on error |
com.atlassian.jira.issue.status.Status |
getStatusByName(java.lang.String statusName)
Get a status given its name |
ServiceOutcome<com.atlassian.jira.workflow.JiraWorkflow> |
getWorkflow(com.atlassian.crowd.embedded.api.User user,
java.lang.String workflowName)
Retrieve the workflow with the specified name |
ServiceOutcome<com.atlassian.jira.scheme.Scheme> |
getWorkflowSchemeForProject(com.atlassian.jira.project.Project project)
Returns the scheme currently associated to the specified Project . |
ServiceOutcome<java.util.Collection<com.atlassian.jira.workflow.JiraWorkflow>> |
getWorkflowsForProject(com.atlassian.jira.project.Project project)
Retrieve the workflows that are in use for the specified Project . |
com.atlassian.jira.issue.status.Status |
getWorkflowStatusObject(java.lang.String statusId)
Get the status object for a given id |
ServiceOutcome<java.lang.Boolean> |
isStatusInitialStatus(com.atlassian.jira.workflow.JiraWorkflow workflow,
com.atlassian.jira.issue.status.Status status)
Is this status the initial status for this workflow? |
ServiceOutcome<java.lang.Boolean> |
isWorkflowSchemeActive(java.lang.String name)
Is the workflow scheme with the specified name active? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkflowServiceImpl()
Method Detail |
---|
public com.atlassian.jira.issue.status.Status getWorkflowStatusObject(java.lang.String statusId)
WorkflowService
getWorkflowStatusObject
in interface WorkflowService
statusId
- the id to look up
public com.atlassian.jira.issue.status.Status getStatusByName(java.lang.String statusName)
WorkflowService
getStatusByName
in interface WorkflowService
public java.util.Set<com.atlassian.jira.issue.status.Status> getAllWorkflowStatusObjects()
getAllWorkflowStatusObjects
in interface WorkflowService
@NotNull public java.util.Set<com.atlassian.jira.issue.status.Status> getAccessibleStatuses(com.atlassian.crowd.embedded.api.User user, com.atlassian.query.Query query)
WorkflowService
getAccessibleStatuses
in interface WorkflowService
user
- the user who would be performing the searchquery
- the query being asked about
public ServiceOutcome<java.lang.Boolean> isStatusInitialStatus(@NotNull com.atlassian.jira.workflow.JiraWorkflow workflow, @NotNull com.atlassian.jira.issue.status.Status status)
WorkflowService
isStatusInitialStatus
in interface WorkflowService
workflow
- the workflowstatus
- the status
public ServiceOutcome<com.atlassian.jira.scheme.Scheme> getWorkflowSchemeForProject(com.atlassian.jira.project.Project project)
WorkflowService
Project
. null
will be the result
if there is no scheme associated (i.e. the Default Scheme is in use).
getWorkflowSchemeForProject
in interface WorkflowService
project
- the project
public ServiceOutcome<java.util.Collection<com.atlassian.jira.workflow.JiraWorkflow>> getWorkflowsForProject(com.atlassian.jira.project.Project project)
WorkflowService
Project
.
getWorkflowsForProject
in interface WorkflowService
project
- the project
public ServiceOutcome<com.atlassian.jira.workflow.JiraWorkflow> copyWorkflow(com.atlassian.crowd.embedded.api.User user, com.atlassian.jira.workflow.JiraWorkflow workflow, java.lang.String newName, java.lang.String newDescription)
WorkflowService
copyWorkflow
in interface WorkflowService
user
- the userworkflow
- the original workflownewName
- the new namenewDescription
- the new description
public ServiceOutcome<com.atlassian.jira.workflow.JiraWorkflow> getWorkflow(com.atlassian.crowd.embedded.api.User user, java.lang.String workflowName)
WorkflowService
getWorkflow
in interface WorkflowService
user
- the userworkflowName
- the workflow name
public ServiceOutcome<java.lang.Boolean> doesWorkflowSchemeExist(java.lang.String name)
WorkflowService
doesWorkflowSchemeExist
in interface WorkflowService
name
- the name
public ServiceOutcome<java.lang.Boolean> isWorkflowSchemeActive(java.lang.String name)
WorkflowService
isWorkflowSchemeActive
in interface WorkflowService
name
- the name
public ServiceOutcome<java.lang.Void> deleteScheme(java.lang.String name)
WorkflowService
deleteScheme
in interface WorkflowService
name
- workflow scheme name
public ServiceOutcome<java.lang.Void> deleteWorkflow(java.lang.String name)
WorkflowService
deleteWorkflow
in interface WorkflowService
name
- workflow name
@NotNull public java.util.Collection<com.atlassian.jira.workflow.JiraWorkflow> getJiraWorkflows(com.atlassian.jira.project.Project projectObj)
WorkflowService
getJiraWorkflows
in interface WorkflowService
@NotNull public java.util.Collection<com.atlassian.jira.workflow.JiraWorkflow> getJiraWorkflows(com.atlassian.jira.project.Project projectObj, java.lang.String issueTypeId)
WorkflowService
getJiraWorkflows
in interface WorkflowService
@NotNull public ServiceOutcome<java.lang.Void> associateWorkflowToSchemeAsDefault(java.lang.String workflowName, com.atlassian.jira.scheme.Scheme scheme)
WorkflowService
associateWorkflowToSchemeAsDefault
in interface WorkflowService
@NotNull public ServiceOutcome<java.lang.Void> associateSchemeToProject(com.atlassian.jira.project.Project project, com.atlassian.jira.scheme.Scheme scheme)
WorkflowService
associateSchemeToProject
in interface WorkflowService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |