com.atlassian.jira.issue.status.category
Class StatusCategoryImpl

java.lang.Object
  extended by com.atlassian.jira.issue.status.category.StatusCategoryImpl
All Implemented Interfaces:
StatusCategory, Serializable, Comparable<StatusCategory>

public class StatusCategoryImpl
extends Object
implements StatusCategory

Since:
v6.1
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.atlassian.jira.issue.status.category.StatusCategory
COMPLETE, IN_PROGRESS, TO_DO, UNDEFINED
 
Method Summary
 int compareTo(StatusCategory o)
           
static StatusCategory findById(Long id)
           
static StatusCategory findByKey(String key)
           
static StatusCategory findByName(String key)
           
static List<StatusCategory> getAllCategories()
           
 String getColorName()
          Returns one of the 6 defined ADG colors: "medium-gray", "green", "yellow", "brown", "warm-red", "blue-gray"
static StatusCategory getDefault()
           
 Long getId()
           
 String getKey()
          Unique String identifier of given category.
 String getName()
          I18n independent human readable name for the status category.
 Long getSequence()
           
 String getTranslatedName()
          Translated name for the status category.
 String getTranslatedName(I18nHelper i18n)
          Translated name for the status category.
 String getTranslatedName(String locale)
          Translated name for the status category.
static List<StatusCategory> getUserVisibleCategories()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getId

public Long getId()
Specified by:
getId in interface StatusCategory

getKey

public String getKey()
Description copied from interface: StatusCategory
Unique String identifier of given category. Should not contain any spaces and non-standard ASCII characters.

Specified by:
getKey in interface StatusCategory

getName

public String getName()
Description copied from interface: StatusCategory
I18n independent human readable name for the status category.

Used primarily for locale-independent JQL statements.

Specified by:
getName in interface StatusCategory
Returns:
Human readable name

getTranslatedName

public String getTranslatedName()
Description copied from interface: StatusCategory
Translated name for the status category. Don't call this in a background thread! It'll fall back to the server's locale. Use StatusCategory.getTranslatedName(com.atlassian.jira.util.I18nHelper) instead.

Specified by:
getTranslatedName in interface StatusCategory

getTranslatedName

public String getTranslatedName(String locale)
Description copied from interface: StatusCategory
Translated name for the status category.

Specified by:
getTranslatedName in interface StatusCategory

getTranslatedName

public String getTranslatedName(I18nHelper i18n)
Description copied from interface: StatusCategory
Translated name for the status category.

Specified by:
getTranslatedName in interface StatusCategory

getColorName

public String getColorName()
Description copied from interface: StatusCategory
Returns one of the 6 defined ADG colors: "medium-gray", "green", "yellow", "brown", "warm-red", "blue-gray"

Specified by:
getColorName in interface StatusCategory
Returns:

getSequence

public Long getSequence()
Specified by:
getSequence in interface StatusCategory

compareTo

public int compareTo(StatusCategory o)
Specified by:
compareTo in interface Comparable<StatusCategory>

findById

public static StatusCategory findById(Long id)

findByKey

public static StatusCategory findByKey(String key)

findByName

public static StatusCategory findByName(String key)

getDefault

public static StatusCategory getDefault()

getAllCategories

public static List<StatusCategory> getAllCategories()

getUserVisibleCategories

public static List<StatusCategory> getUserVisibleCategories()


Copyright © 2002-2014 Atlassian. All Rights Reserved.