Interface ContentPermissionSetDao
-
- All Superinterfaces:
ObjectDao
- All Known Subinterfaces:
ContentPermissionSetDaoInternal
- All Known Implementing Classes:
HibernateContentPermissionSetDao
public interface ContentPermissionSetDao extends ObjectDao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContentPermissionSet
getById(long id)
List<Long>
getContentIdsWithPermissionSet(String spaceKey)
Gets the list of id of content which belongs to the specified space and has the permission set configured.Map<Long,List<ContentPermissionSet>>
getExplicitPermissionSetsFor(Collection<Long> ids)
Get a map between content id and permission set.List
getInheritedContentPermissionSets(Page page, String type)
Map<Long,Set<ContentPermissionSet>>
getPermissionSets(String spaceKey, List<Long> contentIds)
Retrieves theContentPermissionSet
of contents specified by the contentIds parameter given the space-
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, findAllSorted, findByClassIds, getPersistentClass, refresh, remove, replicate, save, saveRaw
-
-
-
-
Method Detail
-
getById
ContentPermissionSet getById(long id)
-
getExplicitPermissionSetsFor
Map<Long,List<ContentPermissionSet>> getExplicitPermissionSetsFor(Collection<Long> ids)
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
List getInheritedContentPermissionSets(Page page, String type)
- Returns:
- list of
ContentPermissionSet
s of the ancestors of ceo
-
getPermissionSets
Map<Long,Set<ContentPermissionSet>> getPermissionSets(String spaceKey, List<Long> contentIds)
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:
ContentPermissionSet
-
getContentIdsWithPermissionSet
List<Long> getContentIdsWithPermissionSet(String spaceKey)
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
-
-