public class DefaultResolutionManager extends AbstractIssueConstantsManager<Resolution> implements ResolutionManager, Startable
constantsManager, issueIndexingService, ofBizDelegator, queryDslAccessor| Constructor and Description |
|---|
DefaultResolutionManager(ConstantsManager constantsManager,
IssueIndexingService issueIndexingService,
OfBizDelegator ofBizDelegator,
ApplicationProperties applicationProperties,
IssueConstantFactory factory,
com.atlassian.beehive.ClusterLockService clusterLockService,
IssueManager issueManager,
QueryDslAccessor queryDslAccessor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearCaches() |
Resolution |
createResolution(String name,
String description)
Adds a new resolution.
|
void |
editResolution(Resolution resolution,
String name,
String description)
Edits an existing resolution.
|
protected List<Resolution> |
getAllValues() |
Resolution |
getDefaultResolution()
Returns the default resolution.
|
protected String |
getIssueConstantField() |
Resolution |
getResolution(String id)
Returns a resolution with the specified id.
|
Resolution |
getResolutionByName(String name)
Returns the resolution with the specified name.
|
List<Resolution> |
getResolutions()
Return all resolutions.
|
void |
moveResolutionDown(String id)
Move the resolution down in the order.
|
void |
moveResolutionUp(String id)
Move the resolution up in the order.
|
protected void |
postProcess(Resolution resolution) |
void |
removeResolution(String resolutionId,
String newResolutionId)
Removes a resolution with the specified id.
|
void |
setDefaultResolution(String id)
Sets the default resolution.
|
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 DefaultResolutionManager(ConstantsManager constantsManager, IssueIndexingService issueIndexingService, OfBizDelegator ofBizDelegator, ApplicationProperties applicationProperties, IssueConstantFactory factory, com.atlassian.beehive.ClusterLockService clusterLockService, IssueManager issueManager, QueryDslAccessor queryDslAccessor)
public void start()
Startablepublic Resolution createResolution(String name, String description)
ResolutionManagercreateResolution in interface ResolutionManagername - resolution name. Cannot be null or blank.description - the resolution description. Can be null or blank.Resolution.public void editResolution(Resolution resolution, String name, String description)
ResolutionManagereditResolution in interface ResolutionManagerresolution - resolution to edit.name - the new name.description - the new descriptionpublic List<Resolution> getResolutions()
ResolutionManagerResolutionManager.moveResolutionDown(String) or ResolutionManager.moveResolutionUp(String).getResolutions in interface ResolutionManagerResolutionspublic void removeResolution(String resolutionId, String newResolutionId)
ResolutionManagerremoveResolution in interface ResolutionManagerresolutionId - resolution to remove.newResolutionId - new resolution for issues which have the resolution which has been removed. Cannot be null.public Resolution getResolutionByName(String name)
ResolutionManagergetResolutionByName in interface ResolutionManagername - the name of the resolution.Resolution with the specified name.public Resolution getResolution(String id)
ResolutionManagergetResolution in interface ResolutionManagerid - resolution id.Resolution with the specified id or null if no resolution whith this id exists.public void moveResolutionUp(String id)
ResolutionManagermoveResolutionUp in interface ResolutionManagerid - id of the resolution.public void moveResolutionDown(String id)
ResolutionManagermoveResolutionDown in interface ResolutionManagerid - id of the resolution.public void setDefaultResolution(String id)
ResolutionManagerYou can pass null to clear the default.
setDefaultResolution in interface ResolutionManagerid - resolution id or null.public Resolution getDefaultResolution()
ResolutionManagerWill return null if no default is set.
getDefaultResolution in interface ResolutionManagerprotected void postProcess(Resolution resolution)
postProcess in class AbstractIssueConstantsManager<Resolution>protected void clearCaches()
clearCaches in class AbstractIssueConstantsManager<Resolution>protected String getIssueConstantField()
getIssueConstantField in class AbstractIssueConstantsManager<Resolution>protected List<Resolution> getAllValues()
getAllValues in class AbstractIssueConstantsManager<Resolution>Copyright © 2002-2018 Atlassian. All Rights Reserved.