public class

JiraContactHelperImpl

extends Object
implements JiraContactHelper
java.lang.Object
   ↳ com.atlassian.jira.util.JiraContactHelperImpl

Summary

Public Constructors
JiraContactHelperImpl(ApplicationProperties applicationProperties, MailServerManager mailServerManager, JiraProperties jiraSystemProperties)
Public Methods
String getAdministratorContactLink(String baseUrl)

Get link for the contact administrator page.

String getAdministratorContactLinkHtml(String baseUrl, I18nHelper i18nHelper)

Get the full link text for the contact administration message as a snippet.

String getAdministratorContactMessage(I18nHelper i18nHelper)
Get the text for the contact administration message as a snippet.
boolean isAdministratorContactFormEnabled()
Get the information whether Contact Administrator form can be used by users
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.util.JiraContactHelper

Public Constructors

public JiraContactHelperImpl (ApplicationProperties applicationProperties, MailServerManager mailServerManager, JiraProperties jiraSystemProperties)

Public Methods

public String getAdministratorContactLink (String baseUrl)

Get link for the contact administrator page. This method will not respect Contact Form's settings - it will always return a link

For example: /jira/secure/ContactAdministrators!default.jspa

Parameters
baseUrl Base Url of the application

public String getAdministratorContactLinkHtml (String baseUrl, I18nHelper i18nHelper)

Get the full link text for the contact administration message as a snippet. This message is not puncuated or capatilised and should be able to be inserted within a more complete message.

In English "Contact your Jira Administrators"

In some cases (e.g. empty base URL, or contact form turned off) this will just return a non-hyperlinked text message equivalent to getAdministratorContactMessage(I18nHelper).

Parameters
baseUrl Base Url of the application. If null, non-hyperlinked text will be returned
i18nHelper i18NHelper
Returns
  • String containing HTML

public String getAdministratorContactMessage (I18nHelper i18nHelper)

Get the text for the contact administration message as a snippet. This message is not puncuated or capatilised and should be able to be inserted within a more complete message. If you want a hyperlink then use getAdministratorContactLinkHtml(String, I18nHelper)

in English "contact your Jira Administrators"

Parameters
i18nHelper i18NHelper
Returns
  • String containing HTML

public boolean isAdministratorContactFormEnabled ()

Get the information whether Contact Administrator form can be used by users