|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.config.AbstractIssueConstantsManager<Resolution>
com.atlassian.jira.config.DefaultResolutionManager
public class DefaultResolutionManager
| Field Summary |
|---|
| Fields inherited from class com.atlassian.jira.config.AbstractIssueConstantsManager |
|---|
constantsManager, issueIndexManager, ofBizDelegator |
| Constructor Summary | |
|---|---|
DefaultResolutionManager(ConstantsManager constantsManager,
TranslationManager translationManager,
JiraAuthenticationContext jiraAuthenticationContext,
IssueIndexManager issueIndexManager,
OfBizDelegator ofBizDelegator,
ApplicationProperties applicationProperties)
|
|
| Method Summary | |
|---|---|
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()
|
protected String |
getIssueConstantField()
|
Resolution |
getResolution(String id)
Returns a resolution with the specified id. |
Resolution |
getResolutionByName(String name)
Returns athe 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. |
| 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 DefaultResolutionManager(ConstantsManager constantsManager,
TranslationManager translationManager,
JiraAuthenticationContext jiraAuthenticationContext,
IssueIndexManager issueIndexManager,
OfBizDelegator ofBizDelegator,
ApplicationProperties applicationProperties)
| Method Detail |
|---|
public Resolution createResolution(String name,
String description)
ResolutionManager
createResolution 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)
ResolutionManager
editResolution 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 ResolutionManagerResolutions
public void removeResolution(String resolutionId,
String newResolutionId)
ResolutionManager
removeResolution 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)
ResolutionManager
getResolutionByName in interface ResolutionManagername - the name of the resolution.
Resolution with the specified name.public Resolution getResolution(String id)
ResolutionManager
getResolution in interface ResolutionManagerid - resolution id.
Resolution with the specified id or null if no resolution whith this id exists.public void moveResolutionUp(String id)
ResolutionManager
moveResolutionUp in interface ResolutionManagerid - id of the resolution.public void moveResolutionDown(String id)
ResolutionManager
moveResolutionDown in interface ResolutionManagerid - id of the resolution.public void setDefaultResolution(String id)
ResolutionManager
setDefaultResolution in interface ResolutionManagerid - resolution id.public Resolution getDefaultResolution()
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>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||