public class DefaultIssueTypeManager extends AbstractIssueConstantsManager<IssueType> implements IssueTypeManager, Startable
constantsManager, issueIndexingService, ofBizDelegator, queryDslAccessor| Constructor and Description |
|---|
DefaultIssueTypeManager(ConstantsManager constantsManager,
OfBizDelegator ofBizDelegator,
IssueIndexingService issueIndexingService,
ProjectManager projectManager,
WorkflowManager workflowManager,
FieldLayoutManager fieldLayoutManager,
IssueTypeScreenSchemeManager issueTypeScreenSchemeManager,
IssueTypeSchemeManager issueTypeSchemeManager,
WorkflowSchemeManager workflowSchemeManager,
FieldConfigSchemeManager fieldConfigSchemeManager,
CustomFieldManager customFieldManager,
com.atlassian.event.api.EventPublisher eventPublisher,
IssueConstantFactory factory,
com.atlassian.beehive.ClusterLockService clusterLockService,
IssueManager issueManager,
QueryDslAccessor queryDslAccessor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearCaches() |
IssueType |
createIssueType(String name,
String description,
Long avatarId)
Create a new (non-subtask) issue type.
|
IssueType |
createIssueType(String name,
String description,
String iconUrl)
Create a new (non-subtask) issue type.
|
IssueType |
createSubTaskIssueType(String name,
String description,
Long avatarId)
Create a new 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
IssueTypes 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.
|
boolean |
hasAssociatedIssues(IssueType issueType)
Checks if there are any issues associated with this issue type.
|
void |
removeIssueType(String id,
String newIssueTypeId)
Removes an issue type.
|
void |
start()
This method will be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
void |
updateIssueType(IssueType issueType,
String name,
String description,
Long avatarId)
Edits an existing issue type.
|
createConstant, getMaxSequenceNo, getNextStringId, moveDown, moveUp, postProcess, removeConstant, removePropertySetpublic DefaultIssueTypeManager(ConstantsManager constantsManager, OfBizDelegator ofBizDelegator, IssueIndexingService issueIndexingService, ProjectManager projectManager, WorkflowManager workflowManager, FieldLayoutManager fieldLayoutManager, IssueTypeScreenSchemeManager issueTypeScreenSchemeManager, IssueTypeSchemeManager issueTypeSchemeManager, WorkflowSchemeManager workflowSchemeManager, FieldConfigSchemeManager fieldConfigSchemeManager, CustomFieldManager customFieldManager, com.atlassian.event.api.EventPublisher eventPublisher, IssueConstantFactory factory, com.atlassian.beehive.ClusterLockService clusterLockService, IssueManager issueManager, QueryDslAccessor queryDslAccessor)
public void start()
Startablepublic IssueType createIssueType(String name, String description, String iconUrl)
IssueTypeManagercreateIssueType in interface IssueTypeManagername - 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.IssueTypepublic IssueType createIssueType(String name, String description, @Nullable Long avatarId)
IssueTypeManager
After successful creation of the new issue type, this method publishes an instance of IssueTypeCreatedEvent.
createIssueType in interface IssueTypeManagername - 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.avatarId - avatarId for the issue type. Cannot by null.IssueTypepublic IssueType createSubTaskIssueType(String name, String description, String iconUrl)
IssueTypeManagercreateSubTaskIssueType in interface IssueTypeManagername - 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.IssueTypepublic IssueType createSubTaskIssueType(String name, String description, @Nullable Long avatarId)
IssueTypeManagercreateSubTaskIssueType in interface IssueTypeManagername - 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.avatarId - avatarId for the issue type. Cannot by null.IssueTypeprotected void clearCaches()
clearCaches in class AbstractIssueConstantsManager<IssueType>public void editIssueType(IssueType issueType, String name, String description, String iconUrl)
IssueTypeManagereditIssueType in interface IssueTypeManagerissueType - 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 void updateIssueType(IssueType issueType, String name, String description, Long avatarId)
IssueTypeManagerIssueTypeUpdatedEvent.updateIssueType in interface IssueTypeManagerissueType - existing issue typename - new name. Cannot be null or blank. Must be unique across issue types and subtask issue types.description - new description.avatarId - avatar id the issue type. Cannot be null or blank.public Collection<IssueType> getIssueTypes()
IssueTypeManagergetIssueTypes in interface IssueTypeManagerIssueTypespublic void removeIssueType(String id, String newIssueTypeId)
IssueTypeManagerIssueTypeDeletedEvent.removeIssueType in interface IssueTypeManagerid - 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)
IssueTypeManagerIssueType for the specified id.getIssueType in interface IssueTypeManagerid - issue type id.IssueTypepublic Collection<IssueType> getAvailableIssueTypes(IssueType issueType)
IssueTypeManagerIssueTypes to which issues with the supplied issue type can be moved to.
The suitable alternative IssueTypes will have to use the same workflow, the same field configuration and the same screen scheme.getAvailableIssueTypes in interface IssueTypeManagerIssueTypespublic boolean hasAssociatedIssues(IssueType issueType)
IssueTypeManagerhasAssociatedIssues in interface IssueTypeManagerissueType - for which issues are searched.protected String getIssueConstantField()
getIssueConstantField in class AbstractIssueConstantsManager<IssueType>protected List<IssueType> getAllValues()
getAllValues in class AbstractIssueConstantsManager<IssueType>Copyright © 2002-2017 Atlassian. All Rights Reserved.