public class DefaultPriorityManager extends AbstractIssueConstantsManager<Priority> implements PriorityManager, Startable
constantsManager, issueIndexingService, ofBizDelegator, queryDslAccessor
Constructor and Description |
---|
DefaultPriorityManager(ConstantsManager constantsManager,
OfBizDelegator ofBizDelegator,
IssueIndexingService issueIndexingService,
ApplicationProperties applicationProperties,
IssueConstantFactory issueConstantFactory,
com.atlassian.beehive.ClusterLockService clusterLockService,
IssueManager issueManager,
QueryDslAccessor queryDslAccessor,
PrioritySchemeManager prioritySchemeManager,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
protected void |
clearCaches() |
Priority |
createPriority(String name,
String description,
String iconUrl,
String color)
Create a new priority.
|
void |
editPriority(Priority priority,
String name,
String description,
String iconUrl,
String color)
Edit an existing priority.
|
protected List<Priority> |
getAllValues() |
Priority |
getDefaultPriority()
Returns the default priority.
|
protected String |
getIssueConstantField() |
List<Priority> |
getPriorities()
Returns all priorities.
|
Priority |
getPriority(String id)
Returns a priority.
|
protected List<Priority> |
getValues() |
void |
movePriorityDown(String id)
Move the resolution down in the order.
|
void |
movePriorityUp(String id)
Move the resolution up in the order.
|
protected void |
postProcess(Priority priority) |
void |
removePriority(String id,
String newPriorityId)
Removes a priority.
|
void |
setDefaultPriority(String id)
Sets the default priority.
|
void |
start()
This method will be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
createConstant, getMaxSequenceNo, getNextStringId, moveDown, moveUp, removeConstant, removePropertySet
public DefaultPriorityManager(ConstantsManager constantsManager, OfBizDelegator ofBizDelegator, IssueIndexingService issueIndexingService, ApplicationProperties applicationProperties, IssueConstantFactory issueConstantFactory, com.atlassian.beehive.ClusterLockService clusterLockService, IssueManager issueManager, QueryDslAccessor queryDslAccessor, PrioritySchemeManager prioritySchemeManager, com.atlassian.event.api.EventPublisher eventPublisher)
public void start()
Startable
public Priority createPriority(String name, String description, String iconUrl, String color)
PriorityManager
createPriority
in interface PriorityManager
name
- name of the priority. Cannot be blank or null. Must be unique.description
- description of the priorityiconUrl
- icon url of the prioritycolor
- color for the priority.Priority
public void editPriority(Priority priority, String name, String description, String iconUrl, String color)
PriorityManager
editPriority
in interface PriorityManager
priority
- existing priority.name
- name of the prioritydescription
- description of the priorityiconUrl
- icon Url of the prioritycolor
- color of the prioritypublic List<Priority> getPriorities()
PriorityManager
PriorityManager.movePriorityDown(String)
or PriorityManager.movePriorityUp(String)
getPriorities
in interface PriorityManager
Priority
public void removePriority(String id, String newPriorityId)
PriorityManager
removePriority
in interface PriorityManager
id
- priority id to remove.newPriorityId
- priority to use for all issues which have the priority which has been removed. Cannot be null.public Priority getPriority(String id)
PriorityManager
getPriority
in interface PriorityManager
id
- priority idPriority
or null if no priority with the specified id could be found.public void setDefaultPriority(String id)
PriorityManager
setDefaultPriority
in interface PriorityManager
id
- priority idpublic Priority getDefaultPriority()
PriorityManager
getDefaultPriority
in interface PriorityManager
Priority
or if none configured null.public void movePriorityUp(String id)
PriorityManager
movePriorityUp
in interface PriorityManager
id
- id of the resolution.public void movePriorityDown(String id)
PriorityManager
movePriorityDown
in interface PriorityManager
id
- id of the resolution.protected void postProcess(Priority priority)
postProcess
in class AbstractIssueConstantsManager<Priority>
protected void clearCaches()
clearCaches
in class AbstractIssueConstantsManager<Priority>
protected String getIssueConstantField()
getIssueConstantField
in class AbstractIssueConstantsManager<Priority>
protected List<Priority> getAllValues()
getAllValues
in class AbstractIssueConstantsManager<Priority>
Copyright © 2002-2022 Atlassian. All Rights Reserved.