@ExperimentalApi
public interface PortalService
Portal
objectsModifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Portal> |
getPortalForId(com.atlassian.jira.user.ApplicationUser user,
long portalId)
Returns an Either with the
Portal associated with the given
portal id or AnError if:
- Portal was not found
- Service Desk was disabled
- 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) |
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)
user
- the user requesting the portalproject
- the project to search by.Portal
associated with the given {com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,Portal> getPortalForId(com.atlassian.jira.user.ApplicationUser user, long portalId)
Portal
associated with the given
portal id or AnError
if:
- Portal was not found
- Service Desk was disabled
- 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
.Copyright © 2017 Atlassian. All rights reserved.