Class RealContentAndPermissionsDao
- java.lang.Object
-
- com.atlassian.confluence.security.denormalisedpermissions.impl.content.dao.RealContentAndPermissionsDao
-
public class RealContentAndPermissionsDao extends Object
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 Classes Modifier and Type Class Description static class
RealContentAndPermissionsDao.SimpleContentPermission
We need this class to retrieve content permissions without taking all other linked stuff (like content permissions sets)static class
RealContentAndPermissionsDao.SimpleContentPermissionSet
Helper for retrieving content permission sets
-
Constructor Summary
Constructors Constructor Description RealContentAndPermissionsDao(org.hibernate.SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Long,Long>
getContentPermissionSetIdsForContentPermissionIds(Set<Long> contentPermSetIds)
Retrives data from content_perm_set table.Map<Long,Long>
getContentPermissionSets(Collection<Long> pageIdSet, String contentPermSetType)
List<SimpleContent>
getSimpleContentList(Collection<Long> contentIds)
Map<Long,List<RealContentAndPermissionsDao.SimpleContentPermission>>
getSimpleContentPermissions(Collection<Long> contentPermSetIds)
List<SimpleContent>
getSimplePageListWithIdGreaterThen(Long id, int limit)
-
-
-
Method Detail
-
getSimplePageListWithIdGreaterThen
public List<SimpleContent> getSimplePageListWithIdGreaterThen(Long id, int limit)
-
getContentPermissionSets
public Map<Long,Long> getContentPermissionSets(Collection<Long> pageIdSet, String contentPermSetType)
-
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
public List<SimpleContent> getSimpleContentList(Collection<Long> contentIds)
-
getSimpleContentPermissions
public Map<Long,List<RealContentAndPermissionsDao.SimpleContentPermission>> getSimpleContentPermissions(Collection<Long> contentPermSetIds)
-
-