com.atlassian.jira.config
Class DefaultStatusManager
java.lang.Object
com.atlassian.jira.config.AbstractIssueConstantsManager<Status>
com.atlassian.jira.config.DefaultStatusManager
- All Implemented Interfaces:
- StatusManager
public class DefaultStatusManager
- extends AbstractIssueConstantsManager<Status>
- implements StatusManager
- Since:
- v5.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultStatusManager
public DefaultStatusManager(ConstantsManager constantsManager,
OfBizDelegator ofBizDelegator,
IssueIndexManager issueIndexManager,
TranslationManager translationManager,
JiraAuthenticationContext jiraAuthenticationContext,
WorkflowManager workflowManager)
createStatus
public Status createStatus(String name,
String description,
String iconUrl)
- Description copied from interface:
StatusManager
- Creates a new status.
- Specified by:
createStatus
in interface StatusManager
- 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)
- Description copied from interface:
StatusManager
- Edit an existing status.
- Specified by:
editStatus
in interface StatusManager
- Parameters:
status
- status to edit.name
- new name. Has to be unique.description
- new descriptioniconUrl
- new icon url
getStatuses
public Collection<Status> getStatuses()
- Specified by:
getStatuses
in interface StatusManager
- Returns:
- all
Status
es
removeStatus
public void removeStatus(String id)
- Description copied from interface:
StatusManager
- Removes a status.
- Specified by:
removeStatus
in interface StatusManager
- Parameters:
id
- status id
getStatus
public Status getStatus(String id)
- Description copied from interface:
StatusManager
- Get a status by id.
- Specified by:
getStatus
in interface StatusManager
- Parameters:
id
- status id
- Returns:
- the
Status
, or null if no status with this id exists.
postProcess
protected void postProcess(Status constant)
- Overrides:
postProcess
in class AbstractIssueConstantsManager<Status>
clearCaches
protected void clearCaches()
- Overrides:
clearCaches
in class AbstractIssueConstantsManager<Status>
getIssueConstantField
protected String getIssueConstantField()
- Specified by:
getIssueConstantField
in class AbstractIssueConstantsManager<Status>
getAllValues
protected List<Status> getAllValues()
- Specified by:
getAllValues
in class AbstractIssueConstantsManager<Status>
Copyright © 2002-2012 Atlassian. All Rights Reserved.