@ExperimentalApi @ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public interface ServiceDeskManager
ServiceDesk
objects without permission checks.
It is intended this should only be required when performing administrative tasks where you need access regardless
of permissions or without a user. Usually the ServiceDeskService
should be preferred.Modifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ServiceDesk> |
getServiceDeskById(int serviceDeskId)
Retrieve a
ServiceDesk by its ID |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ServiceDesk> |
getServiceDeskForPortal(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 |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ServiceDesk> |
getServiceDeskForProject(com.atlassian.jira.project.Project project)
Returns an Either with the
ServiceDesk associated with the given Project or
AnError if:
- Service Desk was not found
- Service Desk was disabled |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ServiceDesk> getServiceDeskForProject(com.atlassian.jira.project.Project project)
ServiceDesk
associated with the given Project
or
AnError
if:
- Service Desk was not found
- Service Desk was disabledproject
- the project to search by.ServiceDesk
associated with the given {com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,ServiceDesk> getServiceDeskById(int serviceDeskId)
ServiceDesk
by its IDserviceDeskId
- 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,ServiceDesk> getServiceDeskForPortal(Portal portal)
ServiceDesk
associated with the given Portal
or
AnError
if:
- Service Desk was not found
- Service Desk was disabledportal
- the portal to search by.ServiceDesk
associated with the given Portal
or AnError
.Copyright © 2017 Atlassian. All rights reserved.