public abstract class

AbstractIssueLinkAction

extends AbstractCommentableIssue
implements OperationContext
java.lang.Object
   ↳ webwork.action.ActionSupport
     ↳ com.atlassian.jira.action.JiraActionSupport
       ↳ com.atlassian.jira.web.action.JiraWebActionSupport
         ↳ com.atlassian.jira.web.action.ProjectActionSupport
           ↳ com.atlassian.jira.web.action.IssueActionSupport
             ↳ com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
               ↳ com.atlassian.jira.web.action.issue.AbstractViewIssue
                 ↳ com.atlassian.jira.web.action.issue.AbstractCommentableIssue
                   ↳ com.atlassian.jira.web.action.issue.AbstractIssueLinkAction
Known Direct Subclasses

Class Overview

Base class for an issue link action.

Summary

[Expand]
Inherited Constants
From class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
From class com.atlassian.jira.web.action.JiraWebActionSupport
From interface webwork.action.Action
Fields
protected final EventPublisher eventPublisher
protected final RemoteIssueLinkService remoteIssueLinkService
protected RemoteIssueLinkService.CreateValidationResult validationResult
[Expand]
Inherited Fields
From class com.atlassian.jira.web.action.issue.AbstractCommentableIssue
From class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
From class com.atlassian.jira.web.action.IssueActionSupport
From class com.atlassian.jira.web.action.ProjectActionSupport
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
Public Constructors
AbstractIssueLinkAction(SubTaskManager subTaskManager, FieldScreenRendererFactory fieldScreenRendererFactory, FieldManager fieldManager, ProjectRoleManager projectRoleManager, CommentService commentService, UserUtil userUtil, RemoteIssueLinkService remoteIssueLinkService, EventPublisher eventPublisher)
Public Methods
RemoteIssueLinkService.RemoteIssueLinkResult createLink(RemoteIssueLinkService.CreateValidationResult validationResult)
Creates the link and publishes an event for the creation
RemoteIssueLinkService.RemoteIssueLinkResult createLink()
Creates the link and publishes an event for the creation
String doDefault()
The "default" command.
String getCommentSectionHtml()
Map<StringObject> getDisplayParams()
static KeyboardShortcutManager.Context getKeyboardShortcutContext()
static String getModifierKey()
boolean isRequiresCredentials()
boolean isValidToView()
Returns true if the contents of the action should be shown, false if otherwise.
Protected Methods
void doValidation()
Validate that the user has permission to link issues, and that the comment field is valid.
String getRedirectUrl()
Returns the URL to redirect to after successfully creating the issue link.
void handleCredentialsRequired()
[Expand]
Inherited Methods
From class com.atlassian.jira.web.action.issue.AbstractCommentableIssue
From class com.atlassian.jira.web.action.issue.AbstractViewIssue
From class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
From class com.atlassian.jira.web.action.IssueActionSupport
From class com.atlassian.jira.web.action.ProjectActionSupport
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
From class java.lang.Object
From interface com.atlassian.jira.issue.customfields.OperationContext
From interface com.atlassian.jira.util.ErrorCollection
From interface com.atlassian.jira.util.I18nHelper
From interface com.atlassian.jira.web.HttpServletVariables
From interface com.atlassian.jira.web.action.issue.IssueSummaryAware
From interface com.atlassian.jira.web.util.AuthorizationSupport
From interface webwork.action.Action
From interface webwork.action.CommandDriven
From interface webwork.action.IllegalArgumentAware

Fields

protected final EventPublisher eventPublisher

protected final RemoteIssueLinkService remoteIssueLinkService

Public Constructors

public AbstractIssueLinkAction (SubTaskManager subTaskManager, FieldScreenRendererFactory fieldScreenRendererFactory, FieldManager fieldManager, ProjectRoleManager projectRoleManager, CommentService commentService, UserUtil userUtil, RemoteIssueLinkService remoteIssueLinkService, EventPublisher eventPublisher)

Public Methods

public RemoteIssueLinkService.RemoteIssueLinkResult createLink (RemoteIssueLinkService.CreateValidationResult validationResult)

Creates the link and publishes an event for the creation

Parameters
validationResult the CreateValidationResult to be used to create the link
Returns
  • create result

public RemoteIssueLinkService.RemoteIssueLinkResult createLink ()

Creates the link and publishes an event for the creation

Returns
  • create result

public String doDefault ()

The "default" command. Checks that the current issue exists and that the user has permission to view it.

Returns
  • INPUT if success, ERROR if otherwise
Throws
Exception

public String getCommentSectionHtml ()

public Map<StringObject> getDisplayParams ()

public static KeyboardShortcutManager.Context getKeyboardShortcutContext ()

public static String getModifierKey ()

public boolean isRequiresCredentials ()

public boolean isValidToView ()

Returns true if the contents of the action should be shown, false if otherwise.

Returns
  • true if the contents of the action should be shown, false if otherwise

Protected Methods

protected void doValidation ()

Validate that the user has permission to link issues, and that the comment field is valid. Override this method to perform validation specific to the concrete action. It is recommended that this method be invoked by any overriding methods.

protected String getRedirectUrl ()

Returns the URL to redirect to after successfully creating the issue link.

Returns
  • the URL to redirect to after successfully creating the issue link

protected void handleCredentialsRequired ()