Interface ContentPermissionSetDao
- All Known Subinterfaces:
ContentPermissionSetDaoInternal
- All Known Implementing Classes:
HibernateContentPermissionSetDao
public interface ContentPermissionSetDao
-
Method Summary
Modifier and TypeMethodDescriptiongetById
(long id) getContentIdsWithPermissionSet
(String spaceKey) Gets the list of id of content which belongs to the specified space and has the permission set configured.Get a map between content id and permission set.getInheritedContentPermissionSets
(Page page, String type) getPermissionSets
(String spaceKey, List<Long> contentIds) Retrieves theContentPermissionSet
of contents specified by the contentIds parameter given the spacevoid
remove
(ContentPermissionSet contentPermissionSet) void
save
(ContentPermissionSet contentPermissionSet)
-
Method Details
-
getById
-
getExplicitPermissionSetsFor
Get a map between content id and permission set. This only returns ContentPermissionSets directly owned by the given ids (or empty lists for content without any content permissions). It is not aware of inherited permissions.- Parameters:
ids
- id of content to query- Returns:
- permission set map
-
getInheritedContentPermissionSets
- Returns:
- list of
ContentPermissionSet
s of the ancestors of ceo
-
getPermissionSets
Retrieves theContentPermissionSet
of contents specified by the contentIds parameter given the space- Parameters:
spaceKey
- - key of SpacecontentIds
- - list of content id- Returns:
- a map where the key is the content id, and the value are the permission set, such as View/Edit, being configured
- Since:
- 5.10.8
- See Also:
-
getContentIdsWithPermissionSet
Gets the list of id of content which belongs to the specified space and has the permission set configured. If a page is using the inherited permission, its id will not be included.- Parameters:
spaceKey
- - key of space- Returns:
- the list of content id
- Since:
- 5.10.8
-
remove
- Since:
- 9.0
-
save
- Since:
- 9.0
-