Package com.atlassian.jira.config
Class DefaultStatusManager
java.lang.Object
com.atlassian.jira.config.AbstractIssueConstantsManager<Status>
com.atlassian.jira.config.DefaultStatusManager
- All Implemented Interfaces:
StatusManager,Startable
public class DefaultStatusManager
extends AbstractIssueConstantsManager<Status>
implements StatusManager, Startable
- Since:
- v5.0
-
Field Summary
Fields inherited from class com.atlassian.jira.config.AbstractIssueConstantsManager
constantsManager, issueIndexingService, issueManager, ofBizDelegator, queryDslAccessor -
Constructor Summary
ConstructorsConstructorDescriptionDefaultStatusManager(ConstantsManager constantsManager, OfBizDelegator ofBizDelegator, IssueIndexingService issueIndexingService, WorkflowManager workflowManager, IssueConstantFactory factory, StatusCategoryManager statusCategoryManager, com.atlassian.beehive.ClusterLockService clusterLockService, IssueManager issueManager, QueryDslAccessor queryDslAccessor, com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateStatus(String name, String description, String iconUrl) Creates a new status.createStatus(String name, String description, String iconUrl, StatusCategory statusCategory) Creates a new status.voideditStatus(Status status, String name, String description, String iconUrl) Edit an existing status.voideditStatus(Status status, String name, String description, String iconUrl, StatusCategory statusCategory) Edit an existing status.protected StringGet a status by id.voidmoveStatusDown(String id) Move the status down in the order.voidmoveStatusUp(String id) Move the status up in the order.protected voidpostProcess(Status constant) voidremoveStatus(String id) Removes a status.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
-
DefaultStatusManager
public DefaultStatusManager(ConstantsManager constantsManager, OfBizDelegator ofBizDelegator, IssueIndexingService issueIndexingService, WorkflowManager workflowManager, IssueConstantFactory factory, StatusCategoryManager statusCategoryManager, com.atlassian.beehive.ClusterLockService clusterLockService, IssueManager issueManager, QueryDslAccessor queryDslAccessor, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
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. -
createStatus
public Status createStatus(String name, String description, String iconUrl, StatusCategory statusCategory) Description copied from interface:StatusManagerCreates a new status.- Specified by:
createStatusin interfaceStatusManager- Parameters:
name- name of the status. Cannot be blank or null and has to be unique.description- description of the status.iconUrl- icon url for this status. Cannot be blank or null.statusCategory- status category of the status. Cannot be null- Returns:
- the new
Status.
-
createStatus
Description copied from interface:StatusManagerCreates a new status.- Specified by:
createStatusin interfaceStatusManager- Parameters:
name- name of the status. Cannot be blank or null and has to be unique.description- description of the status.iconUrl- icon url for this status. Cannot be blank or null.- Returns:
- the new
Status.
-
editStatus
public void editStatus(Status status, String name, String description, String iconUrl, StatusCategory statusCategory) Description copied from interface:StatusManagerEdit an existing status.- Specified by:
editStatusin interfaceStatusManager- Parameters:
status- status to edit.name- new name. Has to be unique.description- new descriptioniconUrl- new icon urlstatusCategory- status category of the status. Cannot be null
-
editStatus
Description copied from interface:StatusManagerEdit an existing status.- Specified by:
editStatusin interfaceStatusManager- Parameters:
status- status to edit.name- new name. Has to be unique.description- new descriptioniconUrl- new icon url
-
getStatuses
- Specified by:
getStatusesin interfaceStatusManager- Returns:
- all
Statuses
-
removeStatus
Description copied from interface:StatusManagerRemoves a status.- Specified by:
removeStatusin interfaceStatusManager- Parameters:
id- status id
-
getStatus
Description copied from interface:StatusManagerGet a status by id.- Specified by:
getStatusin interfaceStatusManager- Parameters:
id- status id- Returns:
- the
Status, or null if no status with this id exists.
-
moveStatusUp
Description copied from interface:StatusManagerMove the status up in the order.- Specified by:
moveStatusUpin interfaceStatusManager- Parameters:
id- id of the status.
-
moveStatusDown
Description copied from interface:StatusManagerMove the status down in the order.- Specified by:
moveStatusDownin interfaceStatusManager- Parameters:
id- id of the status.
-
postProcess
- Overrides:
postProcessin classAbstractIssueConstantsManager<Status>
-
clearCaches
protected void clearCaches()- Overrides:
clearCachesin classAbstractIssueConstantsManager<Status>
-
getIssueConstantField
- Specified by:
getIssueConstantFieldin classAbstractIssueConstantsManager<Status>
-
getAllValues
- Specified by:
getAllValuesin classAbstractIssueConstantsManager<Status>
-