Interface PortalManager
@PublicApi
@ParametersAreNonnullByDefault
@ReturnValuesAreNonnullByDefault
public interface PortalManager
Provides access to
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.
- Since:
- v3.7.0
-
Method Summary
Modifier and TypeMethodDescriptiongetPortalForId
(int portalId) Returns thePortal
associated with the given portal id.getPortalForProject
(com.atlassian.jira.project.Project project) ReturnsPortal
associated with the givenProject
.getPortalForServiceDesk
(ServiceDesk serviceDesk) Returns thePortal
associated with the givenServiceDesk
.getPortals
(PagedRequest pagedRequest) Return aPagedResponse
of all of the portals
-
Method Details
-
getPortals
Return aPagedResponse
of all of the portals- Parameters:
pagedRequest
- the paging to be applied to the output- Returns:
PagedResponse
for the portals- Throws:
ServiceDeskServiceException
- on error
-
getPortalForProject
ReturnsPortal
associated with the givenProject
.- Parameters:
project
- the project to search by.- Returns:
Portal
associated with the givenProject
- Throws:
ServiceDeskServiceException
- on errorNoSuchEntityException
- if portal is not found
-
getPortalForId
Returns thePortal
associated with the given portal id.- Parameters:
portalId
- the id of the portal.- Returns:
Portal
associated with the given portal id- Throws:
ServiceDeskServiceException
- on errorNoSuchEntityException
- if portal is not found
-
getPortalForServiceDesk
Returns thePortal
associated with the givenServiceDesk
.- Parameters:
serviceDesk
- the service project to search by.- Returns:
Portal
associated with the givenServiceDesk
- Throws:
ServiceDeskServiceException
- on errorNoSuchEntityException
- if portal is not found
-