public class DefaultResolutionManager extends AbstractIssueConstantsManager<Resolution> implements ResolutionManager, Startable
constantsManager, issueIndexingService, issueManager, 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,
ResolutionAuditHandler resolutionAuditHandler) |
| 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.
|
java.util.stream.Stream<Resolution> |
findResolutions(String substring) |
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 removedResolutionId,
String replacementResolutionId)
Removes a resolution with the specified id.
|
void |
setDefaultResolution(String newDefaultResolutionId)
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, ResolutionAuditHandler resolutionAuditHandler)
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 removedResolutionId, String replacementResolutionId)
ResolutionManagerremoveResolution in interface ResolutionManagerremovedResolutionId - resolution to remove.replacementResolutionId - 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 newDefaultResolutionId)
ResolutionManagerYou can pass null to clear the default.
setDefaultResolution in interface ResolutionManagernewDefaultResolutionId - resolution id or null.public Resolution getDefaultResolution()
ResolutionManagerWill return null if no default is set.
getDefaultResolution in interface ResolutionManagerpublic java.util.stream.Stream<Resolution> findResolutions(@Nullable String substring)
findResolutions 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-2023 Atlassian. All Rights Reserved.