public class

LinkConfluencePage

extends AbstractIssueLinkAction
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
                     ↳ com.atlassian.jira.plugin.link.confluence.LinkConfluencePage

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
[Expand]
Inherited Fields
From class com.atlassian.jira.web.action.issue.AbstractIssueLinkAction
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
LinkConfluencePage(SubTaskManager subTaskManager, FieldScreenRendererFactory fieldScreenRendererFactory, FieldManager fieldManager, ProjectRoleManager projectRoleManager, CommentService commentService, UserUtil userUtil, RemoteIssueLinkService remoteIssueLinkService, EventPublisher eventPublisher, ApplicationLinkService applicationLinkService, ConfluencePageService confluencePageService)
Public Methods
String doDefault()
The "default" command.
String getAppId()
Collection<ApplicationLink> getConfluenceAppLinks()
Collection<String> getFlushedErrorMessages()
Get error messages, then get rid of them.
String getPageUrl()
boolean isValidToView()
Returns true if the contents of the action should be shown, false if otherwise.
void setPageUrl(String pageUrl)
Protected Methods
String doExecute()
void doValidation()
Validate that the user has permission to link issues, and that the comment field is valid.
[Expand]
Inherited Methods
From class com.atlassian.jira.web.action.issue.AbstractIssueLinkAction
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

Public Constructors

public LinkConfluencePage (SubTaskManager subTaskManager, FieldScreenRendererFactory fieldScreenRendererFactory, FieldManager fieldManager, ProjectRoleManager projectRoleManager, CommentService commentService, UserUtil userUtil, RemoteIssueLinkService remoteIssueLinkService, EventPublisher eventPublisher, ApplicationLinkService applicationLinkService, ConfluencePageService confluencePageService)

Public Methods

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 getAppId ()

public Collection<ApplicationLink> getConfluenceAppLinks ()

public Collection<String> getFlushedErrorMessages ()

Get error messages, then get rid of them.

Returns
  • The (now cleared) error messages.

public String getPageUrl ()

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

public void setPageUrl (String pageUrl)

Protected Methods

protected String doExecute ()

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.