@ExperimentalApi @ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public interface PortalManager
Portal 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 PortalService should be preferred.
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Portal> |
getPortalForId(int portalId)
Returns an Either with the
Portal associated with the given
portal id or AnError if:
- Portal was not found |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Portal> |
getPortalForProject(com.atlassian.jira.project.Project project)
Returns an Either with the
Portal associated with the given
Project or AnError if:
- Portal was not found |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Portal> |
getPortalForServiceDesk(ServiceDesk serviceDesk)
Returns an Either with the
Portal associated with the given
ServiceDesk or AnError if:
- Portal was not found |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Portal> getPortalForProject(com.atlassian.jira.project.Project project)
Returns an Either with the Portal associated with the given
Project or AnError if:
- Portal was not found
project - the project to search by.Portal associated with the given Project or AnError.com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Portal> getPortalForId(int portalId)
Portal associated with the given
portal id or AnError if:
- Portal was not foundportalId - the id of the portal.Portal associated with the given portal id
or AnError.com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Portal> getPortalForServiceDesk(ServiceDesk serviceDesk)
Returns an Either with the Portal associated with the given
ServiceDesk or AnError if:
- Portal was not found
serviceDesk - the service desk to search by.Portal associated with the given ServiceDesk or AnError.Copyright © 2018 Atlassian. All rights reserved.