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, removePropertySetpublic 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()
Startablepublic Priority createPriority(String name, String description, String iconUrl, String color)
PriorityManagercreatePriority in interface PriorityManagername - 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.Prioritypublic void editPriority(Priority priority, String name, String description, String iconUrl, String color)
PriorityManagereditPriority in interface PriorityManagerpriority - existing priority.name - name of the prioritydescription - description of the priorityiconUrl - icon Url of the prioritycolor - color of the prioritypublic List<Priority> getPriorities()
PriorityManagerPriorityManager.movePriorityDown(String) or PriorityManager.movePriorityUp(String)getPriorities in interface PriorityManagerPrioritypublic void removePriority(String id, String newPriorityId)
PriorityManagerremovePriority in interface PriorityManagerid - 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)
PriorityManagergetPriority in interface PriorityManagerid - priority idPriority or null if no priority with the specified id could be found.public void setDefaultPriority(String id)
PriorityManagersetDefaultPriority in interface PriorityManagerid - priority idpublic Priority getDefaultPriority()
PriorityManagergetDefaultPriority in interface PriorityManagerPriority or if none configured null.public void movePriorityUp(String id)
PriorityManagermovePriorityUp in interface PriorityManagerid - id of the resolution.public void movePriorityDown(String id)
PriorityManagermovePriorityDown in interface PriorityManagerid - 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.