Class IssueOperationsHelper

java.lang.Object
com.atlassian.greenhopper.web.rapid.issue.operations.IssueOperationsHelper

public class IssueOperationsHelper extends 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 operations only)
  • Constructor Summary

    Constructors
    Constructor
    Description
    IssueOperationsHelper(com.atlassian.jira.security.JiraAuthenticationContext jiraAuthenticationContext, CurrentRequestGetter currentRequestGetter, com.atlassian.jira.plugin.webfragment.SimpleLinkManager simpleLinkManager, I18nFactoryService i18nFactoryService, com.atlassian.jira.util.velocity.VelocityRequestContextFactory velocityRequestContextFactory, com.atlassian.jira.bc.issue.IssueService issueService, IssueOperationsBarUtilFactory issueOperationsBarUtilFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    buildOperationsModel(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.issue.Issue issue)
    Builds an operations model that contains all available operations for a the given issue
    Collection<com.atlassian.jira.plugin.webfragment.model.SimpleLink>
    NOTE: Code is a copy from public com.atlassian.jira.web.action.issue.IssueNavigator.getIssueOperations()

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IssueOperationsHelper

      public IssueOperationsHelper(com.atlassian.jira.security.JiraAuthenticationContext jiraAuthenticationContext, CurrentRequestGetter currentRequestGetter, com.atlassian.jira.plugin.webfragment.SimpleLinkManager simpleLinkManager, I18nFactoryService i18nFactoryService, com.atlassian.jira.util.velocity.VelocityRequestContextFactory velocityRequestContextFactory, com.atlassian.jira.bc.issue.IssueService issueService, IssueOperationsBarUtilFactory issueOperationsBarUtilFactory)
  • Method Details

    • buildOperationsModel

      public IssueOperationsModel buildOperationsModel(com.atlassian.jira.user.ApplicationUser 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 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.