com.atlassian.jira.issue
Class IssueUtilsBean

java.lang.Object
  extended by com.atlassian.jira.issue.IssueUtilsBean

public class IssueUtilsBean
extends Object


Constructor Summary
IssueUtilsBean(IssueManager issueManager, WorkflowManager workflowManager, JiraAuthenticationContext authenticationContext, com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 
Method Summary
 com.opensymphony.workflow.Workflow getWorkflow()
           
 boolean hasAvailableActionsOrOperations(Issue issue)
          Determines whether or not the passed in issue has any operations or actions available to run.
 boolean isValidAction(Issue issue, int action)
          Is this a valid action for the issue in its current state
 Map<Integer,com.opensymphony.workflow.loader.ActionDescriptor> loadAvailableActions(Issue issueObject)
           
 org.ofbiz.core.entity.GenericValue setPriority(org.ofbiz.core.entity.GenericValue issue, User remoteUser, String priority)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueUtilsBean

public IssueUtilsBean(IssueManager issueManager,
                      WorkflowManager workflowManager,
                      JiraAuthenticationContext authenticationContext,
                      com.atlassian.plugin.PluginAccessor pluginAccessor)
Method Detail

loadAvailableActions

public Map<Integer,com.opensymphony.workflow.loader.ActionDescriptor> loadAvailableActions(Issue issueObject)

isValidAction

public boolean isValidAction(Issue issue,
                             int action)
Is this a valid action for the issue in its current state

Parameters:
issue - the issue
action - the id of the action we want to transition
Returns:
true if it is ok to use this transition

getWorkflow

public com.opensymphony.workflow.Workflow getWorkflow()

setPriority

public org.ofbiz.core.entity.GenericValue setPriority(org.ofbiz.core.entity.GenericValue issue,
                                                      User remoteUser,
                                                      String priority)
                                               throws Exception
Throws:
Exception

hasAvailableActionsOrOperations

public boolean hasAvailableActionsOrOperations(Issue issue)
Determines whether or not the passed in issue has any operations or actions available to run.

Parameters:
issue - The issue to get actiosn and operations.
Returns:
true if there is atleast 1 operation or action available for the given issue.


Copyright © 2002-2009 Atlassian. All Rights Reserved.