Package com.atlassian.jira.issue
Class IssueConstantImpl
java.lang.Object
com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
com.atlassian.jira.issue.IssueConstantImpl
- All Implemented Interfaces:
IssueConstant,OfBizValueWrapper,Named,NamedWithDescription,Comparable
- Direct Known Subclasses:
IssueTypeImpl,PriorityImpl,ResolutionImpl,StatusImpl
-
Field Summary
Fields inherited from class com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
genericValueFields inherited from interface com.atlassian.jira.util.Named
NAME_COMPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionIssueConstantImpl(org.ofbiz.core.entity.GenericValue genericValue, TranslationManager translationManager, JiraAuthenticationContext authenticationContext, BaseUrl locator) -
Method Summary
Modifier and TypeMethodDescriptionintvoiddeleteTranslation(String issueConstantPrefix, Locale locale) Returns the url for the icon with the context path added if necessary.Retrieve desc translation in current localegetDescTranslation(I18nHelper i18n) Retrieve desc translation.getDescTranslation(String locale) Retrieve desc translation in specified localeReturns the HTML-escaped URL for this issue constant.getId()getName()Retrieve name translation in current localegetNameTranslation(I18nHelper i18n) Retrieve name translation.getNameTranslation(String locale) Retrieve name translation in specified localecom.opensymphony.module.propertyset.PropertySetvoidsetDescription(String description) voidsetIconUrl(String iconURL) voidvoidsetSequence(Long seq) voidsetTranslation(String translatedName, String translatedDesc, String issueConstantPrefix, Locale locale) toString()Methods inherited from class com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
equals, getGenericValue, getLong, getString, getTimestamp, hashCode, store
-
Constructor Details
-
IssueConstantImpl
public IssueConstantImpl(org.ofbiz.core.entity.GenericValue genericValue, TranslationManager translationManager, JiraAuthenticationContext authenticationContext, BaseUrl locator)
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceIssueConstant
-
getName
- Specified by:
getNamein interfaceIssueConstant- Specified by:
getNamein interfaceNamed
-
setName
-
getDescription
- Specified by:
getDescriptionin interfaceIssueConstant- Specified by:
getDescriptionin interfaceNamedWithDescription
-
setDescription
-
getSequence
- Specified by:
getSequencein interfaceIssueConstant
-
setSequence
-
getCompleteIconUrl
Description copied from interface:IssueConstantReturns the url for the icon with the context path added if necessary.- Specified by:
getCompleteIconUrlin interfaceIssueConstant- Returns:
- the url for the icon with the context path added if necessary. null will be returned if there is no icon URL.
-
getIconUrl
- Specified by:
getIconUrlin interfaceIssueConstant
-
getIconUrlHtml
Description copied from interface:IssueConstantReturns the HTML-escaped URL for this issue constant.- Specified by:
getIconUrlHtmlin interfaceIssueConstant- Returns:
- a String containing an HTML-escaped icon URL
- See Also:
-
setIconUrl
-
getNameTranslation
Retrieve name translation in current locale- Specified by:
getNameTranslationin interfaceIssueConstant
-
getDescTranslation
Retrieve desc translation in current locale- Specified by:
getDescTranslationin interfaceIssueConstant
-
getNameTranslation
Retrieve name translation in specified locale- Specified by:
getNameTranslationin interfaceIssueConstant
-
getDescTranslation
Retrieve desc translation in specified locale- Specified by:
getDescTranslationin interfaceIssueConstant
-
getNameTranslation
Retrieve name translation.If a system defined translation does not exist, the property files for the locale are checked.
- Specified by:
getNameTranslationin interfaceIssueConstant- Parameters:
i18n- an I18nHelper to use for the translation.- Returns:
- String translated name
-
getDescTranslation
Retrieve desc translation.If a system defined translation does not exist, the property files for the locale are checked.
- Specified by:
getDescTranslationin interfaceIssueConstant- Parameters:
i18n- an I18nHelper to use for the translation.- Returns:
- String translated description
-
setTranslation
-
deleteTranslation
-
compareTo
- Specified by:
compareToin interfaceComparable
-
getPropertySet
public com.opensymphony.module.propertyset.PropertySet getPropertySet() -
toString
-