com.atlassian.jira.util
Class JiraContactHelperImpl

java.lang.Object
  extended by com.atlassian.jira.util.JiraContactHelperImpl
All Implemented Interfaces:
JiraContactHelper

public class JiraContactHelperImpl
extends Object
implements JiraContactHelper

Since:
v4.4

Constructor Summary
JiraContactHelperImpl(ApplicationProperties applicationProperties, com.atlassian.mail.server.MailServerManager mailServerManager, JiraProperties jiraSystemProperties)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraContactHelperImpl

public JiraContactHelperImpl(ApplicationProperties applicationProperties,
                             com.atlassian.mail.server.MailServerManager mailServerManager,
                             JiraProperties jiraSystemProperties)
Method Detail

getAdministratorContactLinkHtml

public String getAdministratorContactLinkHtml(@Nullable
                                              String baseUrl,
                                              I18nHelper i18nHelper)
Description copied from interface: 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).

Specified by:
getAdministratorContactLinkHtml in interface JiraContactHelper
Parameters:
baseUrl - Base Url of the application. If null, non-hyperlinked text will be returned
i18nHelper - i18NHelper
Returns:
String containing HTML

getAdministratorContactMessage

public String getAdministratorContactMessage(I18nHelper i18nHelper)
Description copied from interface: JiraContactHelper
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 JiraContactHelper.getAdministratorContactLinkHtml(String baseUrl, I18nHelper i18nHelper)

in English "contact your Jira Administrators"

Specified by:
getAdministratorContactMessage in interface JiraContactHelper
Parameters:
i18nHelper - i18NHelper
Returns:
String containing HTML

isAdministratorContactFormEnabled

public boolean isAdministratorContactFormEnabled()
Description copied from interface: JiraContactHelper
Get the information whether Contact Administrator form can be used by users

Specified by:
isAdministratorContactFormEnabled in interface JiraContactHelper

getAdministratorContactLink

public String getAdministratorContactLink(String baseUrl)
Description copied from interface: 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

Specified by:
getAdministratorContactLink in interface JiraContactHelper
Parameters:
baseUrl - Base Url of the application
Returns:
@since 6.1


Copyright © 2002-2014 Atlassian. All Rights Reserved.