com.atlassian.jira.config
Class DefaultConstantsManager
java.lang.Object
com.atlassian.jira.config.DefaultConstantsManager
- All Implemented Interfaces:
- ConstantsManager
public class DefaultConstantsManager
- extends java.lang.Object
- implements ConstantsManager
Method Summary |
boolean |
constantExists(java.lang.String constantType,
java.lang.String name)
|
void |
createIssueType(java.lang.String name,
java.lang.Long sequence,
java.lang.String style,
java.lang.String description,
java.lang.String iconurl)
Note this metod does not validate the input - i.e. |
java.util.List |
expandIssueTypeIds(java.util.Collection issueTypeIds)
Converts the 'special' ids of issue types to a list of issue type ids
For example, converts a special id to a list of all sub-task issue types |
java.util.List |
getAllIssueTypes()
|
org.ofbiz.core.entity.GenericValue |
getConstant(java.lang.String constantType,
java.lang.String id)
|
org.ofbiz.core.entity.GenericValue |
getConstantByName(java.lang.String constantType,
java.lang.String name)
|
java.util.List |
getEditableSubTaskIssueTypes()
|
org.ofbiz.core.entity.GenericValue |
getIssueType(java.lang.String id)
|
java.util.Collection |
getIssueTypes()
|
java.util.Collection |
getPriorities()
|
org.ofbiz.core.entity.GenericValue |
getPriority(java.lang.String id)
|
org.ofbiz.core.entity.GenericValue |
getResolution(java.lang.String id)
|
java.util.Collection |
getResolutions()
|
org.ofbiz.core.entity.GenericValue |
getStatus(java.lang.String id)
|
java.util.Collection |
getStatuses()
|
java.util.Collection |
getSubTaskIssueTypes()
Retrieves all the sub-task issue types |
void |
refresh()
|
void |
refreshIssueTypes()
|
void |
refreshPriorities()
|
void |
refreshResolutions()
|
void |
refreshStatuses()
|
void |
removeIssueType(java.lang.String id)
|
void |
storeIssueTypes(java.util.List issueTypes)
|
void |
updateIssueType(java.lang.String id,
java.lang.String name,
java.lang.Long sequence,
java.lang.String style,
java.lang.String description,
java.lang.String iconurl)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultConstantsManager
public DefaultConstantsManager()
getStatuses
public java.util.Collection getStatuses()
- Specified by:
getStatuses
in interface ConstantsManager
getStatus
public org.ofbiz.core.entity.GenericValue getStatus(java.lang.String id)
- Specified by:
getStatus
in interface ConstantsManager
refreshStatuses
public void refreshStatuses()
- Specified by:
refreshStatuses
in interface ConstantsManager
getConstant
public org.ofbiz.core.entity.GenericValue getConstant(java.lang.String constantType,
java.lang.String id)
- Specified by:
getConstant
in interface ConstantsManager
constantExists
public boolean constantExists(java.lang.String constantType,
java.lang.String name)
- Specified by:
constantExists
in interface ConstantsManager
getConstantByName
public org.ofbiz.core.entity.GenericValue getConstantByName(java.lang.String constantType,
java.lang.String name)
- Specified by:
getConstantByName
in interface ConstantsManager
createIssueType
public void createIssueType(java.lang.String name,
java.lang.Long sequence,
java.lang.String style,
java.lang.String description,
java.lang.String iconurl)
throws CreateException
- Description copied from interface:
ConstantsManager
- Note this metod does not validate the input - i.e. It does not check for duplicate names etc.
- Specified by:
createIssueType
in interface ConstantsManager
- Throws:
CreateException
updateIssueType
public void updateIssueType(java.lang.String id,
java.lang.String name,
java.lang.Long sequence,
java.lang.String style,
java.lang.String description,
java.lang.String iconurl)
throws StoreException
- Specified by:
updateIssueType
in interface ConstantsManager
- Throws:
StoreException
removeIssueType
public void removeIssueType(java.lang.String id)
throws RemoveException
- Specified by:
removeIssueType
in interface ConstantsManager
- Throws:
RemoveException
storeIssueTypes
public void storeIssueTypes(java.util.List issueTypes)
throws StoreException
- Specified by:
storeIssueTypes
in interface ConstantsManager
- Throws:
StoreException
refresh
public void refresh()
- Specified by:
refresh
in interface ConstantsManager
expandIssueTypeIds
public java.util.List expandIssueTypeIds(java.util.Collection issueTypeIds)
- Description copied from interface:
ConstantsManager
- Converts the 'special' ids of issue types to a list of issue type ids
For example, converts a special id to a list of all sub-task issue types
- Specified by:
expandIssueTypeIds
in interface ConstantsManager
- Returns:
getPriorities
public java.util.Collection getPriorities()
- Specified by:
getPriorities
in interface ConstantsManager
getPriority
public org.ofbiz.core.entity.GenericValue getPriority(java.lang.String id)
- Specified by:
getPriority
in interface ConstantsManager
refreshPriorities
public void refreshPriorities()
- Specified by:
refreshPriorities
in interface ConstantsManager
getResolutions
public java.util.Collection getResolutions()
- Specified by:
getResolutions
in interface ConstantsManager
getResolution
public org.ofbiz.core.entity.GenericValue getResolution(java.lang.String id)
- Specified by:
getResolution
in interface ConstantsManager
refreshResolutions
public void refreshResolutions()
- Specified by:
refreshResolutions
in interface ConstantsManager
getIssueTypes
public java.util.Collection getIssueTypes()
- Specified by:
getIssueTypes
in interface ConstantsManager
getSubTaskIssueTypes
public java.util.Collection getSubTaskIssueTypes()
- Description copied from interface:
ConstantsManager
- Retrieves all the sub-task issue types
- Specified by:
getSubTaskIssueTypes
in interface ConstantsManager
- Returns:
getEditableSubTaskIssueTypes
public java.util.List getEditableSubTaskIssueTypes()
- Specified by:
getEditableSubTaskIssueTypes
in interface ConstantsManager
getAllIssueTypes
public java.util.List getAllIssueTypes()
- Specified by:
getAllIssueTypes
in interface ConstantsManager
getIssueType
public org.ofbiz.core.entity.GenericValue getIssueType(java.lang.String id)
- Specified by:
getIssueType
in interface ConstantsManager
refreshIssueTypes
public void refreshIssueTypes()
- Specified by:
refreshIssueTypes
in interface ConstantsManager
Copyright © 2002-2006 Atlassian. All Rights Reserved.