com.atlassian.greenhopper.web.rapid.issue
Class IssueOperationsHelper

java.lang.Object
  extended by com.atlassian.greenhopper.web.rapid.issue.IssueOperationsHelper

@Service
public class IssueOperationsHelper
extends java.lang.Object

Provides issue actions defined for a given issue. Used by the rapid board as well as the legacy boards (in that case for the dot dialog issue operatinos only)


Constructor Summary
IssueOperationsHelper()
           
 
Method Summary
 IssueOperationsModel buildOperationsModel(com.atlassian.crowd.embedded.api.User user, com.atlassian.jira.issue.Issue issue)
          Builds an operations model that contains all available operations for a the given issue
 java.util.Collection<com.atlassian.jira.plugin.webfragment.model.SimpleLink> getIssueOperations()
          NOTE: Code is a copy from public com.atlassian.jira.web.action.issue.IssueNavigator.getIssueOperations() Used for the dot dialog functionality.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueOperationsHelper

public IssueOperationsHelper()
Method Detail

buildOperationsModel

public IssueOperationsModel buildOperationsModel(com.atlassian.crowd.embedded.api.User user,
                                                 com.atlassian.jira.issue.Issue issue)
Builds an operations model that contains all available operations for a the given issue

Parameters:
issue -

getIssueOperations

public java.util.Collection<com.atlassian.jira.plugin.webfragment.model.SimpleLink> getIssueOperations()
NOTE: Code is a copy from public com.atlassian.jira.web.action.issue.IssueNavigator.getIssueOperations() Used for the dot dialog functionality. The way the keyboard shortcuts work is that they click on hidden links (generated out of the data provided by this method), the listeners attached to those links then get the issue id/key from somewhere, take the url from the link and replace the id placeholder with the real id. the real url and issue id is then passed as ajaxOptions to the dialogs that then load the resulting urls, which gives the content htlm for the form.



Copyright © 2007-2014 Atlassian. All Rights Reserved.