@ExperimentalApi
public interface BulkPermissionService
Modifier and Type | Method and Description |
---|---|
Map<String,Boolean> |
getAllSpaceKeysWithPermissionStatuses(ConfluenceUser confluenceUser,
String spacePermissionType)
Returns a map of spaces where key is space key, and value is flag (true if permitted, false is not)
|
List<SimpleContent> |
getAllVisiblePagesInSpace(ConfluenceUser confluenceUser,
long spaceId)
Returns the full list of visible pages in the space.
|
Set<Long> |
getPermittedSpaceIds(ConfluenceUser confluenceUser,
Set<Long> spaceIds,
String spacePermissionType)
Returns a set of permitted space ids.
|
List<Space> |
getPermittedSpaces(SpacesQuery spaceQuery,
int offset,
int limit)
Returns a list of permitted spaces filters by spaceQuery.
|
Map<Long,List<SimpleContent>> |
getVisibleChildPages(ConfluenceUser confluenceUser,
Set<Long> parentPageIdSet,
boolean checkInheritedPermissions)
Receives a set of page ids as a parameter and finds all visible children for them.
|
Set<Long> |
getVisiblePageIds(ConfluenceUser confluenceUser,
Set<Long> pageIds,
boolean checkSpacePermissions)
Returns a set of visible page ids.
|
List<SimpleContent> |
getVisibleTopLevelPages(ConfluenceUser confluenceUser,
long spaceId)
Finds all visible top-level pages.
|
Map<String,Boolean> getAllSpaceKeysWithPermissionStatuses(@Nullable ConfluenceUser confluenceUser, String spacePermissionType)
confluenceUser
- confluence user.spacePermissionType
- - permission type. Only "VIEWSPACE" or "EDITSPACE" are supportedList<Space> getPermittedSpaces(SpacesQuery spaceQuery, int offset, int limit)
spaceQuery
- queryoffset
- offset for the querylimit
- maxResults for the query. Must be greater than 0Set<Long> getPermittedSpaceIds(@Nullable ConfluenceUser confluenceUser, Set<Long> spaceIds, String spacePermissionType)
confluenceUser
- confluence user.spaceIds
- space ids.spacePermissionType
- - permission type. Only "VIEWSPACE" or "EDITSPACE" are supported.Map<Long,List<SimpleContent>> getVisibleChildPages(@Nullable ConfluenceUser confluenceUser, Set<Long> parentPageIdSet, boolean checkInheritedPermissions)
confluenceUser
- the Confluence user, null if anonymousparentPageIdSet
- set of parent page idsSimpleContent
entities representing the child pages visible to the userList<SimpleContent> getVisibleTopLevelPages(@Nullable ConfluenceUser confluenceUser, long spaceId)
confluenceUser
- the Confluence user, null if anonymousspaceId
- the space IDSimpleContent
entities representing the child pages visible to the userList<SimpleContent> getAllVisiblePagesInSpace(@Nullable ConfluenceUser confluenceUser, long spaceId)
confluenceUser
- the Confluence user, null if anonymousspaceId
- the space IDSimpleContent
entities representing all pages visible to the user in a spaceSet<Long> getVisiblePageIds(@Nullable ConfluenceUser confluenceUser, Set<Long> pageIds, boolean checkSpacePermissions)
confluenceUser
- confluence user.pageIds
- page ids.checkSpacePermissions
- if false, "useConfluence" and corresponding space permissions will NOT be checked.
If true, "useConfluence" and corresponding space permissions will be checked too.Copyright © 2003–2021 Atlassian. All rights reserved.