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, java.lang.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(java.lang.Object o)
           
 void deleteTranslation(java.lang.String issueConstantPrefix, java.util.Locale locale)
           
 java.lang.String getDescription()
           
 java.lang.String getDescTranslation()
          Retrieve desc translation in current locale
 java.lang.String getDescTranslation(I18nHelper i18n)
          Retrieve desc translation.
 java.lang.String getDescTranslation(java.lang.String locale)
          Retrieve desc translation in specified locale
 java.lang.String getIconUrl()
           
 java.lang.String getIconUrlHtml()
          Returns the HTML-escaped URL for this issue constant.
 java.lang.String getId()
           
 java.lang.String getName()
           
 java.lang.String getNameTranslation()
          Retrieve name translation in current locale
 java.lang.String getNameTranslation(I18nHelper i18n)
          Retrieve name translation.
 java.lang.String getNameTranslation(java.lang.String locale)
          Retrieve name translation in specified locale
 com.opensymphony.module.propertyset.PropertySet getPropertySet()
           
 java.lang.Long getSequence()
           
 void setDescription(java.lang.String description)
           
 void setIconUrl(java.lang.String iconURL)
           
 void setName(java.lang.String name)
           
 void setSequence(java.lang.Long sequence)
           
 void setTranslation(java.lang.String translatedName, java.lang.String translatedDesc, java.lang.String issueConstantPrefix, java.util.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 java.lang.String getId()
Specified by:
getId in interface IssueConstant

getName

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

setName

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

getDescription

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

setDescription

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

getSequence

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

setSequence

public final void setSequence(java.lang.Long sequence)
Specified by:
setSequence in interface IssueConstant

getIconUrl

public java.lang.String getIconUrl()
Specified by:
getIconUrl in interface IssueConstant

getIconUrlHtml

public java.lang.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(java.lang.String iconURL)
Specified by:
setIconUrl in interface IssueConstant

getNameTranslation

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

Specified by:
getNameTranslation in interface IssueConstant

getDescTranslation

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

Specified by:
getDescTranslation in interface IssueConstant

getNameTranslation

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

Specified by:
getNameTranslation in interface IssueConstant

getDescTranslation

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

Specified by:
getDescTranslation in interface IssueConstant

getNameTranslation

public final java.lang.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 java.lang.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(java.lang.String translatedName,
                                 java.lang.String translatedDesc,
                                 java.lang.String issueConstantPrefix,
                                 java.util.Locale locale)
Specified by:
setTranslation in interface IssueConstant

deleteTranslation

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

compareTo

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

getPropertySet

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


Copyright © 2002-2010 Atlassian. All Rights Reserved.