com.atlassian.jira.config
Class DefaultConstantsManager

java.lang.Object
  extended by com.atlassian.jira.config.DefaultConstantsManager
All Implemented Interfaces:
ConstantsManager, Startable

public class DefaultConstantsManager
extends java.lang.Object
implements ConstantsManager, Startable


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, TranslationManager translationManager, OfBizDelegator ofBizDelegator, com.atlassian.event.api.EventPublisher eventPublisher)
           
 
Method Summary
 boolean constantExists(java.lang.String constantType, java.lang.String name)
          Checks if a constant exists.
 java.util.List<IssueConstant> convertToConstantObjects(java.lang.String constantType, java.util.Collection ids)
          Converts the list of ids to the objects of appropriate types
 org.ofbiz.core.entity.GenericValue 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<java.lang.String> expandIssueTypeIds(java.util.Collection<java.lang.String> 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 Also see ConstantsManager.ALL_STANDARD_ISSUE_TYPES, ConstantsManager.ALL_SUB_TASK_ISSUE_TYPES and ConstantsManager.ALL_ISSUE_TYPES.
 java.util.List<java.lang.String> getAllIssueTypeIds()
          Returns all issueType Ids.
 java.util.Collection<IssueType> getAllIssueTypeObjects()
          Returns a list of IssueTypes.
 java.util.List<org.ofbiz.core.entity.GenericValue> getAllIssueTypes()
          Returns a list of IssueTypes.
 org.ofbiz.core.entity.GenericValue getConstant(java.lang.String constantType, java.lang.String id)
          Generic method to retrieve a particular constant type.
 org.ofbiz.core.entity.GenericValue getConstantByName(java.lang.String constantType, java.lang.String name)
          Returns a constant by name.
 IssueConstant getConstantByNameIgnoreCase(java.lang.String constantType, java.lang.String name)
          Returns a constant by name ignoring the case of the name passed in.
 IssueConstant getConstantObject(java.lang.String constantType, java.lang.String id)
          Returns an IssueConstant object for the given type & id.
 java.util.Collection getConstantObjects(java.lang.String constantType)
          Returns all IssueConstant objects for the given type.
 org.ofbiz.core.entity.GenericValue getDefaultPriority()
          Returns the default priority configured in JIRA.
 Priority getDefaultPriorityObject()
          Returns the default priority configured in JIRA.
 java.util.List<org.ofbiz.core.entity.GenericValue> getEditableSubTaskIssueTypes()
          Retrieves an editable list of sub-task issues.
 IssueConstant getIssueConstant(org.ofbiz.core.entity.GenericValue issueConstantGV)
          Converts a constant GenericValue to an IssueConstant object.
 IssueConstant getIssueConstantByName(java.lang.String constantType, java.lang.String name)
           
 org.ofbiz.core.entity.GenericValue getIssueType(java.lang.String id)
          Given an IssueType ID this method retrieves that IssueType.
 IssueType getIssueTypeObject(java.lang.String id)
          Given an IssueType ID this method retrieves that IssueType.
 java.util.Collection<org.ofbiz.core.entity.GenericValue> getIssueTypes()
          Retrieve regular (non-subtask) issue types.
 java.util.Collection<org.ofbiz.core.entity.GenericValue> getPriorities()
          Retrieve all Priorities in JIRA.
 org.ofbiz.core.entity.GenericValue getPriority(java.lang.String id)
          Given a priority ID, this method retrieves that priority.
 java.lang.String getPriorityName(java.lang.String id)
          Returns the priority Name for a given priority ID.
 Priority getPriorityObject(java.lang.String id)
          Given a priority ID, this method retrieves that priority.
 java.util.Collection<Priority> getPriorityObjects()
          Retrieve all Priorities in JIRA.
 java.util.Collection<IssueType> getRegularIssueTypeObjects()
          Retrieve regular (non-subtask) issue types.
 org.ofbiz.core.entity.GenericValue getResolution(java.lang.String id)
          Given a resolution ID, this method retrieves that resolution.
 Resolution getResolutionObject(java.lang.String id)
          Given a resolution ID, this method retrieves that resolution.
 java.util.Collection<Resolution> getResolutionObjects()
          Retrieve all Resolutions in JIRA.
 java.util.Collection<org.ofbiz.core.entity.GenericValue> getResolutions()
          Retrieve all Resolutions in JIRA.
 org.ofbiz.core.entity.GenericValue getStatus(java.lang.String id)
          Returns a Status given an id.
 Status getStatusByName(java.lang.String name)
          Searches for a given status by name.
 java.util.Collection<org.ofbiz.core.entity.GenericValue> getStatuses()
          Returns all statuses
 Status getStatusObject(java.lang.String id)
          Returns a Status given an id.
 java.util.Collection<Status> getStatusObjects()
          Returns all statuses
 java.util.Collection<IssueType> getSubTaskIssueTypeObjects()
          Retrieves all the sub-task issue types
 java.util.Collection<org.ofbiz.core.entity.GenericValue> getSubTaskIssueTypes()
          Retrieve subtask issue types.
 void onClearCache(ClearCacheEvent ignored)
           
 void refresh()
          Sets all cached copies of constant to null.
 void refreshIssueTypes()
          Reloads all IssueTypes from the DB.
 void refreshPriorities()
          Reloads all priorities from the DB.
 void refreshResolutions()
          Reloads all resolutions from the DB.
 void refreshStatuses()
          Reloads all statuses from DB.
 void removeIssueType(java.lang.String id)
          Removes an existing issueType.
 void start()
          This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.
 void storeIssueTypes(java.util.List<org.ofbiz.core.entity.GenericValue> issueTypes)
          Bulk operation to store a list of 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)
          Updates an existing issueType.
 void validateCreateIssueType(java.lang.String name, java.lang.String style, java.lang.String description, java.lang.String iconurl, ErrorCollection errors, java.lang.String nameFieldName)
          Validates creation of a new issuetype.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUBTASK_PREDICATE

