Package com.atlassian.jira.util
Class JiraContactHelperImpl
java.lang.Object
com.atlassian.jira.util.JiraContactHelperImpl
- All Implemented Interfaces:
JiraContactHelper
- Since:
- v4.4
-
Constructor Summary
ConstructorsConstructorDescriptionJiraContactHelperImpl(ApplicationProperties applicationProperties, com.atlassian.mail.server.MailServerManager mailServerManager, JiraProperties jiraSystemProperties) -
Method Summary
Modifier and TypeMethodDescriptiongetAdministratorContactLink(String baseUrl) Get link for the contact administrator page.getAdministratorContactLinkHtml(String baseUrl, I18nHelper i18nHelper) Get the full link text for the contact administration message as a snippet.getAdministratorContactMessage(I18nHelper i18nHelper) Get the text for the contact administration message as a snippet.booleanGet the information whether Contact Administrator form can be used by users
-
Constructor Details
-
JiraContactHelperImpl
public JiraContactHelperImpl(ApplicationProperties applicationProperties, com.atlassian.mail.server.MailServerManager mailServerManager, JiraProperties jiraSystemProperties)
-
-
Method Details
-
getAdministratorContactLinkHtml
Description copied from interface:JiraContactHelperGet 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).- Specified by:
getAdministratorContactLinkHtmlin interfaceJiraContactHelper- Parameters:
baseUrl- Base Url of the application. Ifnull, non-hyperlinked text will be returnedi18nHelper- i18NHelper- Returns:
- String containing HTML
-
getAdministratorContactMessage
Description copied from interface:JiraContactHelperGet 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 useJiraContactHelper.getAdministratorContactLinkHtml(String baseUrl, I18nHelper i18nHelper)in English "contact your Jira Administrators"
- Specified by:
getAdministratorContactMessagein interfaceJiraContactHelper- Parameters:
i18nHelper- i18NHelper- Returns:
- String containing HTML
-
isAdministratorContactFormEnabled
public boolean isAdministratorContactFormEnabled()Description copied from interface:JiraContactHelperGet the information whether Contact Administrator form can be used by users- Specified by:
isAdministratorContactFormEnabledin interfaceJiraContactHelper
-
getAdministratorContactLink
Description copied from interface:JiraContactHelperGet 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- Specified by:
getAdministratorContactLinkin interfaceJiraContactHelper- Parameters:
baseUrl- Base Url of the application- Returns:
- @since 6.1
-