java.lang.Object | |
↳ | com.atlassian.jira.config.DefaultConstantsManager |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Checks if a constant exists.
| |||||||||||
Converts the list of ids to the objects of appropriate types
| |||||||||||
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
ALL_STANDARD_ISSUE_TYPES , ALL_SUB_TASK_ISSUE_TYPES and
ALL_ISSUE_TYPES . | |||||||||||
Returns all issueType Ids.
| |||||||||||
Returns a list of IssueTypes.
| |||||||||||
Returns a constant by name ignoring the case of the name passed in.
| |||||||||||
Returns an
IssueConstant object for the given type & id. | |||||||||||
Returns all
IssueConstant objects for the given type. | |||||||||||
Converts the list of ids to the objects of appropriate types
| |||||||||||
Returns the default priority configured in JIRA.
| |||||||||||
Returns the default priority configured in JIRA.
| |||||||||||
Retrieves an mutable list of sub-task issues.
| |||||||||||
Converts a constant GenericValue to an
IssueConstant object. | |||||||||||
Returns a constant by name.
| |||||||||||
Given an IssueType ID this method retrieves that IssueType.
| |||||||||||
Given an IssueType ID this method retrieves that IssueType.
| |||||||||||
Retrieve all Priorities in JIRA.
| |||||||||||
Returns the priority Name for a given priority ID.
| |||||||||||
Given a priority ID, this method retrieves that priority.
| |||||||||||
Retrieve all Priorities in JIRA.
| |||||||||||
Retrieve regular (non-subtask) issue types.
| |||||||||||
Given a resolution ID, this method retrieves that resolution.
| |||||||||||
Given a resolution ID, this method retrieves that resolution.
| |||||||||||
Retrieve all Resolutions in JIRA.
| |||||||||||
Retrieve all Resolutions in JIRA.
| |||||||||||
Returns a Status given an id.
| |||||||||||
Searches for a given status by name.
| |||||||||||
Searches for a given status by name ignoring case.
| |||||||||||
Searches for a given status by its translated name.
| |||||||||||
Returns a Status given an id.
| |||||||||||
Returns all statuses
| |||||||||||
Returns all statuses
| |||||||||||
Retrieves all the sub-task issue types
| |||||||||||
Creates a new IssueType.
| |||||||||||
Creates a new IssueType.
| |||||||||||
Clear the cache for this Issue Constant.
| |||||||||||
Resequences the supplied issuetypes into sequential order.
| |||||||||||
Resequences the supplied priorities into sequential order.
| |||||||||||
Resequences the supplied resolutions into sequential order.
| |||||||||||
Resequences the supplied statuses into sequential order.
| |||||||||||
Sets all cached copies of constant to null.
| |||||||||||
Reloads all IssueTypes from the DB.
| |||||||||||
Reloads all priorities from the DB.
| |||||||||||
Reloads all resolutions from the DB.
| |||||||||||
Reloads all statuses from DB.
| |||||||||||
Removes an existing issueType.
| |||||||||||
Bulk operation to store a list of issueTypes.
| |||||||||||
Updates an existing issueType.
| |||||||||||
Updates an existing issueType.
| |||||||||||
Validates creation of a new issuetype.
| |||||||||||
Validates creation of a new issuetype.
| |||||||||||
Validates the name of issue type.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Checks if a constant exists.
constantType | See PRIORITY_CONSTANT_TYPE , STATUS_CONSTANT_TYPE , RESOLUTION_CONSTANT_TYPE , ISSUE_TYPE_CONSTANT_TYPE |
---|---|
name | The name of the constant. |
Converts the list of ids to the objects of appropriate types
constantType | the constant type. Case insenstive |
---|---|
stuff | list of constant ids or GenericValues |
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 ALL_STANDARD_ISSUE_TYPES
, ALL_SUB_TASK_ISSUE_TYPES
and
ALL_ISSUE_TYPES
.
issueTypeIds | A collection of the issuetype Ids to retrieve. |
---|
Returns all issueType Ids.
Returns a list of IssueTypes.
IssueType
objects.
Returns a constant by name ignoring the case of the name passed in.
constantType | See PRIORITY_CONSTANT_TYPE , STATUS_CONSTANT_TYPE , RESOLUTION_CONSTANT_TYPE , ISSUE_TYPE_CONSTANT_TYPE |
---|---|
name | The Name of the constant, case-insensitive. |
Returns an IssueConstant
object for the given type & id.
constantType | See PRIORITY_CONSTANT_TYPE , STATUS_CONSTANT_TYPE , RESOLUTION_CONSTANT_TYPE , ISSUE_TYPE_CONSTANT_TYPE |
---|---|
id | The id of the constant. |
IssueConstant
object. Null if it doesn't exist.
Returns all IssueConstant
objects for the given type.
constantType | See PRIORITY_CONSTANT_TYPE , STATUS_CONSTANT_TYPE , RESOLUTION_CONSTANT_TYPE , ISSUE_TYPE_CONSTANT_TYPE |
---|
IssueConstant
object.
Converts the list of ids to the objects of appropriate types
constantType | Type of constant |
---|---|
ids | list of constant ids |
Returns the default priority configured in JIRA.
Returns the default priority configured in JIRA.
Retrieves an mutable list of sub-task issues. The list is mutable, that is its elements can be reordered added to or removed. The elements of the list, that is the issue types themselves, are not mutable.
Converts a constant GenericValue to an IssueConstant
object.
issueConstantGV | the constant GenericValue. |
---|
IssueConstant
object.Returns a constant by name.
constantType | See PRIORITY_CONSTANT_TYPE , STATUS_CONSTANT_TYPE , RESOLUTION_CONSTANT_TYPE , ISSUE_TYPE_CONSTANT_TYPE |
---|---|
name | The Name of the constant. |
Given an IssueType ID this method retrieves that IssueType.
id | The ID of the IssueType. |
---|
Given an IssueType ID this method retrieves that IssueType.
id | The ID of the IssueType. |
---|
IssueType
objectRetrieve all Priorities in JIRA.
Priority
s.
Returns the priority Name for a given priority ID.
id | the id of a priority |
---|
Given a priority ID, this method retrieves that priority.
id | The id of the priority |
---|
Priority
object.
Retrieve all Priorities in JIRA.
Priority
s.Retrieve regular (non-subtask) issue types.
IssueType
s
Given a resolution ID, this method retrieves that resolution.
id | The id of the resolution |
---|
Given a resolution ID, this method retrieves that resolution.
id | The id of the resolution |
---|
Resolution
object.Retrieve all Resolutions in JIRA.
Resolution
objects.Retrieve all Resolutions in JIRA.
Resolution
s.
Returns a Status given an id.
id | The id of a status |
---|
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.
name | The name of the status. |
---|
Status
object with the given name, or null
if none found.
Searches for a given status by name ignoring case. This is not the most efficient implementation. If the name is not found, or the given name is null, then it returns null.
name | The name of the status. |
---|
Status
object with the given name, or null
if none found.
Searches for a given status by its translated name. If no matching translated name is found the true (untranslated) name will be tried. If the name is not found, or the given name is null, then it returns null.
name | The name of the status. |
---|
Status
object with the given name, or null
if none found.
Returns all statuses
Status
objectsReturns all statuses
Status
s.
Retrieves all the sub-task issue types
IssueType
s.
Creates a new IssueType.
Note this method does not validate the input - i.e. It does not check for duplicate names etc. Use
this method in conjunction with validateCreateIssueType(String, String, String, String, com.atlassian.jira.util.ErrorCollection, String)
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. |
CreateException |
---|
Creates a new IssueType.
Note this method does not validate the input - i.e. It does not check for duplicate names etc. Use
this method in conjunction with validateCreateIssueType(String, String, String, String, com.atlassian.jira.util.ErrorCollection, String)
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. |
avatarId | Avatar id, |
CreateException |
---|
Clear the cache for this Issue Constant. Implementations may clear additional IssueConstants at their discretion.
Resequences the supplied issuetypes into sequential order.
Resequences the supplied priorities into sequential order.
Resequences the supplied resolutions into sequential order.
Resequences the supplied statuses into sequential order.
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.
Reloads all IssueTypes from the DB.
Reloads all priorities from the DB.
Reloads all resolutions from the DB.
Reloads all statuses from DB.
Removes an existing issueType. This will cause a invalidate of all issue types (i.e. reload from the DB).
THIS METHOD IS BROKEN AND SHOULD NEVER BE USED SINCE v5.0.
id | ID of an existing issueType |
---|
RemoveException |
---|
Bulk operation to store a list of issueTypes.
issueTypes | A list of IssueType GenericValues |
---|
DataAccessException |
---|
Updates an existing issueType. This will cause a invalidate of all issue types (i.e. reload from the DB).
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. |
DataAccessException |
---|
Updates an existing issueType. This will cause a invalidate of all issue types (i.e. reload from the DB).
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. |
avatarId | avatarid of new issueType. |
DataAccessException |
---|
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.
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. |
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 correct avatarId is passed.
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. |
avatarId | An avatar id. |
errors | A collection of errors used to pass back any problems. |
nameFieldName | The field to which the errors should be added. |
Validates the name of issue type. If the validation passes returns Option.none, else returns na Option with a pair of error message and reason.