Package com.atlassian.jira.config
Class DefaultResolutionManager
java.lang.Object
com.atlassian.jira.config.AbstractIssueConstantsManager<Resolution>
com.atlassian.jira.config.DefaultResolutionManager
- All Implemented Interfaces:
ResolutionManager,Startable
public class DefaultResolutionManager
extends AbstractIssueConstantsManager<Resolution>
implements ResolutionManager, Startable
- Since:
- v5.0
-
Field Summary
Fields inherited from class com.atlassian.jira.config.AbstractIssueConstantsManager
constantsManager, issueIndexingService, issueManager, ofBizDelegator, queryDslAccessor -
Constructor Summary
ConstructorsConstructorDescriptionDefaultResolutionManager(ConstantsManager constantsManager, IssueIndexingService issueIndexingService, OfBizDelegator ofBizDelegator, ApplicationProperties applicationProperties, IssueConstantFactory factory, com.atlassian.beehive.ClusterLockService clusterLockService, IssueManager issueManager, QueryDslAccessor queryDslAccessor, ResolutionAuditHandler resolutionAuditHandler) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateResolution(String name, String description) Adds a new resolution.voideditResolution(Resolution resolution, String name, String description) Edits an existing resolution.findResolutions(String substring) protected List<Resolution> Returns the default resolution.protected StringgetResolution(String id) Returns a resolution with the specified id.getResolutionByName(String name) Returns the resolution with the specified name.Return all resolutions.voidMove the resolution down in the order.voidMove the resolution up in the order.protected voidpostProcess(Resolution resolution) voidremoveResolution(String removedResolutionId, String replacementResolutionId) Removes a resolution with the specified id.voidsetDefaultResolution(String newDefaultResolutionId) Sets the default resolution.voidstart()This method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.Methods inherited from class com.atlassian.jira.config.AbstractIssueConstantsManager
createConstant, getMaxSequenceNo, getNextStringId, moveDown, moveUp, removeConstant, removePropertySet
-
Constructor Details
-
DefaultResolutionManager
public DefaultResolutionManager(ConstantsManager constantsManager, IssueIndexingService issueIndexingService, OfBizDelegator ofBizDelegator, ApplicationProperties applicationProperties, IssueConstantFactory factory, com.atlassian.beehive.ClusterLockService clusterLockService, IssueManager issueManager, QueryDslAccessor queryDslAccessor, ResolutionAuditHandler resolutionAuditHandler)
-
-
Method Details
-
start
public void start()Description copied from interface:StartableThis method will be called after the plugin system is fully initialised and all components added to the dependency injection framework. -
createResolution
Description copied from interface:ResolutionManagerAdds a new resolution. The new resolution must have a unique name.- Specified by:
createResolutionin interfaceResolutionManager- Parameters:
name- resolution name. Cannot be null or blank.description- the resolution description. Can be null or blank.- Returns:
- the new
Resolution.
-
editResolution
Description copied from interface:ResolutionManagerEdits an existing resolution.- Specified by:
editResolutionin interfaceResolutionManager- Parameters:
resolution- resolution to edit.name- the new name.description- the new description
-
getResolutions
Description copied from interface:ResolutionManagerReturn all resolutions. The list is ordered by the sequence. The order can be modified by callingResolutionManager.moveResolutionDown(String)orResolutionManager.moveResolutionUp(String).- Specified by:
getResolutionsin interfaceResolutionManager- Returns:
- a list of
Resolutions
-
removeResolution
Description copied from interface:ResolutionManagerRemoves a resolution with the specified id. When removing a resolution all issues which have this resolution will have to be migrated to use a different resolution specified by the second argument.- Specified by:
removeResolutionin interfaceResolutionManager- Parameters:
removedResolutionId- resolution to remove.replacementResolutionId- new resolution for issues which have the resolution which has been removed. Cannot be null.
-
getResolutionByName
Description copied from interface:ResolutionManagerReturns the resolution with the specified name. It is case insensitive.- Specified by:
getResolutionByNamein interfaceResolutionManager- Parameters:
name- the name of the resolution.- Returns:
- a
Resolutionwith the specified name.
-
getResolution
Description copied from interface:ResolutionManagerReturns a resolution with the specified id.- Specified by:
getResolutionin interfaceResolutionManager- Parameters:
id- resolution id.- Returns:
- a
Resolutionwith the specified id or null if no resolution whith this id exists.
-
moveResolutionUp
Description copied from interface:ResolutionManagerMove the resolution up in the order.- Specified by:
moveResolutionUpin interfaceResolutionManager- Parameters:
id- id of the resolution.
-
moveResolutionDown
Description copied from interface:ResolutionManagerMove the resolution down in the order.- Specified by:
moveResolutionDownin interfaceResolutionManager- Parameters:
id- id of the resolution.
-
setDefaultResolution
Description copied from interface:ResolutionManagerSets the default resolution.You can pass null to clear the default.
- Specified by:
setDefaultResolutionin interfaceResolutionManager- Parameters:
newDefaultResolutionId- resolution id or null.
-
getDefaultResolution
Description copied from interface:ResolutionManagerReturns the default resolution.Will return null if no default is set.
- Specified by:
getDefaultResolutionin interfaceResolutionManager- Returns:
- the default resolution.
-
findResolutions
- Specified by:
findResolutionsin interfaceResolutionManager- Returns:
- the resolutions matching query or all resolutions if a provided query is empty
-
postProcess
- Overrides:
postProcessin classAbstractIssueConstantsManager<Resolution>
-
clearCaches
protected void clearCaches()- Overrides:
clearCachesin classAbstractIssueConstantsManager<Resolution>
-
getIssueConstantField
- Specified by:
getIssueConstantFieldin classAbstractIssueConstantsManager<Resolution>
-
getAllValues
- Specified by:
getAllValuesin classAbstractIssueConstantsManager<Resolution>
-