|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@PublicApi public interface ConstantsService
This class contains methods for managing JIRA constants such as issue types, statuses, priorities and resolutions.
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. |
Method Detail |
---|
ServiceOutcome<Status> getStatusById(com.atlassian.crowd.embedded.api.User user, String statusId)
ServiceOutcome.getReturnedValue()
on the returned ServiceOutcome.
user
- the calling userstatusId
- a String containing a Status id
ServiceOutcome<Status> getStatusByName(com.atlassian.crowd.embedded.api.User user, String statusName)
ServiceOutcome.getReturnedValue()
on the returned ServiceOutcome.
user
- the calling userstatusName
- a String containing a Status name
ServiceOutcome<Status> getStatusByTranslatedName(com.atlassian.crowd.embedded.api.User user, String statusName)
ServiceOutcome.getReturnedValue()
on the returned ServiceOutcome.
user
- the calling userstatusName
- a String containing a Status name
ServiceOutcome<Collection<Status>> getAllStatuses(com.atlassian.crowd.embedded.api.User user)
user
- the calling user
ServiceOutcome<Collection<IssueType>> getAllIssueTypes(com.atlassian.crowd.embedded.api.User user)
user
- the calling user
ServiceOutcome<IssueType> getIssueTypeById(com.atlassian.crowd.embedded.api.User user, String issueTypeId)
ServiceOutcome.getReturnedValue()
on the returned ServiceOutcome.
user
- the calling userissueTypeId
- a String containing an IssueType id
ServiceOutcome<Collection<StatusCategory>> getAllStatusCategories(com.atlassian.crowd.embedded.api.User user)
user
- the calling user. Will be used for formatting error messages
ServiceOutcome<Collection<StatusCategory>> getUserVisibleStatusCategories(com.atlassian.crowd.embedded.api.User user)
user
- the calling user. Will be used for formatting error messages
ServiceOutcome<StatusCategory> getStatusCategoryById(com.atlassian.crowd.embedded.api.User 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(com.atlassian.crowd.embedded.api.User 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(com.atlassian.crowd.embedded.api.User user)
user
- the calling User. Will be used for formatting error messages
boolean isStatusAsLozengeEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |