Interface PortalService
@PublicApi
@ParametersAreNonnullByDefault
@ReturnValuesAreNonnullByDefault
public interface PortalService
Provides access to
Portal
objects.-
Method Summary
Modifier and TypeMethodDescriptiongetPortalForId
(com.atlassian.jira.user.ApplicationUser user, int portalId) Returns thePortal
associated with the given portal id.getPortalForProject
(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.project.Project project) Returns thePortal
associated with the givenProject
.getPortalForServiceDesk
(com.atlassian.jira.user.ApplicationUser user, ServiceDesk serviceDesk) Returns thePortal
associated with the givenServiceDesk
.getPortals
(com.atlassian.jira.user.ApplicationUser user, PagedRequest pagedRequest) Return aPagedResponse
of all of the portals
-
Method Details
-
getPortals
PagedResponse<Portal> getPortals(com.atlassian.jira.user.ApplicationUser user, PagedRequest pagedRequest) Return aPagedResponse
of all of the portals- Parameters:
user
- the user requesting the portalspagedRequest
- the paging to be applied to the output- Returns:
PagedResponse
for the portals- Throws:
ServiceDeskServiceException
- on error
-
getPortalForProject
Portal getPortalForProject(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.project.Project project) Returns thePortal
associated with the givenProject
.- Parameters:
user
- the user requesting the portalproject
- the project to search by- Returns:
Portal
associated with the givenProject
- Throws:
ServiceDeskServiceException
- on errorNoSuchEntityException
- if portal is not foundAuthorizationException
- if user does not have permission to access portal
-
getPortalForId
Returns thePortal
associated with the given portal id.- Parameters:
user
- the user requesting the portalportalId
- the id of the portal- Returns:
Portal
associated with the given portal id- Throws:
ServiceDeskServiceException
- on errorNoSuchEntityException
- if portal is not foundAuthorizationException
- if user does not have permission to access portal
-
getPortalForServiceDesk
Portal getPortalForServiceDesk(com.atlassian.jira.user.ApplicationUser user, ServiceDesk serviceDesk) Returns thePortal
associated with the givenServiceDesk
.- Parameters:
user
- the user requesting the portalserviceDesk
- the service project to search by- Returns:
Portal
associated with the givenServiceDesk
- Throws:
ServiceDeskServiceException
- on errorNoSuchEntityException
- if portal is not foundAuthorizationException
- if user does not have permission to access portal- Since:
- v3.7.0
-