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)
           
 
Method Summary
 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.
 
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)
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


Copyright © 2002-2012 Atlassian. All Rights Reserved.