public class JiraContactHelperImpl extends Object implements JiraContactHelper
Constructor and Description |
---|
JiraContactHelperImpl(ApplicationProperties applicationProperties,
com.atlassian.mail.server.MailServerManager mailServerManager,
JiraProperties jiraSystemProperties) |
Modifier and Type | Method and Description |
---|---|
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
|
public JiraContactHelperImpl(ApplicationProperties applicationProperties, com.atlassian.mail.server.MailServerManager mailServerManager, JiraProperties jiraSystemProperties)
public String getAdministratorContactLinkHtml(@Nullable String baseUrl, I18nHelper i18nHelper)
JiraContactHelper
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 JiraContactHelper.getAdministratorContactMessage(I18nHelper)
.
getAdministratorContactLinkHtml
in interface JiraContactHelper
baseUrl
- Base Url of the application. If null
, non-hyperlinked text will be returnedi18nHelper
- i18NHelperpublic String getAdministratorContactMessage(I18nHelper i18nHelper)
JiraContactHelper
JiraContactHelper.getAdministratorContactLinkHtml(String baseUrl, I18nHelper i18nHelper)
in English "contact your Jira Administrators"
getAdministratorContactMessage
in interface JiraContactHelper
i18nHelper
- i18NHelperpublic boolean isAdministratorContactFormEnabled()
JiraContactHelper
isAdministratorContactFormEnabled
in interface JiraContactHelper
public String getAdministratorContactLink(String baseUrl)
JiraContactHelper
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
getAdministratorContactLink
in interface JiraContactHelper
baseUrl
- Base Url of the applicationCopyright © 2002-2015 Atlassian. All Rights Reserved.