@PublicApi @ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public interface PortalService
Portal objects| Modifier and Type | Method and Description |
|---|---|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Portal> |
getPortalForId(com.atlassian.jira.user.ApplicationUser user,
int portalId)
Returns an Either with the
Portal associated with the given
portal id or AnError if:
- Portal was not found
- The user is does not have permission to access portal |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Portal> |
getPortalForProject(com.atlassian.jira.user.ApplicationUser user,
com.atlassian.jira.project.Project project)
Returns an Either with the
Portal associated with the given
Project or AnError if:
- Portal was not found
- The user is does not have permission to access portal |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Portal> |
getPortalForServiceDesk(com.atlassian.jira.user.ApplicationUser user,
ServiceDesk serviceDesk)
Returns an Either with the
Portal associated with the given
ServiceDesk or AnError if:
- Portal was not found
- The user is does not have permission to access portal |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Portal> getPortalForProject(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.project.Project project)
Returns an Either with the Portal associated with the given
Project or AnError if:
- Portal was not found
- The user is does not have permission to access portal
user - the user requesting the portalproject - 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(com.atlassian.jira.user.ApplicationUser user, int portalId)
Portal associated with the given
portal id or AnError if:
- Portal was not found
- The user is does not have permission to access portaluser - the user requesting the portalportalId - 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(com.atlassian.jira.user.ApplicationUser user, ServiceDesk serviceDesk)
Returns an Either with the Portal associated with the given
ServiceDesk or AnError if:
- Portal was not found
- The user is does not have permission to access portal
user - the user requesting the portalserviceDesk - the service desk to search by.Portal associated with the given ServiceDesk
or AnError.Copyright © 2017 Atlassian. All rights reserved.