com.atlassian.jira.config
Class DefaultStatusCategoryManager

java.lang.Object
  extended by com.atlassian.jira.config.DefaultStatusCategoryManager
All Implemented Interfaces:
StatusCategoryManager

public class DefaultStatusCategoryManager
extends Object
implements StatusCategoryManager

Since:
v6.1

Field Summary
static String JIRA_ISSUE_STATUS_AS_LOZENGE_FEATURE
           
 
Constructor Summary
DefaultStatusCategoryManager(FeatureManager featureManager)
           
 
Method Summary
 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
 List<StatusCategory> getUserVisibleStatusCategories()
          Get status categories visible to any user
 boolean isStatusAsLozengeEnabled()
          Returns a boolean whether status lozenge is enabled or not
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JIRA_ISSUE_STATUS_AS_LOZENGE_FEATURE

public static final String JIRA_ISSUE_STATUS_AS_LOZENGE_FEATURE
See Also:
Constant Field Values
Constructor Detail

DefaultStatusCategoryManager

public DefaultStatusCategoryManager(FeatureManager featureManager)
Method Detail

getStatusCategories

public List<StatusCategory> getStatusCategories()
Description copied from interface: StatusCategoryManager
Get all status categories

Specified by:
getStatusCategories in interface StatusCategoryManager
Returns:
a list of all StatusCategories

getUserVisibleStatusCategories

public List<StatusCategory> getUserVisibleStatusCategories()
Description copied from interface: StatusCategoryManager
Get status categories visible to any user

Specified by:
getUserVisibleStatusCategories in interface StatusCategoryManager
Returns:
a list of StatusCategories visible to any user

getDefaultStatusCategory

public StatusCategory getDefaultStatusCategory()
Description copied from interface: StatusCategoryManager
Get StatusCategory which is default for statuses

Specified by:
getDefaultStatusCategory in interface StatusCategoryManager
Returns:
StatusCategory

getStatusCategory

public StatusCategory getStatusCategory(Long id)
Description copied from interface: StatusCategoryManager
Find category by given ID

Specified by:
getStatusCategory in interface StatusCategoryManager
Parameters:
id - the id of the category
Returns:
category or null when is not found

getStatusCategoryByKey

public StatusCategory getStatusCategoryByKey(String key)
Description copied from interface: StatusCategoryManager
Find category by given Key

Specified by:
getStatusCategoryByKey in interface StatusCategoryManager
Parameters:
key - the key of the category
Returns:
category or null when is not found

isStatusAsLozengeEnabled

public boolean isStatusAsLozengeEnabled()
Description copied from interface: StatusCategoryManager
Returns a boolean whether status lozenge is enabled or not

Specified by:
isStatusAsLozengeEnabled in interface StatusCategoryManager
Returns:
a boolean


Copyright © 2002-2014 Atlassian. All Rights Reserved.