@PublicApi
@ExperimentalApi
public interface ServiceDeskService
ServiceDesk
objectsModifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ServiceDesk> |
getServiceDeskById(com.atlassian.jira.user.ApplicationUser user,
long serviceDeskId)
Retrieve a
ServiceDesk by its ID |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ServiceDesk> |
getServiceDeskForProject(com.atlassian.jira.user.ApplicationUser user,
com.atlassian.jira.project.Project project)
Returns an Either of the
ServiceDesk associated with the given Project or
AnError if:
- Service Desk was not found
- Service Desk was disabled
- User does not have access to the ServiceDesk |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,PagedResponse<ServiceDesk>> |
getServiceDesks(com.atlassian.jira.user.ApplicationUser user,
PagedRequest pagedRequest)
Returns a page of service desks a user can see.
|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ServiceDesk> getServiceDeskForProject(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.project.Project project)
ServiceDesk
associated with the given Project
or
AnError
if:
- Service Desk was not found
- Service Desk was disabled
- User does not have access to the ServiceDeskuser
- the user requesting the service desk.project
- the project to search by.ServiceDesk
associated with the given Project
or AnError
.com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ServiceDesk> getServiceDeskById(com.atlassian.jira.user.ApplicationUser user, long serviceDeskId)
ServiceDesk
by its IDuser
- the user excuting the requestserviceDeskId
- the service desk IDEither
of an AnError
if retrieval error, or the requested ServiceDesk
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,PagedResponse<ServiceDesk>> getServiceDesks(com.atlassian.jira.user.ApplicationUser user, PagedRequest pagedRequest)
user
- the user executing the requestpagedRequest
- the paging to be applied to the outputCopyright © 2017 Atlassian. All rights reserved.