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 thePortalassociated with the given portal id.getPortalForProject(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.project.Project project) Returns thePortalassociated with the givenProject.getPortalForServiceDesk(com.atlassian.jira.user.ApplicationUser user, ServiceDesk serviceDesk) Returns thePortalassociated with the givenServiceDesk.getPortals(com.atlassian.jira.user.ApplicationUser user, PagedRequest pagedRequest) Return aPagedResponseof all of the portals
-
Method Details
-
getPortals
PagedResponse<Portal> getPortals(com.atlassian.jira.user.ApplicationUser user, PagedRequest pagedRequest) Return aPagedResponseof all of the portals- Parameters:
user- the user requesting the portalspagedRequest- the paging to be applied to the output- Returns:
PagedResponsefor the portals- Throws:
ServiceDeskServiceException- on error
-
getPortalForProject
Portal getPortalForProject(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.project.Project project) Returns thePortalassociated with the givenProject.- Parameters:
user- the user requesting the portalproject- the project to search by- Returns:
Portalassociated with the givenProject- Throws:
ServiceDeskServiceException- on errorNoSuchEntityException- if portal is not foundAuthorizationException- if user does not have permission to access portal
-
getPortalForId
Returns thePortalassociated with the given portal id.- Parameters:
user- the user requesting the portalportalId- the id of the portal- Returns:
Portalassociated 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 thePortalassociated with the givenServiceDesk.- Parameters:
user- the user requesting the portalserviceDesk- the service project to search by- Returns:
Portalassociated 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
-