|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.bc.config.DefaultConstantsService
public class DefaultConstantsService
This class implements constant-related business cases.
Constructor Summary | |
---|---|
DefaultConstantsService(I18nHelper.BeanFactory i18n,
ConstantsManager constantsManager,
PermissionManager permissionManager,
WorkflowSchemeManager workflowSchemeMgr,
WorkflowManager workflowMgr,
IssueTypeSchemeManager issueTypeSchemeMgr,
StatusCategoryManager statusCategoryManager)
Creates a new DefaultConstantsService. |
Method Summary | |
---|---|
ServiceOutcome<Collection<IssueType>> |
getAllIssueTypes(com.atlassian.crowd.embedded.api.User user)
Returns a ServiceOutcome containing all IssueTypes. |
ServiceOutcome<Collection<StatusCategory>> |
getAllStatusCategories(com.atlassian.crowd.embedded.api.User user)
Returns a ServiceOutcome containing all StatusCategories. |
ServiceOutcome<Collection<Status>> |
getAllStatuses(com.atlassian.crowd.embedded.api.User user)
Returns a ServiceOutcome containing all Statuses. |
ServiceOutcome<StatusCategory> |
getDefaultStatusCategory(com.atlassian.crowd.embedded.api.User user)
Returns a ServiceOutcome containing default StatusCategory. |
ServiceOutcome<IssueType> |
getIssueTypeById(com.atlassian.crowd.embedded.api.User user,
String issueTypeId)
Returns a ServiceOutcome containing the IssueType that has the given id. |
ServiceOutcome<Status> |
getStatusById(com.atlassian.crowd.embedded.api.User user,
String statusId)
Returns a ServiceOutcome containing the Status that has the given id. |
ServiceOutcome<Status> |
getStatusByName(com.atlassian.crowd.embedded.api.User user,
String statusName)
Returns a ServiceOutcome containing the Status that has the given Name. |
ServiceOutcome<Status> |
getStatusByTranslatedName(com.atlassian.crowd.embedded.api.User user,
String statusName)
Returns a ServiceOutcome containing the Status that has the given Name. |
ServiceOutcome<StatusCategory> |
getStatusCategoryById(com.atlassian.crowd.embedded.api.User user,
String id)
Returns a ServiceOutcome containing StatusCategory that has the gived id. |
ServiceOutcome<StatusCategory> |
getStatusCategoryByKey(com.atlassian.crowd.embedded.api.User user,
String key)
Returns a ServiceOutcome containing StatusCategory that has the gived key. |
ServiceOutcome<Collection<StatusCategory>> |
getUserVisibleStatusCategories(com.atlassian.crowd.embedded.api.User user)
Returns a ServiceOutcome containing StatusCategories visible to any user. |
boolean |
isStatusAsLozengeEnabled()
Returns a boolean value indicating whether statuses should appear as lozenges or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultConstantsService(I18nHelper.BeanFactory i18n, ConstantsManager constantsManager, PermissionManager permissionManager, WorkflowSchemeManager workflowSchemeMgr, WorkflowManager workflowMgr, IssueTypeSchemeManager issueTypeSchemeMgr, StatusCategoryManager statusCategoryManager)
i18n
- a I18nHelperconstantsManager
- a ConstantsManagerpermissionManager
- a PermissionManagerworkflowSchemeMgr
- a WorkflowSchemeManagerworkflowMgr
- a WorkflowManagerissueTypeSchemeMgr
- an IssueTypeSchemeManagerstatusCategoryManager
- a StatusCategoryManagerMethod Detail |
---|
public ServiceOutcome<Status> getStatusById(com.atlassian.crowd.embedded.api.User user, String statusId)
ConstantsService
ServiceOutcome.getReturnedValue()
on the returned ServiceOutcome.
getStatusById
in interface ConstantsService
user
- the calling userstatusId
- a String containing a Status id
public ServiceOutcome<Status> getStatusByName(com.atlassian.crowd.embedded.api.User user, String statusName)
ConstantsService
ServiceOutcome.getReturnedValue()
on the returned ServiceOutcome.
getStatusByName
in interface ConstantsService
user
- the calling userstatusName
- a String containing a Status name
public ServiceOutcome<Status> getStatusByTranslatedName(com.atlassian.crowd.embedded.api.User user, String statusName)
ConstantsService
ServiceOutcome.getReturnedValue()
on the returned ServiceOutcome.
getStatusByTranslatedName
in interface ConstantsService
user
- the calling userstatusName
- a String containing a Status name
public ServiceOutcome<Collection<Status>> getAllStatuses(com.atlassian.crowd.embedded.api.User user)
ConstantsService
getAllStatuses
in interface ConstantsService
user
- the calling user
public ServiceOutcome<Collection<IssueType>> getAllIssueTypes(com.atlassian.crowd.embedded.api.User user)
ConstantsService
getAllIssueTypes
in interface ConstantsService
user
- the calling user
public ServiceOutcome<IssueType> getIssueTypeById(com.atlassian.crowd.embedded.api.User user, String issueTypeId)
ConstantsService
ServiceOutcome.getReturnedValue()
on the returned ServiceOutcome.
getIssueTypeById
in interface ConstantsService
user
- the calling userissueTypeId
- a String containing an IssueType id
public ServiceOutcome<Collection<StatusCategory>> getAllStatusCategories(com.atlassian.crowd.embedded.api.User user)
ConstantsService
getAllStatusCategories
in interface ConstantsService
user
- the calling user. Will be used for formatting error messages
public ServiceOutcome<Collection<StatusCategory>> getUserVisibleStatusCategories(com.atlassian.crowd.embedded.api.User user)
ConstantsService
getUserVisibleStatusCategories
in interface ConstantsService
user
- the calling user. Will be used for formatting error messages
public ServiceOutcome<StatusCategory> getStatusCategoryById(com.atlassian.crowd.embedded.api.User user, String id)
ConstantsService
ServiceOutcome.getReturnedValue()
on the returned ServiceOutcome.
getStatusCategoryById
in interface ConstantsService
user
- the calling user. Will be used for formatting error messagesid
- a String containing a StatusCategory idpublic ServiceOutcome<StatusCategory> getStatusCategoryByKey(com.atlassian.crowd.embedded.api.User user, String key)
ConstantsService
ServiceOutcome.getReturnedValue()
on the returned ServiceOutcome.
getStatusCategoryByKey
in interface ConstantsService
user
- the calling user. Will be used for formatting error messageskey
- a String containing a StatusCategory idpublic ServiceOutcome<StatusCategory> getDefaultStatusCategory(com.atlassian.crowd.embedded.api.User user)
ConstantsService
getDefaultStatusCategory
in interface ConstantsService
user
- the calling User. Will be used for formatting error messages
public boolean isStatusAsLozengeEnabled()
ConstantsService
isStatusAsLozengeEnabled
in interface ConstantsService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |