public class DefaultConstantsService extends Object implements ConstantsService
Constructor and Description |
---|
DefaultConstantsService(I18nHelper.BeanFactory i18n,
ConstantsManager constantsManager,
PermissionManager permissionManager,
WorkflowSchemeManager workflowSchemeMgr,
WorkflowManager workflowMgr,
StatusCategoryManager statusCategoryManager,
IssueTypeService issueTypeService) |
Modifier and Type | Method and Description |
---|---|
ServiceOutcome<Collection<IssueType>> |
getAllIssueTypes(ApplicationUser user)
Returns a ServiceOutcome containing all IssueTypes.
|
ServiceOutcome<Collection<StatusCategory>> |
getAllStatusCategories(ApplicationUser user)
Returns a ServiceOutcome containing all StatusCategories.
|
ServiceOutcome<Collection<Status>> |
getAllStatuses(ApplicationUser user)
Returns a ServiceOutcome containing all Statuses.
|
ServiceOutcome<StatusCategory> |
getDefaultStatusCategory(ApplicationUser user)
Returns a ServiceOutcome containing default StatusCategory.
|
ServiceOutcome<IssueType> |
getIssueTypeById(ApplicationUser user,
String issueTypeId)
Returns a ServiceOutcome containing the IssueType that has the given id.
|
ServiceOutcome<Status> |
getStatusById(ApplicationUser user,
String statusId)
Returns a ServiceOutcome containing the Status that has the given id.
|
ServiceOutcome<Status> |
getStatusByName(ApplicationUser user,
String statusName)
Returns a ServiceOutcome containing the Status that has the given Name.
|
ServiceOutcome<Status> |
getStatusByTranslatedName(ApplicationUser user,
String statusName)
Returns a ServiceOutcome containing the Status that has the given Name.
|
ServiceOutcome<StatusCategory> |
getStatusCategoryById(ApplicationUser user,
String id)
Returns a ServiceOutcome containing StatusCategory that has the gived id.
|
ServiceOutcome<StatusCategory> |
getStatusCategoryByKey(ApplicationUser user,
String key)
Returns a ServiceOutcome containing StatusCategory that has the gived key.
|
ServiceOutcome<Collection<StatusCategory>> |
getUserVisibleStatusCategories(ApplicationUser 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.
|
public DefaultConstantsService(I18nHelper.BeanFactory i18n, ConstantsManager constantsManager, PermissionManager permissionManager, WorkflowSchemeManager workflowSchemeMgr, WorkflowManager workflowMgr, StatusCategoryManager statusCategoryManager, IssueTypeService issueTypeService)
public ServiceOutcome<Status> getStatusById(ApplicationUser user, String statusId)
ConstantsService
ServiceOutcome.getReturnedValue()
on the returned ServiceOutcome.getStatusById
in interface ConstantsService
user
- the calling userstatusId
- a String containing a Status idpublic ServiceOutcome<Status> getStatusByName(ApplicationUser user, String statusName)
ConstantsService
ServiceOutcome.getReturnedValue()
on the returned ServiceOutcome.getStatusByName
in interface ConstantsService
user
- the calling userstatusName
- a String containing a Status namepublic ServiceOutcome<Status> getStatusByTranslatedName(ApplicationUser user, String statusName)
ConstantsService
ServiceOutcome.getReturnedValue()
on the returned ServiceOutcome.getStatusByTranslatedName
in interface ConstantsService
user
- the calling userstatusName
- a String containing a Status namepublic ServiceOutcome<Collection<Status>> getAllStatuses(ApplicationUser user)
ConstantsService
getAllStatuses
in interface ConstantsService
user
- the calling userpublic ServiceOutcome<Collection<IssueType>> getAllIssueTypes(ApplicationUser user)
ConstantsService
getAllIssueTypes
in interface ConstantsService
user
- the calling userpublic ServiceOutcome<IssueType> getIssueTypeById(ApplicationUser user, String issueTypeId)
ConstantsService
ServiceOutcome.getReturnedValue()
on the returned ServiceOutcome.getIssueTypeById
in interface ConstantsService
user
- the calling userissueTypeId
- a String containing an IssueType idpublic ServiceOutcome<Collection<StatusCategory>> getAllStatusCategories(ApplicationUser user)
ConstantsService
getAllStatusCategories
in interface ConstantsService
user
- the calling user. Will be used for formatting error messagespublic ServiceOutcome<Collection<StatusCategory>> getUserVisibleStatusCategories(ApplicationUser user)
ConstantsService
getUserVisibleStatusCategories
in interface ConstantsService
user
- the calling user. Will be used for formatting error messagespublic ServiceOutcome<StatusCategory> getStatusCategoryById(ApplicationUser 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(ApplicationUser 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(ApplicationUser user)
ConstantsService
getDefaultStatusCategory
in interface ConstantsService
user
- the calling User. Will be used for formatting error messagespublic boolean isStatusAsLozengeEnabled()
ConstantsService
isStatusAsLozengeEnabled
in interface ConstantsService
Copyright © 2002-2017 Atlassian. All Rights Reserved.