java.lang.Object | |
↳ | com.atlassian.jira.mock.MockConstantsManager |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.jira.config.ConstantsManager
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Checks if a constant exists.
| |||||||||||
Converts the list of ids to the objects of appropriate types
| |||||||||||
Note this metod does not validate the input - i.e.
| |||||||||||
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 list of IssueTypes.
| |||||||||||
Returns a constant by name.
| |||||||||||
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. | |||||||||||
Returns the default priority configured in JIRA.
| |||||||||||
Returns the default priority configured in JIRA.
| |||||||||||
Retrieves an editable 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 regular (non-subtask) issue types.
| |||||||||||
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
| |||||||||||
Retrieves all the sub-task issue types.
| |||||||||||
Creates a new IssueType.
| |||||||||||
Creates a new IssueType.
| |||||||||||
Clear the cache for this Issue Constant.
| |||||||||||
Sets all cached copies of constant to null.
| |||||||||||
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.
| |||||||||||
Updates an existing issueType.
| |||||||||||
Updates an existing issueType.
| |||||||||||
Validates creation of a new issuetype.
| |||||||||||
Validates creation of a new issuetype.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.config.ConstantsManager
|
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 |
---|---|
ids | list of constant ids or GenericValues |
Note this metod 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 |
---|
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 list of IssueTypes.
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. |
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.
Returns the default priority configured in JIRA.
Returns the default priority configured in JIRA.
Retrieves an editable list of sub-task issues.
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
object
Retrieve regular (non-subtask) issue types.
Retrieve all Priorities in JIRA.
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.
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
objects
Returns all statuses
Retrieves all the sub-task issue types
IssueType
s.
Retrieves all the sub-task issue types. These will be non-modifiable.
Use getEditableSubTaskIssueTypes()
instead if you require an editable list.
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 |
---|
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. |
Clear the cache for this Issue Constant. Implementations may clear additional IssueConstants at their discretion.
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.
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).
id | ID of an existing issueType |
---|
RemoveException |
---|
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. |
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. |
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. |