|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.config.AbstractIssueConstantsManager<Priority> com.atlassian.jira.config.DefaultPriorityManager
public class DefaultPriorityManager
Field Summary |
---|
Fields inherited from class com.atlassian.jira.config.AbstractIssueConstantsManager |
---|
constantsManager, issueIndexManager, ofBizDelegator |
Constructor Summary | |
---|---|
DefaultPriorityManager(ConstantsManager constantsManager,
OfBizDelegator ofBizDelegator,
IssueIndexManager issueIndexManager,
ApplicationProperties applicationProperties,
IssueConstantFactory issueConstantFactory)
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.atlassian.jira.config.AbstractIssueConstantsManager |
---|
createConstant, getMatchingIssues, getMaxSequenceNo, getNextStringId, moveDown, moveUp, removeConstant, removePropertySet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultPriorityManager(ConstantsManager constantsManager, OfBizDelegator ofBizDelegator, IssueIndexManager issueIndexManager, ApplicationProperties applicationProperties, IssueConstantFactory issueConstantFactory)
Method Detail |
---|
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 id
Priority
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 List<Priority> getValues()
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>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |