public class

IssueConstantImpl

extends AbstractOfBizValueWrapper
implements IssueConstant
java.lang.Object
   ↳ com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
     ↳ com.atlassian.jira.issue.IssueConstantImpl
Known Direct Subclasses

Summary

[Expand]
Inherited Fields
From class com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
From interface com.atlassian.jira.util.Named
Public Constructors
IssueConstantImpl(GenericValue genericValue, TranslationManager translationManager, JiraAuthenticationContext authenticationContext, BaseUrl locator)
Public Methods
int compareTo(Object o)
void deleteTranslation(String issueConstantPrefix, Locale locale)
String getCompleteIconUrl()
Returns the url for the icon with the context path added if necessary.
String getDescTranslation()
Retrieve desc translation in current locale
String getDescTranslation(I18nHelper i18n)
Retrieve desc translation.
String getDescTranslation(String locale)
Retrieve desc translation in specified locale
String getDescription()
String getIconUrl()
String getIconUrlHtml()
Returns the HTML-escaped URL for this issue constant.
String getId()
String getName()
String getNameTranslation(String locale)
Retrieve name translation in specified locale
String getNameTranslation()
Retrieve name translation in current locale
String getNameTranslation(I18nHelper i18n)
Retrieve name translation.
PropertySet getPropertySet()
Long getSequence()
void setDescription(String description)
void setIconUrl(String iconURL)
void setName(String name)
void setSequence(Long seq)
void setTranslation(String translatedName, String translatedDesc, String issueConstantPrefix, Locale locale)
[Expand]
Inherited Methods
From class com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
From class java.lang.Object
From interface com.atlassian.jira.issue.IssueConstant
From interface com.atlassian.jira.ofbiz.OfBizValueWrapper
From interface com.atlassian.jira.util.Named
From interface com.atlassian.jira.util.NamedWithDescription
From interface java.lang.Comparable

Public Constructors

public IssueConstantImpl (GenericValue genericValue, TranslationManager translationManager, JiraAuthenticationContext authenticationContext, BaseUrl locator)

Public Methods

public int compareTo (Object o)

public void deleteTranslation (String issueConstantPrefix, Locale locale)

public String getCompleteIconUrl ()

Returns the url for the icon with the context path added if necessary.

Returns
  • the url for the icon with the context path added if necessary. null will be returned if there is no icon URL.

public String getDescTranslation ()

Retrieve desc translation in current locale

public String getDescTranslation (I18nHelper i18n)

Retrieve desc translation.

If a system defined translation does not exist, the property files for the locale are checked.

Parameters
i18n an I18nHelper to use for the translation.
Returns
  • String translated description

public String getDescTranslation (String locale)

Retrieve desc translation in specified locale

public String getDescription ()

public String getIconUrl ()

public String getIconUrlHtml ()

Returns the HTML-escaped URL for this issue constant.

Returns
  • a String containing an HTML-escaped icon URL

public String getId ()

public String getName ()

public String getNameTranslation (String locale)

Retrieve name translation in specified locale

public String getNameTranslation ()

Retrieve name translation in current locale

public String getNameTranslation (I18nHelper i18n)

Retrieve name translation.

If a system defined translation does not exist, the property files for the locale are checked.

Parameters
i18n an I18nHelper to use for the translation.
Returns
  • String translated name

public PropertySet getPropertySet ()

public Long getSequence ()

public void setDescription (String description)

public void setIconUrl (String iconURL)

public void setName (String name)

public void setSequence (Long seq)

public void setTranslation (String translatedName, String translatedDesc, String issueConstantPrefix, Locale locale)