public static final org.apache.commons.collections.Predicate SUBTASK_PREDICATE

REGULAR_ISSUE_TYPE_PREDICATE

public static final org.apache.commons.collections.Predicate REGULAR_ISSUE_TYPE_PREDICATE
Constructor Detail

DefaultConstantsManager

public DefaultConstantsManager(JiraAuthenticationContext authenticationContext,
                               TranslationManager translationManager,
                               OfBizDelegator ofBizDelegator,
                               com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail

start

public void start()
           throws java.lang.Exception
Description copied from interface: Startable
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.

Specified by:
start in interface Startable
Throws:
java.lang.Exception - Allows implementations to throw an Exception.

onClearCache

@EventListener
public void onClearCache(ClearCacheEvent ignored)

getStatuses

public java.util.Collection<org.ofbiz.core.entity.GenericValue> getStatuses()
Description copied from interface: ConstantsManager
Returns all statuses

Specified by:
getStatuses in interface ConstantsManager
Returns:
Returns a Collection of status GenericValues.

getStatusObjects

public java.util.Collection<Status> getStatusObjects()
Description copied from interface: ConstantsManager
Returns all statuses

Specified by:
getStatusObjects in interface ConstantsManager
Returns:
Returns a Collection of Status objects

getStatus

public org.ofbiz.core.entity.GenericValue getStatus(java.lang.String id)
Description copied from interface: ConstantsManager
Returns a Status given an id.

Specified by:
getStatus in interface ConstantsManager
Parameters:
id - The id of a status
Returns:
Returns a status GenericValue

getStatusObject

public Status getStatusObject(java.lang.String id)
Description copied from interface: ConstantsManager
Returns a Status given an id.

Specified by:
getStatusObject in interface ConstantsManager
Parameters:
id - The id of a status
Returns:
Returns a Status object.

refreshStatuses

public void refreshStatuses()
Description copied from interface: ConstantsManager
Reloads all statuses from DB.

Specified by:
refreshStatuses in interface ConstantsManager

getConstant

public org.ofbiz.core.entity.GenericValue getConstant(java.lang.String constantType,
                                                      java.lang.String id)
Description copied from interface: ConstantsManager
Generic method to retrieve a particular constant type.

Specified by:
getConstant in interface ConstantsManager
Parameters:
constantType - See ConstantsManager.PRIORITY_CONSTANT_TYPE, ConstantsManager.STATUS_CONSTANT_TYPE, ConstantsManager.RESOLUTION_CONSTANT_TYPE, ConstantsManager.ISSUE_TYPE_CONSTANT_TYPE
id - The id of the constant.
Returns:
A GenericValue containing the constant. Null if it doesn't exist.

getConstantObject

public IssueConstant getConstantObject(java.lang.String constantType,
                                       java.lang.String id)
Description copied from interface: ConstantsManager
Returns an IssueConstant object for the given type & id.

Specified by:
getConstantObject in interface ConstantsManager
Parameters:
constantType - See ConstantsManager.PRIORITY_CONSTANT_TYPE, ConstantsManager.STATUS_CONSTANT_TYPE, ConstantsManager.RESOLUTION_CONSTANT_TYPE, ConstantsManager.ISSUE_TYPE_CONSTANT_TYPE
id - The id of the constant.
Returns:
A IssueConstant object. Null if it doesn't exist.

getConstantObjects

public java.util.Collection getConstantObjects(java.lang.String constantType)
Description copied from interface: ConstantsManager
Returns all IssueConstant objects for the given type.

Specified by:
getConstantObjects in interface ConstantsManager
Parameters:
constantType - See ConstantsManager.PRIORITY_CONSTANT_TYPE, ConstantsManager.STATUS_CONSTANT_TYPE, ConstantsManager.RESOLUTION_CONSTANT_TYPE, ConstantsManager.ISSUE_TYPE_CONSTANT_TYPE
Returns:
A collection of IssueConstant object.

convertToConstantObjects

public java.util.List<IssueConstant> convertToConstantObjects(java.lang.String constantType,
                                                              java.util.Collection ids)
Description copied from interface: ConstantsManager
Converts the list of ids to the objects of appropriate types

Specified by:
convertToConstantObjects in interface ConstantsManager
Parameters:
constantType - the constant type. Case insenstive
ids - list of constant ids or GenericValues
Returns:
List of IssueConstant subclasses. Null if constantType is null or the ids are empty

constantExists

public boolean constantExists(java.lang.String constantType,
                              java.lang.String name)
Description copied from interface: ConstantsManager
Checks if a constant exists.

Specified by:
constantExists in interface ConstantsManager
Parameters:
constantType - See ConstantsManager.PRIORITY_CONSTANT_TYPE, ConstantsManager.STATUS_CONSTANT_TYPE, ConstantsManager.RESOLUTION_CONSTANT_TYPE, ConstantsManager.ISSUE_TYPE_CONSTANT_TYPE
name - The name of the constant.
Returns:
True if the constant exists. False otherwise

getIssueConstantByName

public IssueConstant getIssueConstantByName(java.lang.String constantType,
                                            java.lang.String name)

getConstantByName

public org.ofbiz.core.entity.GenericValue getConstantByName(java.lang.String constantType,
                                                            java.lang.String name)
Description copied from interface: ConstantsManager
Returns a constant by name.

Specified by:
getConstantByName in interface ConstantsManager
Parameters:
constantType - See ConstantsManager.PRIORITY_CONSTANT_TYPE, ConstantsManager.STATUS_CONSTANT_TYPE, ConstantsManager.RESOLUTION_CONSTANT_TYPE, ConstantsManager.ISSUE_TYPE_CONSTANT_TYPE
name - The Name of the constant.
Returns:
A constant GenericValue TODO: Create alternative to GenericValue

getConstantByNameIgnoreCase

public IssueConstant getConstantByNameIgnoreCase(java.lang.String constantType,
                                                 java.lang.String name)
Description copied from interface: ConstantsManager
Returns a constant by name ignoring the case of the name passed in.

Specified by:
getConstantByNameIgnoreCase in interface ConstantsManager
Parameters:
constantType - See ConstantsManager.PRIORITY_CONSTANT_TYPE, ConstantsManager.STATUS_CONSTANT_TYPE, ConstantsManager.RESOLUTION_CONSTANT_TYPE, ConstantsManager.ISSUE_TYPE_CONSTANT_TYPE
name - The Name of the constant, case-insensitive.
Returns:
An IssueConstant (or null if not found)

createIssueType

public org.ofbiz.core.entity.GenericValue 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. Use this method in conjunction with ConstantsManager.validateCreateIssueType(String, String, String, String, com.atlassian.jira.util.ErrorCollection, String)

Specified by:
createIssueType in interface ConstantsManager
Parameters:
name - Name of the new IssueType
sequence - Sequence number used for ordering the issuetypes in the UI.
style - Used to record the type of issue, such as SUBTASK. Null for regular issues.
description - A short description of the new issue type.
iconurl - A URL to an icon to be used for the new issueType.
Returns:
The newly created IssueType
Throws:
CreateException - If there is an error creating this Issue Type.

validateCreateIssueType

public void validateCreateIssueType(java.lang.String name,
                                    java.lang.String style,
                                    java.lang.String description,
                                    java.lang.String iconurl,
                                    ErrorCollection errors,
                                    java.lang.String nameFieldName)
Description copied from interface: ConstantsManager
Validates creation of a new issuetype. In particular, this function checks that a name has been submitted, no other issueTypes with the same name exist, and that the icon URL exists.

Specified by:
validateCreateIssueType in interface ConstantsManager
Parameters:
name - Name of the new IssueType
style - Used to record the type of issue, such as SUBTASK. Null for regular issues.
description - A short description of the new issue type.
iconurl - A URL to an icon to be used for the new issueType.
errors - A collection of errors used to pass back any problems.
nameFieldName - The field to which the errors should be added.

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 DataAccessException
Description copied from interface: ConstantsManager
Updates an existing issueType. This will cause a refresh of all issue types (i.e. reload from the DB).

Specified by:
updateIssueType in interface ConstantsManager
Parameters:
id - ID of the existing issuetype.
name - Name of the new IssueType
sequence - Sequence number used for ordering the issuetypes in the UI.
style - Used to record the type of issue, such as SUBTASK. Null for regular issues.
description - A short description of the new issue type.
iconurl - A URL to an icon to be used for the new issueType.
Throws:
DataAccessException - indicates an error in the Data Access Layer

removeIssueType

public void removeIssueType(java.lang.String id)
                     throws RemoveException
Description copied from interface: ConstantsManager
Removes an existing issueType. This will cause a refresh of all issue types (i.e. reload from the DB).

Specified by:
removeIssueType in interface ConstantsManager
Parameters:
id - ID of an existing issueType
Throws:
RemoveException - if the issueType with id doesn't exist, or an error occured removing the issue.

storeIssueTypes

public void storeIssueTypes(java.util.List<org.ofbiz.core.entity.GenericValue> issueTypes)
                     throws DataAccessException
Description copied from interface: ConstantsManager
Bulk operation to store a list of issueTypes.

Specified by:
storeIssueTypes in interface ConstantsManager
Parameters:
issueTypes - A list of IssueType GenericValues
Throws:
DataAccessException - indicates an error in the Data Access Layer

refresh

public void refresh()
Description copied from interface: ConstantsManager
Sets all cached copies of constant to null. This will cause them to be re-loaded from the DB the next time they are accessed.

Specified by:
refresh in interface ConstantsManager

expandIssueTypeIds

public java.util.List<java.lang.String> expandIssueTypeIds(java.util.Collection<java.lang.String> 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 Also see ConstantsManager.ALL_STANDARD_ISSUE_TYPES, ConstantsManager.ALL_SUB_TASK_ISSUE_TYPES and ConstantsManager.ALL_ISSUE_TYPES.

Specified by:
expandIssueTypeIds in interface ConstantsManager
Parameters:
issueTypeIds - A collection of the issuetype Ids to retrieve.
Returns:
A list of "actual" IssueType ID's expanded from the macro constants (or a new copy of the original list if it doesn't contain macros).

getAllIssueTypeIds

public java.util.List<java.lang.String> getAllIssueTypeIds()
Description copied from interface: ConstantsManager
Returns all issueType Ids.

Specified by:
getAllIssueTypeIds in interface ConstantsManager
Returns:
A list of all the IssueType Ids.

getIssueConstant

public IssueConstant getIssueConstant(org.ofbiz.core.entity.GenericValue issueConstantGV)
Description copied from interface: ConstantsManager
Converts a constant GenericValue to an IssueConstant object.

Specified by:
getIssueConstant in interface ConstantsManager
Parameters:
issueConstantGV - the constant GenericValue.
Returns:
An IssueConstant object.

getPriorities

public java.util.Collection<org.ofbiz.core.entity.GenericValue> getPriorities()
Description copied from interface: ConstantsManager
Retrieve all Priorities in JIRA.

Specified by:
getPriorities in interface ConstantsManager
Returns:
A list of Priority GenericValues.

getPriorityObjects

public java.util.Collection<Priority> getPriorityObjects()
Description copied from interface: ConstantsManager
Retrieve all Priorities in JIRA.

Specified by:
getPriorityObjects in interface ConstantsManager
Returns:
A list of Prioritys.

getPriorityObject

public Priority getPriorityObject(java.lang.String id)
Description copied from interface: ConstantsManager
Given a priority ID, this method retrieves that priority.

Specified by:
getPriorityObject in interface ConstantsManager
Parameters:
id - The id of the priority
Returns:
A Priority object.

getDefaultPriorityObject

public Priority getDefaultPriorityObject()
Description copied from interface: ConstantsManager
Returns the default priority configured in JIRA.

Specified by:
getDefaultPriorityObject in interface ConstantsManager
Returns:
The default priority.

getDefaultPriority

public org.ofbiz.core.entity.GenericValue getDefaultPriority()
Description copied from interface: ConstantsManager
Returns the default priority configured in JIRA.

Specified by:
getDefaultPriority in interface ConstantsManager
Returns:
The default priority GenericValue.

getPriority

public org.ofbiz.core.entity.GenericValue getPriority(java.lang.String id)
Description copied from interface: ConstantsManager
Given a priority ID, this method retrieves that priority.

Specified by:
getPriority in interface ConstantsManager
Parameters:
id - The id of the priority
Returns:
A Priority GenericValue

getPriorityName

public java.lang.String getPriorityName(java.lang.String id)
Description copied from interface: ConstantsManager
Returns the priority Name for a given priority ID.

Specified by:
getPriorityName in interface ConstantsManager
Parameters:
id - the id of a priority
Returns:
the name of the priority with the given id, or an i18n'd String indicating that no priority is set (e.g. "None") if the id is null.

getResolutionObject

public Resolution getResolutionObject(java.lang.String id)
Description copied from interface: ConstantsManager
Given a resolution ID, this method retrieves that resolution.

Specified by:
getResolutionObject in interface ConstantsManager
Parameters:
id - The id of the resolution
Returns:
A Resolution object.

refreshPriorities

public void refreshPriorities()
Description copied from interface: ConstantsManager
Reloads all priorities from the DB.

Specified by:
refreshPriorities in interface ConstantsManager

getResolutions

public java.util.Collection<org.ofbiz.core.entity.GenericValue> getResolutions()
Description copied from interface: ConstantsManager
Retrieve all Resolutions in JIRA.

Specified by:
getResolutions in interface ConstantsManager
Returns:
A List of Resolution GenericValues.

getResolutionObjects

public java.util.Collection<Resolution> getResolutionObjects()
Description copied from interface: ConstantsManager
Retrieve all Resolutions in JIRA.

Specified by:
getResolutionObjects in interface ConstantsManager
Returns:
A List of Resolution objects.

getResolution

public org.ofbiz.core.entity.GenericValue getResolution(java.lang.String id)
Description copied from interface: ConstantsManager
Given a resolution ID, this method retrieves that resolution.

Specified by:
getResolution in interface ConstantsManager
Parameters:
id - The id of the resolution
Returns:
A resolution GenericValue

refreshResolutions

public void refreshResolutions()
Description copied from interface: ConstantsManager
Reloads all resolutions from the DB.

Specified by:
refreshResolutions in interface ConstantsManager

getIssueTypes

public java.util.Collection<org.ofbiz.core.entity.GenericValue> getIssueTypes()
Description copied from interface: ConstantsManager
Retrieve regular (non-subtask) issue types.

Specified by:
getIssueTypes in interface ConstantsManager
Returns:
A collection of IssueType GenericValues

getAllIssueTypeObjects

public java.util.Collection<IssueType> getAllIssueTypeObjects()
Description copied from interface: ConstantsManager
Returns a list of IssueTypes.

Specified by:
getAllIssueTypeObjects in interface ConstantsManager
Returns:
A Collection of IssueType objects.

getRegularIssueTypeObjects

public java.util.Collection<IssueType> getRegularIssueTypeObjects()
Description copied from interface: ConstantsManager
Retrieve regular (non-subtask) issue types.

Specified by:
getRegularIssueTypeObjects in interface ConstantsManager
Returns:
A collection of IssueTypes

getSubTaskIssueTypeObjects

public java.util.Collection<IssueType> getSubTaskIssueTypeObjects()
Description copied from interface: ConstantsManager
Retrieves all the sub-task issue types

Specified by:
getSubTaskIssueTypeObjects in interface ConstantsManager
Returns:
A Collection of all sub-task IssueTypes.

getStatusByName

public Status getStatusByName(java.lang.String name)
Description copied from interface: ConstantsManager
Searches for a given status by name. This is not the most efficient implementation. If the name is not found, or the given name is null, then it returns null.

Specified by:
getStatusByName in interface ConstantsManager
Parameters:
name - The name of the status.
Returns:
A Status object with the given name, or null if none found.

getSubTaskIssueTypes

public java.util.Collection<org.ofbiz.core.entity.GenericValue> getSubTaskIssueTypes()
Retrieve subtask issue types.

Specified by:
getSubTaskIssueTypes in interface ConstantsManager
Returns:
A collection of IssueType GenericValues

getEditableSubTaskIssueTypes

public java.util.List<org.ofbiz.core.entity.GenericValue> getEditableSubTaskIssueTypes()
Description copied from interface: ConstantsManager
Retrieves an editable list of sub-task issues.

Specified by:
getEditableSubTaskIssueTypes in interface ConstantsManager
Returns:
A List of editable sub-task GenericValues

getAllIssueTypes

public java.util.List<org.ofbiz.core.entity.GenericValue> getAllIssueTypes()
Description copied from interface: ConstantsManager
Returns a list of IssueTypes.

Specified by:
getAllIssueTypes in interface ConstantsManager
Returns:
A list of GenericValue issueTypes.

getIssueType

public org.ofbiz.core.entity.GenericValue getIssueType(java.lang.String id)
Description copied from interface: ConstantsManager
Given an IssueType ID this method retrieves that IssueType.

Specified by:
getIssueType in interface ConstantsManager
Parameters:
id - The ID of the IssueType.
Returns:
An IssueType GenericValue

getIssueTypeObject

public IssueType getIssueTypeObject(java.lang.String id)
Description copied from interface: ConstantsManager
Given an IssueType ID this method retrieves that IssueType.

Specified by:
getIssueTypeObject in interface ConstantsManager
Parameters:
id - The ID of the IssueType.
Returns:
An IssueType object

refreshIssueTypes

public void refreshIssueTypes()
Description copied from interface: ConstantsManager
Reloads all IssueTypes from the DB.

Specified by:
refreshIssueTypes in interface ConstantsManager


Copyright © 2002-2010 Atlassian. All Rights Reserved.