com.atlassian.greenhopper.web.rapid.workflow
Class WorkflowHelper

java.lang.Object
  extended by com.atlassian.greenhopper.web.rapid.workflow.WorkflowHelper

@Service
public class WorkflowHelper
extends java.lang.Object


Nested Class Summary
static class WorkflowHelper.SimplifiedWorkflowResult
           
 
Constructor Summary
WorkflowHelper()
           
 
Method Summary
 ServiceOutcome<com.atlassian.jira.issue.status.Status> addStatusToGreenHopperSimplifiedWorkflow(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.lang.String statusName)
          Will attempt to get or create the status named and add it to the GreenHopper Simplified Workflow that is backing this Rapid View.
 ServiceOutcome<java.lang.Void> checkForSimplifiedWorkflowNamedAfterProject(com.atlassian.crowd.embedded.api.User user, com.atlassian.jira.project.Project project)
           
 ServiceOutcome<com.atlassian.jira.util.lang.Pair<com.atlassian.jira.workflow.JiraWorkflow,com.atlassian.jira.project.Project>> getGreenHopperSimplifiedWorkflow(com.atlassian.crowd.embedded.api.User user, RapidView rapidView)
           
 ServiceOutcome<com.atlassian.jira.util.lang.Pair<com.atlassian.jira.workflow.JiraWorkflow,com.atlassian.jira.project.Project>> getPotentialWorkflowForConversion(com.atlassian.crowd.embedded.api.User user, RapidView rapidView)
           
 ServiceOutcome<com.atlassian.jira.issue.status.Status> getStatusById(java.lang.String statusId)
           
 ServiceOutcome<com.atlassian.jira.workflow.JiraWorkflow> getWorkflow(com.atlassian.crowd.embedded.api.User user, java.lang.String workflowName)
           
 WorkflowHelper.SimplifiedWorkflowResult isRapidViewUsingGreenHopperSimplifiedWorkflow(com.atlassian.crowd.embedded.api.User user, RapidView rapidView)
           
 ServiceOutcome<java.lang.Void> validateModifyWorkflow(com.atlassian.crowd.embedded.api.User user, com.atlassian.jira.project.Project project, java.lang.String errorMsgKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowHelper

public WorkflowHelper()
Method Detail

isRapidViewUsingGreenHopperSimplifiedWorkflow

public WorkflowHelper.SimplifiedWorkflowResult isRapidViewUsingGreenHopperSimplifiedWorkflow(com.atlassian.crowd.embedded.api.User user,
                                                                                             RapidView rapidView)

getGreenHopperSimplifiedWorkflow

public ServiceOutcome<com.atlassian.jira.util.lang.Pair<com.atlassian.jira.workflow.JiraWorkflow,com.atlassian.jira.project.Project>> getGreenHopperSimplifiedWorkflow(com.atlassian.crowd.embedded.api.User user,
                                                                                                                                                                       RapidView rapidView)

getPotentialWorkflowForConversion

public ServiceOutcome<com.atlassian.jira.util.lang.Pair<com.atlassian.jira.workflow.JiraWorkflow,com.atlassian.jira.project.Project>> getPotentialWorkflowForConversion(com.atlassian.crowd.embedded.api.User user,
                                                                                                                                                                        RapidView rapidView)

getWorkflow

public ServiceOutcome<com.atlassian.jira.workflow.JiraWorkflow> getWorkflow(com.atlassian.crowd.embedded.api.User user,
                                                                            java.lang.String workflowName)

getStatusById

public ServiceOutcome<com.atlassian.jira.issue.status.Status> getStatusById(java.lang.String statusId)

checkForSimplifiedWorkflowNamedAfterProject

public ServiceOutcome<java.lang.Void> checkForSimplifiedWorkflowNamedAfterProject(com.atlassian.crowd.embedded.api.User user,
                                                                                  com.atlassian.jira.project.Project project)

addStatusToGreenHopperSimplifiedWorkflow

public ServiceOutcome<com.atlassian.jira.issue.status.Status> addStatusToGreenHopperSimplifiedWorkflow(com.atlassian.crowd.embedded.api.User user,
                                                                                                       RapidView rapidView,
                                                                                                       java.lang.String statusName)
Will attempt to get or create the status named and add it to the GreenHopper Simplified Workflow that is backing this Rapid View. Does not alter the Rapid View's column configuration.

Parameters:
user - the user
rapidView - the rapid view
statusName - the name of the status
Returns:
the result
See Also:
getGreenHopperSimplifiedWorkflow(com.atlassian.crowd.embedded.api.User, com.atlassian.greenhopper.model.rapid.RapidView), WorkflowConstantsService.getOrCreateStatus(String, String, String), SimplifiedWorkflowService.addStatusToGreenHopperSimplifiedWorkflow(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.workflow.JiraWorkflow, com.atlassian.jira.issue.status.Status)

validateModifyWorkflow

public ServiceOutcome<java.lang.Void> validateModifyWorkflow(com.atlassian.crowd.embedded.api.User user,
                                                             com.atlassian.jira.project.Project project,
                                                             java.lang.String errorMsgKey)


Copyright © 2007-2013 Atlassian. All Rights Reserved.