Class RealContentAndPermissionsDao
java.lang.Object
com.atlassian.confluence.security.denormalisedpermissions.impl.content.dao.RealContentAndPermissionsDao
Provides access to content, content_perm and content_perm_set tables.
Default DAO classes were not extended because these methods are required for denormalised permissions only.
- Since:
- 7.11.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
We need this class to retrieve content permissions without taking all other linked stuff (like content permissions sets)static class
Helper for retrieving content permission sets -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetContentPermissionSetIdsForContentPermissionIds
(Set<Long> contentPermSetIds) Retrives data from content_perm_set table.getContentPermissionSets
(Collection<Long> pageIdSet, String contentPermSetType) getSimpleContentList
(Collection<Long> contentIds) getSimpleContentPermissions
(Collection<Long> contentPermSetIds) getSimplePageListWithIdGreaterThen
(Long id, int limit)
-
Constructor Details
-
RealContentAndPermissionsDao
public RealContentAndPermissionsDao(org.hibernate.SessionFactory sessionFactory)
-
-
Method Details
-
getSimplePageListWithIdGreaterThen
-
getContentPermissionSets
-
getContentPermissionSetIdsForContentPermissionIds
public Map<Long,Long> getContentPermissionSetIdsForContentPermissionIds(Set<Long> contentPermSetIds) Retrives data from content_perm_set table.- Parameters:
contentPermSetIds
- set of content permission set ids- Returns:
- map where key is content permission set id and the value is content id
-
getSimpleContentList
-
getSimpleContentPermissions
public Map<Long,List<RealContentAndPermissionsDao.SimpleContentPermission>> getSimpleContentPermissions(Collection<Long> contentPermSetIds)
-