@PublicApi
public interface ConstantsService
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.
|
ServiceOutcome<Status> getStatusById(ApplicationUser user, String statusId)
ServiceOutcome.getReturnedValue()
on the returned ServiceOutcome.user
- the calling userstatusId
- a String containing a Status idServiceOutcome<Status> getStatusByName(ApplicationUser user, String statusName)
ServiceOutcome.getReturnedValue()
on the returned ServiceOutcome.user
- the calling userstatusName
- a String containing a Status nameServiceOutcome<Status> getStatusByTranslatedName(ApplicationUser user, String statusName)
ServiceOutcome.getReturnedValue()
on the returned ServiceOutcome.user
- the calling userstatusName
- a String containing a Status nameServiceOutcome<Collection<Status>> getAllStatuses(ApplicationUser user)
user
- the calling userServiceOutcome<Collection<IssueType>> getAllIssueTypes(ApplicationUser user)
user
- the calling userServiceOutcome<IssueType> getIssueTypeById(ApplicationUser user, String issueTypeId)
ServiceOutcome.getReturnedValue()
on the returned ServiceOutcome.user
- the calling userissueTypeId
- a String containing an IssueType idServiceOutcome<Collection<StatusCategory>> getAllStatusCategories(ApplicationUser user)
user
- the calling user. Will be used for formatting error messagesServiceOutcome<Collection<StatusCategory>> getUserVisibleStatusCategories(ApplicationUser user)
user
- the calling user. Will be used for formatting error messagesServiceOutcome<StatusCategory> getStatusCategoryById(ApplicationUser user, String id)
ServiceOutcome.getReturnedValue()
on the returned ServiceOutcome.user
- the calling user. Will be used for formatting error messagesid
- a String containing a StatusCategory idServiceOutcome<StatusCategory> getStatusCategoryByKey(ApplicationUser user, String key)
ServiceOutcome.getReturnedValue()
on the returned ServiceOutcome.user
- the calling user. Will be used for formatting error messageskey
- a String containing a StatusCategory idServiceOutcome<StatusCategory> getDefaultStatusCategory(ApplicationUser user)
user
- the calling User. Will be used for formatting error messagesboolean isStatusAsLozengeEnabled()
Copyright © 2002-2019 Atlassian. All Rights Reserved.