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.
|
Map<Long,List<ContentPermissionSet>> |
getInheritedContentPermissionSets(Collection<Long> pageIds)
Get all inherited
ContentPermissionSets for the given page IDs. |
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, setEventPublisher, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, unIndexEntity, uniqueResult, updateEntityModificationData, updateModificationDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, refresh, refreshEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntitypublic ContentPermissionSet getById(long id)
getById in interface ContentPermissionSetDaopublic Map<Long,List<ContentPermissionSet>> getExplicitPermissionSetsFor(Collection<Long> ids)
ContentPermissionSetDaogetExplicitPermissionSetsFor in interface ContentPermissionSetDaoids - id of content to querypublic List<ContentPermissionSet> getInheritedContentPermissionSets(Page page, String type)
getInheritedContentPermissionSets in interface ContentPermissionSetDaoContentPermissionSets 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,List<ContentPermissionSet>> getInheritedContentPermissionSets(Collection<Long> pageIds)
ContentPermissionSetDaoInternalContentPermissionSets for the given page IDs.getInheritedContentPermissionSets in interface ContentPermissionSetDaoInternalpublic Map<Long,Set<ContentPermissionSet>> getPermissionSets(String spaceKey, List<Long> contentIds)
ContentPermissionSetDaoContentPermissionSet of contents specified by the contentIds parameter given the spacegetPermissionSets in interface ContentPermissionSetDaospaceKey - - key of SpacecontentIds - - list of content idContentPermissionSetpublic List<Long> getContentIdsWithPermissionSet(String spaceKey)
ContentPermissionSetDaogetContentIdsWithPermissionSet in interface ContentPermissionSetDaospaceKey - - key of spacepublic Class<ContentPermissionSet> getPersistentClass()
ObjectDaoInternalEntityObject this Dao works with.getPersistentClass in interface ObjectDaogetPersistentClass in interface ObjectDaoInternal<ContentPermissionSet>Copyright © 2003–2023 Atlassian. All rights reserved.