|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.config.DefaultConstantsManager
Field Summary | |
static org.apache.commons.collections.Predicate |
REGULAR_ISSUE_TYPE_PREDICATE
|
static org.apache.commons.collections.Predicate |
SUBTASK_PREDICATE
|
Fields inherited from interface com.atlassian.jira.config.ConstantsManager |
ALL_ISSUE_TYPES, ALL_STANDARD_ISSUE_TYPES, ALL_SUB_TASK_ISSUE_TYPES, ISSUE_TYPE_CONSTANT_TYPE, PRIORITY_CONSTANT_TYPE, RESOLUTION_CONSTANT_TYPE, STATUS_CONSTANT_TYPE |
Constructor Summary | |
DefaultConstantsManager(JiraAuthenticationContext authenticationContext)
|
Method Summary | |
boolean |
constantExists(String constantType,
String name)
|
List |
convertToConstantObjects(String constantType,
Collection ids)
Converts the list of ids to the objects of appropriate types |
org.ofbiz.core.entity.GenericValue |
createIssueType(String name,
Long sequence,
String style,
String description,
String iconurl)
Note this metod does not validate the input - i.e. |
List |
expandIssueTypeIds(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 |
List |
getAllIssueTypeIds()
|
Collection |
getAllIssueTypeObjects()
|
List |
getAllIssueTypes()
|
org.ofbiz.core.entity.GenericValue |
getConstant(String constantType,
String id)
|
org.ofbiz.core.entity.GenericValue |
getConstantByName(String constantType,
String name)
|
IssueConstant |
getConstantObject(String constantType,
String id)
Returns an IssueConstant object for the given type & id. |
Collection |
getConstantObjects(String constantType)
|
org.ofbiz.core.entity.GenericValue |
getDefaultPriority()
|
List |
getEditableSubTaskIssueTypes()
|
IssueConstant |
getIssueConstant(org.ofbiz.core.entity.GenericValue issueConstantGV)
|
org.ofbiz.core.entity.GenericValue |
getIssueType(String id)
|
IssueType |
getIssueTypeObject(String id)
|
Collection |
getIssueTypes()
Retrieve regular (non-subtask) issue types. |
Collection |
getPriorities()
|
org.ofbiz.core.entity.GenericValue |
getPriority(String id)
|
Priority |
getPriorityObject(String id)
|
Collection |
getPriorityObjects()
|
Collection |
getRegularIssueTypeObjects()
|
org.ofbiz.core.entity.GenericValue |
getResolution(String id)
|
Resolution |
getResolutionObject(String id)
|
Collection |
getResolutionObjects()
|
Collection |
getResolutions()
|
org.ofbiz.core.entity.GenericValue |
getStatus(String id)
|
Status |
getStatusByName(String name)
|
Collection |
getStatuses()
|
Status |
getStatusObject(String id)
|
Collection |
getStatusObjects()
|
Collection |
getSubTaskIssueTypeObjects()
|
Collection |
getSubTaskIssueTypes()
Retrieve subtask issue types. |
void |
refresh()
|
void |
refreshIssueTypes()
|
void |
refreshPriorities()
|
void |
refreshResolutions()
|
void |
refreshStatuses()
|
void |
removeIssueType(String id)
|
void |
storeIssueTypes(List issueTypes)
|
void |
updateIssueType(String id,
String name,
Long sequence,
String style,
String description,
String iconurl)
|
void |
validateCreateIssueType(String name,
String style,
String description,
String iconurl,
ErrorCollection errors,
String nameFieldName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final org.apache.commons.collections.Predicate SUBTASK_PREDICATE
public static final org.apache.commons.collections.Predicate REGULAR_ISSUE_TYPE_PREDICATE
Constructor Detail |
public DefaultConstantsManager(JiraAuthenticationContext authenticationContext)
Method Detail |
public Collection getStatuses()
getStatuses
in interface ConstantsManager
public Collection getStatusObjects()
getStatusObjects
in interface ConstantsManager
public org.ofbiz.core.entity.GenericValue getStatus(String id)
getStatus
in interface ConstantsManager
public Status getStatusObject(String id)
getStatusObject
in interface ConstantsManager
public void refreshStatuses()
refreshStatuses
in interface ConstantsManager
public org.ofbiz.core.entity.GenericValue getConstant(String constantType, String id)
getConstant
in interface ConstantsManager
public IssueConstant getConstantObject(String constantType, String id)
ConstantsManager
IssueConstant
object for the given type & id.
getConstantObject
in interface ConstantsManager
constantType
- case insensitiveid
- of the constant
public Collection getConstantObjects(String constantType)
getConstantObjects
in interface ConstantsManager
public List convertToConstantObjects(String constantType, Collection ids)
ConstantsManager
convertToConstantObjects
in interface ConstantsManager
constantType
- the constant type. Case insenstiveids
- list of constant ids or GenericValues
public boolean constantExists(String constantType, String name)
constantExists
in interface ConstantsManager
public org.ofbiz.core.entity.GenericValue getConstantByName(String constantType, String name)
getConstantByName
in interface ConstantsManager
public org.ofbiz.core.entity.GenericValue createIssueType(String name, Long sequence, String style, String description, String iconurl) throws CreateException
ConstantsManager
createIssueType
in interface ConstantsManager
name
- sequence
- style
- description
- iconurl
-
CreateException
public void validateCreateIssueType(String name, String style, String description, String iconurl, ErrorCollection errors, String nameFieldName)
validateCreateIssueType
in interface ConstantsManager
public void updateIssueType(String id, String name, Long sequence, String style, String description, String iconurl) throws StoreException
updateIssueType
in interface ConstantsManager
StoreException
public void removeIssueType(String id) throws RemoveException
removeIssueType
in interface ConstantsManager
RemoveException
public void storeIssueTypes(List issueTypes) throws StoreException
storeIssueTypes
in interface ConstantsManager
StoreException
public void refresh()
refresh
in interface ConstantsManager
public List expandIssueTypeIds(Collection issueTypeIds)
ConstantsManager
expandIssueTypeIds
in interface ConstantsManager
issueTypeIds
- public List getAllIssueTypeIds()
getAllIssueTypeIds
in interface ConstantsManager
public IssueConstant getIssueConstant(org.ofbiz.core.entity.GenericValue issueConstantGV)
getIssueConstant
in interface ConstantsManager
public Collection getPriorities()
getPriorities
in interface ConstantsManager
public Collection getPriorityObjects()
getPriorityObjects
in interface ConstantsManager
public Priority getPriorityObject(String id)
getPriorityObject
in interface ConstantsManager
public org.ofbiz.core.entity.GenericValue getDefaultPriority()
getDefaultPriority
in interface ConstantsManager
public org.ofbiz.core.entity.GenericValue getPriority(String id)
getPriority
in interface ConstantsManager
public Resolution getResolutionObject(String id)
getResolutionObject
in interface ConstantsManager
public void refreshPriorities()
refreshPriorities
in interface ConstantsManager
public Collection getResolutions()
getResolutions
in interface ConstantsManager
GenericValue
s.public Collection getResolutionObjects()
getResolutionObjects
in interface ConstantsManager
public org.ofbiz.core.entity.GenericValue getResolution(String id)
getResolution
in interface ConstantsManager
public void refreshResolutions()
refreshResolutions
in interface ConstantsManager
public Collection getIssueTypes()
ConstantsManager
getIssueTypes
in interface ConstantsManager
GenericValue
spublic Collection getAllIssueTypeObjects()
getAllIssueTypeObjects
in interface ConstantsManager
public Collection getRegularIssueTypeObjects()
getRegularIssueTypeObjects
in interface ConstantsManager
public Collection getSubTaskIssueTypeObjects()
getSubTaskIssueTypeObjects
in interface ConstantsManager
public Status getStatusByName(String name)
getStatusByName
in interface ConstantsManager
public Collection getSubTaskIssueTypes()
getSubTaskIssueTypes
in interface ConstantsManager
GenericValue
spublic List getEditableSubTaskIssueTypes()
getEditableSubTaskIssueTypes
in interface ConstantsManager
public List getAllIssueTypes()
getAllIssueTypes
in interface ConstantsManager
public org.ofbiz.core.entity.GenericValue getIssueType(String id)
getIssueType
in interface ConstantsManager
public IssueType getIssueTypeObject(String id)
getIssueTypeObject
in interface ConstantsManager
public void refreshIssueTypes()
refreshIssueTypes
in interface ConstantsManager
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |