public class DenormalisedContentViewPermissionDao extends Object
Constructor and Description |
---|
DenormalisedContentViewPermissionDao(org.hibernate.SessionFactory sessionFactory) |
Modifier and Type | Method and Description |
---|---|
void |
add(DenormalisedContentViewPermission denormalisedContentViewPermission)
Adds a new record.
|
void |
add(List<DenormalisedContentViewPermission> permissionsToAdd)
Adds a list of records.
|
Map<Long,Set<Long>> |
getAllExistingSidsForPages(Collection<Long> pageIdList)
Finds all sids having access to content pages.
|
Map<Long,List<SimpleContent>> |
getAllVisibleChildren(Collection<Long> parentIds,
Collection<Long> sidIdList,
boolean permissionExempt)
Returns all visible children for the provided set of parent ids
|
List<SimpleContent> |
getAllVisibleTopLevelPages(long spaceId,
Set<Long> sids,
boolean permissionExempt)
Return all visible top-level pages.
|
List<SimpleContent> |
getDenormalisedContentList(Set<Long> pageIdSet)
Returns a list of simple content pages.
|
List<Long> |
getSimpleContentIdsInRange(Long fromId,
Long toId) |
Set<Long> |
getVisiblePages(Set<Long> sids,
Set<Long> pageIds)
Returns only visible pages from the provided page id list.
|
List<SimpleContent> |
getVisiblePagesFromSpace(long spaceId,
Collection<Long> sidIdList,
boolean permissionExempt)
Returns all visible pages from space.
|
void |
removeAllDenormalisedRecordsForPages(Set<Long> pageIdsToRemove) |
void |
removeAllSimpleContentRecordsForPages(Set<Long> pageIdsToRemove) |
void |
removeRecords(Long pageId,
Set<Long> sidIds)
Removes records from denormalised view permissions table.
|
void |
saveSimpleContent(SimpleContent simpleContent) |
public DenormalisedContentViewPermissionDao(org.hibernate.SessionFactory sessionFactory)
public Map<Long,Set<Long>> getAllExistingSidsForPages(Collection<Long> pageIdList)
pageIdList
- - set of page ids.public void removeRecords(Long pageId, Set<Long> sidIds)
pageId
- page idsidIds
- set of sids to removepublic void removeAllDenormalisedRecordsForPages(Set<Long> pageIdsToRemove)
public void removeAllSimpleContentRecordsForPages(Set<Long> pageIdsToRemove)
public void add(DenormalisedContentViewPermission denormalisedContentViewPermission)
denormalisedContentViewPermission
- record to addpublic void add(List<DenormalisedContentViewPermission> permissionsToAdd)
permissionsToAdd
- list of records.public List<SimpleContent> getVisiblePagesFromSpace(long spaceId, Collection<Long> sidIdList, boolean permissionExempt)
spaceId
- space idsidIdList
- sid idspermissionExempt
- public Map<Long,List<SimpleContent>> getAllVisibleChildren(Collection<Long> parentIds, Collection<Long> sidIdList, boolean permissionExempt)
parentIds
- parent idssidIdList
- sid idspermissionExempt
- public List<SimpleContent> getAllVisibleTopLevelPages(long spaceId, Set<Long> sids, boolean permissionExempt)
spaceId
- space idsids
- sid idspermissionExempt
- if true, permissions should not be checkedpublic List<SimpleContent> getDenormalisedContentList(Set<Long> pageIdSet)
public void saveSimpleContent(SimpleContent simpleContent)
public Set<Long> getVisiblePages(Set<Long> sids, Set<Long> pageIds)
sids
- sids sidspageIds
- page ids pages ids to checkCopyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences