public class HibernateContentPermissionSetDao extends HibernateObjectDao<ContentPermissionSet> implements ContentPermissionSetDaoInternal
HibernateObjectDao.Cacheability
Constructor and Description |
---|
HibernateContentPermissionSetDao() |
Modifier and Type | Method and 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<ContentPermissionSet> |
getInheritedContentPermissionSets(Page page,
String type) |
Map<Long,Set<ContentPermissionSet>> |
getPermissionSets(String spaceKey,
List<Long> contentIds)
Retrieves the
ContentPermissionSet of contents specified by the contentIds parameter given the space |
Class<ContentPermissionSet> |
getPersistentClass()
Gets the type of
EntityObject this Dao works with. |
applyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, getCountResult, getHibernateTemplate, getSession, getSessionFactory, index, indexEntity, refresh, refreshEntity, reIndex, reIndexEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, unIndexEntity, uniqueResult, updateEntityModificationData, updateModificationData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, refresh, refreshEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity
public ContentPermissionSet getById(long id)
getById
in interface ContentPermissionSetDao
public Map<Long,List<ContentPermissionSet>> getExplicitPermissionSetsFor(Collection<Long> ids)
ContentPermissionSetDao
getExplicitPermissionSetsFor
in interface ContentPermissionSetDao
ids
- id of content to querypublic List<ContentPermissionSet> getInheritedContentPermissionSets(Page page, String type)
getInheritedContentPermissionSets
in interface ContentPermissionSetDao
ContentPermissionSet
s associated with the ancestors of this page object
The supplied page object must not be a root level page. The query is redundant for page without parents.
public Map<Long,Set<ContentPermissionSet>> getPermissionSets(String spaceKey, List<Long> contentIds)
ContentPermissionSetDao
ContentPermissionSet
of contents specified by the contentIds parameter given the spacegetPermissionSets
in interface ContentPermissionSetDao
spaceKey
- - key of SpacecontentIds
- - list of content idContentPermissionSet
public List<Long> getContentIdsWithPermissionSet(String spaceKey)
ContentPermissionSetDao
getContentIdsWithPermissionSet
in interface ContentPermissionSetDao
spaceKey
- - key of spacepublic Class<ContentPermissionSet> getPersistentClass()
ObjectDaoInternal
EntityObject
this Dao works with.getPersistentClass
in interface ObjectDao
getPersistentClass
in interface ObjectDaoInternal<ContentPermissionSet>
Copyright © 2003–2019 Atlassian. All rights reserved.