Package com.atlassian.jira.config
Interface StatusCategoryManager
- All Known Implementing Classes:
DefaultStatusCategoryManager
public interface StatusCategoryManager
Manager for
StatusCategoryies.- Since:
- v6.1
-
Method Summary
Modifier and TypeMethodDescriptionGetStatusCategorywhich is default for statusesGet all status categoriesFind category by given IDFind category by given KeyFind category by given NameGet status categories visible to any userbooleanReturns a boolean whether status lozenge is enabled or not
-
Method Details
-
getStatusCategories
List<StatusCategory> getStatusCategories()Get all status categories- Returns:
- a list of all StatusCategories
-
getUserVisibleStatusCategories
List<StatusCategory> getUserVisibleStatusCategories()Get status categories visible to any user- Returns:
- a list of StatusCategories visible to any user
-
getDefaultStatusCategory
StatusCategory getDefaultStatusCategory()GetStatusCategorywhich is default for statuses- Returns:
- StatusCategory
-
getStatusCategory
Find category by given ID- Parameters:
id- the id of the category- Returns:
- category or null when is not found
-
getStatusCategoryByKey
Find category by given Key- Parameters:
key- the key of the category- Returns:
- category or null when is not found
-
getStatusCategoryByName
Find category by given Name- Parameters:
name- the non-i18n name of the category- Returns:
- category or null when is not found
- Since:
- v6.2
-
isStatusAsLozengeEnabled
boolean isStatusAsLozengeEnabled()Returns a boolean whether status lozenge is enabled or not- Returns:
- a boolean
-