com.atlassian.jira.issue
Class IssueConstantImpl

java.lang.Object
  extended by com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
      extended by com.atlassian.jira.issue.IssueConstantImpl
All Implemented Interfaces:
IssueConstant, OfBizValueWrapper, Comparable
Direct Known Subclasses:
IssueTypeImpl, PriorityImpl, ResolutionImpl, StatusImpl

public class IssueConstantImpl
extends AbstractOfBizValueWrapper
implements IssueConstant


Field Summary
 
Fields inherited from class com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
genericValue
 
Constructor Summary
IssueConstantImpl(org.ofbiz.core.entity.GenericValue genericValue, TranslationManager translationManager, JiraAuthenticationContext authenticationContext)
           
 
Method Summary
 int compareTo(Object o)
           
 void deleteTranslation(String issueConstantPrefix, Locale locale)
           
 String getDescription()
           
 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 getIconUrl()
           
 String getIconUrlHtml()
          Returns the HTML-escaped URL for this issue constant.
 String getId()
           
 String getName()
           
 String getNameTranslation()
          Retrieve name translation in current locale
 String getNameTranslation(I18nHelper i18n)
          Retrieve name translation.
 String getNameTranslation(String locale)
          Retrieve name translation in specified locale
 com.opensymphony.module.propertyset.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)
           
 
Methods inherited from class com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
equals, getGenericValue, getLong, getString, getTimestamp, hashCode, store
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.issue.IssueConstant
getGenericValue
 

Constructor Detail

IssueConstantImpl

public IssueConstantImpl(org.ofbiz.core.entity.GenericValue genericValue,
                         TranslationManager translationManager,
                         JiraAuthenticationContext authenticationContext)
Method Detail

getId

public final String getId()
Specified by:
getId in interface IssueConstant

getName

public final String getName()
Specified by:
getName in interface IssueConstant

setName

public final void setName(String name)
Specified by:
setName in interface IssueConstant

getDescription

public final String getDescription()
Specified by:
getDescription in interface IssueConstant

setDescription

public final void setDescription(String description)
Specified by:
setDescription in interface IssueConstant

getSequence

public final Long getSequence()
Specified by:
getSequence in interface IssueConstant

setSequence

public final void setSequence(Long seq)
Specified by:
setSequence in interface IssueConstant

getIconUrl

public String getIconUrl()
Specified by:
getIconUrl in interface IssueConstant

getIconUrlHtml

public String getIconUrlHtml()
Description copied from interface: IssueConstant
Returns the HTML-escaped URL for this issue constant.

Specified by:
getIconUrlHtml in interface IssueConstant
Returns:
a String containing an HTML-escaped icon URL
See Also:
IssueConstant.getIconUrl()

setIconUrl

public void setIconUrl(String iconURL)
Specified by:
setIconUrl in interface IssueConstant

getNameTranslation

public final String getNameTranslation()
Retrieve name translation in current locale

Specified by:
getNameTranslation in interface IssueConstant

getDescTranslation

public final String getDescTranslation()
Retrieve desc translation in current locale

Specified by:
getDescTranslation in interface IssueConstant

getNameTranslation

public final String getNameTranslation(String locale)
Retrieve name translation in specified locale

Specified by:
getNameTranslation in interface IssueConstant

getDescTranslation

public final String getDescTranslation(String locale)
Retrieve desc translation in specified locale

Specified by:
getDescTranslation in interface IssueConstant

getNameTranslation

public final String getNameTranslation(I18nHelper i18n)
Retrieve name translation.

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

Specified by:
getNameTranslation in interface IssueConstant
Parameters:
i18n - an I18nHelper to use for the translation.
Returns:
String translated name

getDescTranslation

public final String getDescTranslation(I18nHelper i18n)
Retrieve desc translation.

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

Specified by:
getDescTranslation in interface IssueConstant
Parameters:
i18n - an I18nHelper to use for the translation.
Returns:
String translated description

setTranslation

public final void setTranslation(String translatedName,
                                 String translatedDesc,
                                 String issueConstantPrefix,
                                 Locale locale)
Specified by:
setTranslation in interface IssueConstant

deleteTranslation

public final void deleteTranslation(String issueConstantPrefix,
                                    Locale locale)
Specified by:
deleteTranslation in interface IssueConstant

compareTo

public final int compareTo(Object o)
Specified by:
compareTo in interface Comparable

getPropertySet

public com.opensymphony.module.propertyset.PropertySet getPropertySet()
Specified by:
getPropertySet in interface IssueConstant


Copyright © 2002-2012 Atlassian. All Rights Reserved.