|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.config.AbstractIssueConstantsManager<IssueType>
com.atlassian.jira.config.DefaultIssueTypeManager
public class DefaultIssueTypeManager
Field Summary |
---|
Fields inherited from class com.atlassian.jira.config.AbstractIssueConstantsManager |
---|
constantsManager, issueIndexManager, ofBizDelegator |
Constructor Summary | |
---|---|
DefaultIssueTypeManager(ConstantsManager constantsManager,
OfBizDelegator ofBizDelegator,
IssueIndexManager issueIndexManager,
TranslationManager translationManager,
JiraAuthenticationContext jiraAuthenticationContext,
ProjectManager projectManager,
WorkflowManager workflowManager,
FieldLayoutManager fieldLayoutManager,
IssueTypeScreenSchemeManager issueTypeScreenSchemeManager,
IssueTypeSchemeManager issueTypeSchemeManager,
WorkflowSchemeManager workflowSchemeManager,
FieldConfigSchemeManager fieldConfigSchemeManager,
CustomFieldManager customFieldManager)
|
Method Summary | |
---|---|
protected void |
clearCaches()
|
IssueType |
createIssueType(String name,
String description,
String iconUrl)
Create a new (non-subtask) issue type. |
IssueType |
createSubTaskIssueType(String name,
String description,
String iconUrl)
Create a new subtask issue type. |
void |
editIssueType(IssueType issueType,
String name,
String description,
String iconUrl)
Edits an existing issue type. |
protected List<IssueType> |
getAllValues()
|
Collection<IssueType> |
getAvailableIssueTypes(IssueType issueType)
Returns a collection of suitable alternative IssueType s to which issues with the supplied issue type can be moved to. |
protected String |
getIssueConstantField()
|
IssueType |
getIssueType(String id)
Returns the IssueType for the specified id. |
Collection<IssueType> |
getIssueTypes()
Returns all issue types regular and subtask issue types. |
void |
removeIssueType(String id,
String newIssueTypeId)
Removes an issue type. |
Methods inherited from class com.atlassian.jira.config.AbstractIssueConstantsManager |
---|
createConstant, getMatchingIssues, getMaxSequenceNo, getNextStringId, moveDown, moveUp, postProcess, removeConstant, removePropertySet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultIssueTypeManager(ConstantsManager constantsManager, OfBizDelegator ofBizDelegator, IssueIndexManager issueIndexManager, TranslationManager translationManager, JiraAuthenticationContext jiraAuthenticationContext, ProjectManager projectManager, WorkflowManager workflowManager, FieldLayoutManager fieldLayoutManager, IssueTypeScreenSchemeManager issueTypeScreenSchemeManager, IssueTypeSchemeManager issueTypeSchemeManager, WorkflowSchemeManager workflowSchemeManager, FieldConfigSchemeManager fieldConfigSchemeManager, CustomFieldManager customFieldManager)
Method Detail |
---|
public IssueType createIssueType(String name, String description, String iconUrl)
IssueTypeManager
createIssueType
in interface IssueTypeManager
name
- name of the issue type. Cannot be null or blank. Must be unique across issue types and subtask issue types.description
- description for the issue type.iconUrl
- icon URL for the issue type. Cannot be null or blank.
IssueType
public IssueType createSubTaskIssueType(String name, String description, String iconUrl)
IssueTypeManager
createSubTaskIssueType
in interface IssueTypeManager
name
- name of the issue type. Cannot be null or blank. Must be unique across issue types and subtask issue types.description
- description for the issue type.iconUrl
- icon URL for the issue type. Cannot be null or blank.
IssueType
protected void clearCaches()
clearCaches
in class AbstractIssueConstantsManager<IssueType>
public void editIssueType(IssueType issueType, String name, String description, String iconUrl)
IssueTypeManager
editIssueType
in interface IssueTypeManager
issueType
- existing issue typename
- new name. Cannot be null or blank. Must be unique across issue types and subtask issue types.description
- new description.iconUrl
- icon URL for the issue type. Cannot be null or blank.public Collection<IssueType> getIssueTypes()
IssueTypeManager
getIssueTypes
in interface IssueTypeManager
IssueType
spublic void removeIssueType(String id, String newIssueTypeId)
IssueTypeManager
removeIssueType
in interface IssueTypeManager
id
- id of the issue type to removenewIssueTypeId
- the id of the new issue type for all issues which are of the issue type which we are about to remove. Can be null.public IssueType getIssueType(String id)
IssueTypeManager
IssueType
for the specified id.
getIssueType
in interface IssueTypeManager
id
- issue type id.
IssueType
public Collection<IssueType> getAvailableIssueTypes(IssueType issueType)
IssueTypeManager
IssueType
s to which issues with the supplied issue type can be moved to.
The suitable alternative IssueType
s will have to use the same workflow, the same field configuration and the same screen scheme.
getAvailableIssueTypes
in interface IssueTypeManager
IssueType
sprotected String getIssueConstantField()
getIssueConstantField
in class AbstractIssueConstantsManager<IssueType>
protected List<IssueType> getAllValues()
getAllValues
in class AbstractIssueConstantsManager<IssueType>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |