public class

DefaultPriorityManager

extends AbstractIssueConstantsManager<T extends IssueConstant>
implements PriorityManager Startable
java.lang.Object
   ↳ com.atlassian.jira.config.AbstractIssueConstantsManager<T extends com.atlassian.jira.issue.IssueConstant>
     ↳ com.atlassian.jira.config.DefaultPriorityManager

Summary

[Expand]
Inherited Fields
From class com.atlassian.jira.config.AbstractIssueConstantsManager
Public Constructors
DefaultPriorityManager(ConstantsManager constantsManager, OfBizDelegator ofBizDelegator, IssueIndexManager issueIndexManager, ApplicationProperties applicationProperties, IssueConstantFactory issueConstantFactory, ClusterLockService clusterLockService)
Public Methods
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.
Priority getDefaultPriority()
Returns the default priority.
List<Priority> getPriorities()
Returns all priorities.
Priority getPriority(String id)
Returns a priority.
void movePriorityDown(String id)
Move the resolution down in the order.
void movePriorityUp(String id)
Move the resolution up in the order.
void removePriority(String id, String newPriorityId)
Removes a priority.
void setDefaultPriority(String id)
Sets the default priority.
void start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.
Protected Methods
void clearCaches()
List<Priority> getAllValues()
String getIssueConstantField()
List<Priority> getValues()
void postProcess(Priority priority)
[Expand]
Inherited Methods
From class com.atlassian.jira.config.AbstractIssueConstantsManager
From class java.lang.Object
From interface com.atlassian.jira.config.PriorityManager
From interface com.atlassian.jira.extension.Startable

Public Constructors

public DefaultPriorityManager (ConstantsManager constantsManager, OfBizDelegator ofBizDelegator, IssueIndexManager issueIndexManager, ApplicationProperties applicationProperties, IssueConstantFactory issueConstantFactory, ClusterLockService clusterLockService)

Public Methods

public Priority createPriority (String name, String description, String iconUrl, String color)

Create a new priority.

Parameters
name name of the priority. Cannot be blank or null. Must be unique.
description description of the priority
iconUrl icon url of the priority
color color for the priority.
Returns

public void editPriority (Priority priority, String name, String description, String iconUrl, String color)

Edit an existing priority.

Parameters
priority existing priority.
name name of the priority
description description of the priority
iconUrl icon Url of the priority
color color of the priority

public Priority getDefaultPriority ()

Returns the default priority.

Returns
  • the default Priority or if none configured null.

public List<Priority> getPriorities ()

Returns all priorities. Sorted by sequence. The order can be modified by calling movePriorityDown(String) or movePriorityUp(String)

Returns

public Priority getPriority (String id)

Returns a priority.

Parameters
id priority id
Returns
  • a Priority or null if no priority with the specified id could be found.

public void movePriorityDown (String id)

Move the resolution down in the order.

Parameters
id id of the resolution.

public void movePriorityUp (String id)

Move the resolution up in the order.

Parameters
id id of the resolution.

public void removePriority (String id, String newPriorityId)

Removes a priority. When removing the priority it will change the priority of all issues which have the priority that has been deleted to the priority with id specified as the second argument.

Parameters
id priority id to remove.
newPriorityId priority to use for all issues which have the priority which has been removed. Cannot be null.

public void setDefaultPriority (String id)

Sets the default priority.

Parameters
id priority id

public void start ()

This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.

Protected Methods

protected void clearCaches ()

protected List<Priority> getAllValues ()

protected String getIssueConstantField ()

protected List<Priority> getValues ()

protected void postProcess (Priority priority)