@PublicApi @ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public interface ServiceDeskService
ServiceDesk objects| Modifier and Type | Method and Description |
|---|---|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ServiceDesk> |
getServiceDeskById(com.atlassian.jira.user.ApplicationUser user,
int serviceDeskId)
Retrieve a
ServiceDesk by its ID |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ServiceDesk> |
getServiceDeskForPortal(com.atlassian.jira.user.ApplicationUser user,
Portal portal)
Returns an Either of the
ServiceDesk associated with the given Portal 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,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, int serviceDeskId)
ServiceDesk by its IDuser - the user excuting the requestserviceDeskId - the service desk IDEither of an AnError if retrieval error, or the requested ServiceDeskcom.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 outputcom.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ServiceDesk> getServiceDeskForPortal(com.atlassian.jira.user.ApplicationUser user, Portal portal)
ServiceDesk associated with the given Portal 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.portal - the portal to search by.ServiceDesk associated with the given Portal or AnError.Copyright © 2017 Atlassian. All rights reserved.