public class DefaultStatusCategoryManager extends Object implements StatusCategoryManager
Modifier and Type | Field and Description |
---|---|
static String |
JIRA_ISSUE_STATUS_AS_LOZENGE_FEATURE |
Constructor and Description |
---|
DefaultStatusCategoryManager(FeatureManager featureManager) |
Modifier and Type | Method and Description |
---|---|
StatusCategory |
getDefaultStatusCategory()
Get
StatusCategory which is default for statuses |
List<StatusCategory> |
getStatusCategories()
Get all status categories
|
StatusCategory |
getStatusCategory(Long id)
Find category by given ID
|
StatusCategory |
getStatusCategoryByKey(String key)
Find category by given Key
|
StatusCategory |
getStatusCategoryByName(String name)
Find category by given Name
|
List<StatusCategory> |
getUserVisibleStatusCategories()
Get status categories visible to any user
|
boolean |
isStatusAsLozengeEnabled()
Returns a boolean whether status lozenge is enabled or not
|
public static final String JIRA_ISSUE_STATUS_AS_LOZENGE_FEATURE
public DefaultStatusCategoryManager(FeatureManager featureManager)
public List<StatusCategory> getStatusCategories()
StatusCategoryManager
getStatusCategories
in interface StatusCategoryManager
public List<StatusCategory> getUserVisibleStatusCategories()
StatusCategoryManager
getUserVisibleStatusCategories
in interface StatusCategoryManager
public StatusCategory getDefaultStatusCategory()
StatusCategoryManager
StatusCategory
which is default for statusesgetDefaultStatusCategory
in interface StatusCategoryManager
public StatusCategory getStatusCategory(Long id)
StatusCategoryManager
getStatusCategory
in interface StatusCategoryManager
id
- the id of the categorypublic StatusCategory getStatusCategoryByKey(String key)
StatusCategoryManager
getStatusCategoryByKey
in interface StatusCategoryManager
key
- the key of the categorypublic StatusCategory getStatusCategoryByName(String name)
StatusCategoryManager
getStatusCategoryByName
in interface StatusCategoryManager
name
- the non-i18n name of the categorypublic boolean isStatusAsLozengeEnabled()
StatusCategoryManager
isStatusAsLozengeEnabled
in interface StatusCategoryManager
Copyright © 2002-2015 Atlassian. All Rights Reserved.