com.atlassian.jira.config
Class DefaultConstantsManager

java.lang.Object
  extended bycom.atlassian.jira.config.DefaultConstantsManager
All Implemented Interfaces:
ConstantsManager

public class DefaultConstantsManager
extends java.lang.Object
implements ConstantsManager


Field Summary
(package private)  java.util.List issueTypes
           
(package private)  java.util.Map issueTypesMap
           
(package private)  java.util.List priorities
           
(package private)  java.util.List regularIssueTypes
           
(package private)  java.util.List resolutions
           
(package private)  java.util.List statuses
           
(package private)  java.util.List subTaskIssueTypes
           
 
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()
           
 
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
 

Field Detail

priorities

java.util.List priorities

resolutions

java.util.List resolutions

issueTypes

java.util.List issueTypes

regularIssueTypes

java.util.List regularIssueTypes

subTaskIssueTypes

java.util.List subTaskIssueTypes

issueTypesMap

java.util.Map issueTypesMap

statuses

java.util.List statuses
Constructor Detail

DefaultConstantsManager

public DefaultConstantsManager()
Method Detail

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
Parameters:
name -
sequence -
style -
description -
iconurl -
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
Parameters:
issueTypeIds -
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-2005 Atlassian. All Rights Reserved.