Class HibernateContentPermissionSetDao
- java.lang.Object
- 
- org.springframework.dao.support.DaoSupport
- 
- com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDao<ContentPermissionSet>
- 
- com.atlassian.confluence.security.persistence.dao.hibernate.HibernateContentPermissionSetDao
 
 
 
- 
- All Implemented Interfaces:
- ObjectDao,- ObjectDaoInternal<ContentPermissionSet>,- ContentPermissionSetDaoInternal,- ContentPermissionSetDao,- org.springframework.beans.factory.InitializingBean
 
 public class HibernateContentPermissionSetDao extends HibernateObjectDao<ContentPermissionSet> implements ContentPermissionSetDaoInternal 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDaoHibernateObjectDao.Cacheability
 
- 
 - 
Constructor SummaryConstructors Constructor Description HibernateContentPermissionSetDao()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentPermissionSetgetById(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,List<ContentPermissionSet>>getInheritedContentPermissionSets(Collection<Long> pageIds)Get all inheritedContentPermissionSets for the given page IDs.Map<Long,Set<ContentPermissionSet>>getPermissionSets(String spaceKey, List<Long> contentIds)Retrieves theContentPermissionSetof contents specified by the contentIds parameter given the spaceClass<ContentPermissionSet>getPersistentClass()Gets the type ofEntityObjectthis Dao works with.- 
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDaoapplyTransactionTimeout, 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, getSessionFactory, index, indexEntity, refresh, refreshEntity, reIndex, reIndexEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity, setEventPublisher, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, unIndexEntity, uniqueResult, updateEntityModificationData, updateModificationData
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.atlassian.confluence.internal.persistence.ObjectDaoInternalfindAll, findAllSorted, findAllSorted, findByClassIds, findByClassIdsFiltered, refresh, refreshEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity
 
- 
 
- 
- 
- 
Method Detail- 
getByIdpublic ContentPermissionSet getById(long id) - Specified by:
- getByIdin interface- ContentPermissionSetDao
 
 - 
getExplicitPermissionSetsForpublic Map<Long,List<ContentPermissionSet>> getExplicitPermissionSetsFor(Collection<Long> ids) Description copied from interface:ContentPermissionSetDaoGet 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.- Specified by:
- getExplicitPermissionSetsForin interface- ContentPermissionSetDao
- Parameters:
- ids- id of content to query
- Returns:
- permission set map
 
 - 
getInheritedContentPermissionSetspublic List<ContentPermissionSet> getInheritedContentPermissionSets(Page page, String type) - Specified by:
- getInheritedContentPermissionSetsin interface- ContentPermissionSetDao
- Returns:
- a list of ContentPermissionSets associated with the ancestors of this page objectThe supplied page object must not be a root level page. The query is redundant for page without parents. 
 
 - 
getInheritedContentPermissionSetspublic Map<Long,List<ContentPermissionSet>> getInheritedContentPermissionSets(Collection<Long> pageIds) Description copied from interface:ContentPermissionSetDaoInternalGet all inheritedContentPermissionSets for the given page IDs.- Specified by:
- getInheritedContentPermissionSetsin interface- ContentPermissionSetDaoInternal
 
 - 
getPermissionSetspublic Map<Long,Set<ContentPermissionSet>> getPermissionSets(String spaceKey, List<Long> contentIds) Description copied from interface:ContentPermissionSetDaoRetrieves theContentPermissionSetof contents specified by the contentIds parameter given the space- Specified by:
- getPermissionSetsin interface- ContentPermissionSetDao
- Parameters:
- spaceKey- - key of Space
- contentIds- - 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
- See Also:
- ContentPermissionSet
 
 - 
getContentIdsWithPermissionSetpublic List<Long> getContentIdsWithPermissionSet(String spaceKey) Description copied from interface:ContentPermissionSetDaoGets 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.- Specified by:
- getContentIdsWithPermissionSetin interface- ContentPermissionSetDao
- Parameters:
- spaceKey- - key of space
- Returns:
- the list of content id
 
 - 
getPersistentClasspublic Class<ContentPermissionSet> getPersistentClass() Description copied from interface:ObjectDaoInternalGets the type ofEntityObjectthis Dao works with.- Specified by:
- getPersistentClassin interface- ObjectDao
- Specified by:
- getPersistentClassin interface- ObjectDaoInternal<ContentPermissionSet>
- Returns:
- the type
 
 
- 
 
-