Package org.craftercms.studio.api.v2.dal
Interface ItemDAO
-
public interface ItemDAO
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearPreviousPath(String siteId, String path)
Clear previous path of the contentint
countAllContentItems(List<String> nonContentItemTypes)
Count all content items in the systemint
countPreviousPaths(String siteId, String previousPath)
Count items having previous path property set to given pathvoid
deleteById(long id)
Delete itemvoid
deleteBySiteAndPath(long siteId, String path)
Delete itemvoid
deleteBySiteAndPathForFolder(long siteId, String path)
Delete items for site and folder pathvoid
deleteItemsById(List<Long> itemIds)
Delete items by idvoid
deleteItemsForSite(long siteId)
Delete all items for sitevoid
deleteItemsForSiteAndPath(long siteId, List<String> paths)
Delete items for site and pathsList<String>
getChangeSetForSubtree(String siteId, String path, String likePath, List<String> nonContentItemTypes, long inProgressMask)
Get change set for subtreeList<Item>
getChildrenByPath(Long siteId, String path, String systemTypeFolder, String localeCode, String keyword, List<String> systemTypes, List<String> excludes, String sortStrategy, String order, int offset, int limit)
Get children for given path from databaseint
getChildrenByPathTotal(Long siteId, String path, String localeCode, String keyword, List<String> systemTypes, List<String> excludes)
Get total number of children for given pathList<Item>
getContentDashboard(String siteId, String path, String modifier, String contentType, long state, ZonedDateTime dateFrom, ZonedDateTime dateTo, String sort, String order, int offset, int limit)
Get result set for content dashboardint
getContentDashboardTotal(String siteId, String path, String modifier, String contentType, long state, ZonedDateTime dateFrom, ZonedDateTime dateTo)
Get total number of records for content dashboardList<Item>
getContentTypeUsages(String siteId, String contentType, String scriptPath)
Finds all items related to a given content-typeList<String>
getExistingRenamedChildrenOfMandatoryParentsForPublishing(String siteId, List<String> parents, long newMask, long modifiedMask)
List<Item>
getInProgressItems(String siteId, long inProgressMask)
Get in progress items from DBDetailedItem
getItemById(long id, String siteId, String systemTypeFolder, String completedState, String stagingEnvironment, String liveEnvironment)
Get item by idDetailedItem
getItemByPath(Long siteId, String path, String systemTypeFolder, String completedState, String stagingEnvironment, String liveEnvironment)
Get item for given path from databaseDetailedItem
getItemByPathPreferContent(Long siteId, String path, String systemTypeFolder, String completedState, String stagingEnvironment, String liveEnvironment)
Get item with prefer content option for given path from databaseDetailedItem
getItemBySiteIdAndPath(long siteId, String path, String systemTypeFolder, String completedState, String stagingEnvironment, String liveEnvironment)
Get item for given site and pathDetailedItem
getItemBySiteIdAndPathPreferContent(long siteId, String path, String systemTypeFolder, String completedState, String stagingEnvironment, String liveEnvironment)
Get item with prefer content option for given site and pathList<Item>
getItemStates(String siteId, String path, Long states, int offset, int limit)
Get item states for given filters by path regex and states maskint
getItemStatesTotal(String siteId, String path, Long states)
Get total number of item states records for given filters by path regex and states maskList<String>
getMandatoryParentsForPublishing(String siteId, List<String> possibleParents, long newMask, long modifiedMask)
Get mandatory parents for publishingList<String>
getSameCommitItems(String siteId, String path)
Get items edited on same commit id for given itemList<Item>
getSandboxItemsById(List<Long> itemIds, String systemTypeFolder)
Get sandbox items for given idsList<Item>
getSandboxItemsByIdPreferContent(List<Long> itemIds, String systemTypeFolder)
Get sandbox items for given ids with prefer content optionList<Item>
getSandboxItemsByPath(Long siteId, List<String> paths, String systemTypeFolder, boolean preferContent)
Get sandbox items for given pathsList<Item>
getSubmittedItems(String siteId, long submittedMask)
Get submitted items from DBList<String>
getSubtreeForDelete(String siteId, String likePath)
Get subtree for deletevoid
lockItemByPath(String siteId, String path, long lockOwnerId, long lockedBitOn, String systemTypeFolder)
Lock itemvoid
lockItemsByPath(String siteId, List<String> paths, long lockOwnerId, long lockedBitOn, String systemTypeFolder)
Lock itemsvoid
moveItem(String siteId, String oldPath, String newPath, Long parentId, String oldPreviewUrl, String newPreviewUrl, String label, long onStatesBitMap, long offStatesBitMap)
Move itemvoid
moveItems(String siteId, String oldPath, String newPath, Long parentId, String oldPreviewUrl, String newPreviewUrl, String label, long onStatesBitMap, long offStatesBitMap)
Move itemsvoid
resetStatesByIdBulk(List<Long> itemIds, long statesBitMap)
Reset items statevoid
resetStatesBySiteAndPathBulk(long siteId, List<String> paths, long statesBitMap)
Reset items statevoid
setStatesByIdBulk(List<Long> itemIds, long statesBitMap)
Set items statevoid
setStatesBySiteAndPathBulk(long siteId, List<String> paths, long statesBitMap)
Set items statevoid
unlockItemByPath(String siteId, String path, long lockedBitOff)
Lock itemvoid
updateCommitId(String siteId, String path, String commitId)
Update commit id for itemvoid
updateItem(Item item)
Update itemvoid
updateLastPublishedOn(String siteId, String path, ZonedDateTime lastPublishedOn)
Update last published date for itemvoid
updateLastPublishedOnBulk(String siteId, List<String> paths, ZonedDateTime lastPublishedOn)
Update last published date for itemvoid
updateNewPageChildren(String siteId, String folderPath)
When creating a new page in an already existing folder, we need to update the children of the folder to become the children of the page.void
updateStatesByIdBulk(List<Long> itemIds, long onStatesBitMap, long offStatesBitMap)
Update states to flip on list off states and flip off another list of states for itemsvoid
updateStatesByQuery(String siteId, String path, Long states, long setStatesMask, long resetStatesMask)
Update item state by queryvoid
updateStatesBySiteAndPathBulk(long siteId, Collection<String> paths, long onStatesBitMap, long offStatesBitMap)
Update states to flip on list off states and flip off another list of states for itemsvoid
updateStatesForSite(long siteId, long onStatesBitMap, long offStatesBitMap)
Update states to flip on list off states and flip off another list of states for itemsvoid
upsertEntries(List<Item> entries)
Insert or update itemsvoid
upsertEntry(Item item)
insert or update item
-
-
-
Method Detail
-
getChildrenByPathTotal
int getChildrenByPathTotal(@Param("siteId") Long siteId, @Param("path") String path, @Param("localeCode") String localeCode, @Param("keyword") String keyword, @Param("systemTypes") List<String> systemTypes, @Param("excludes") List<String> excludes)
Get total number of children for given path- Parameters:
siteId
- site identifierpath
- path to get children forlocaleCode
- local codekeyword
- filter by keywordsystemTypes
- filter by typeexcludes
- exclude items by path- Returns:
- total number of children
-
getChildrenByPath
List<Item> getChildrenByPath(@Param("siteId") Long siteId, @Param("path") String path, @Param("systemTypeFolder") String systemTypeFolder, @Param("localeCode") String localeCode, @Param("keyword") String keyword, @Param("systemTypes") List<String> systemTypes, @Param("excludes") List<String> excludes, @Param("sortStrategy") String sortStrategy, @Param("order") String order, @Param("offset") int offset, @Param("limit") int limit)
Get children for given path from database- Parameters:
siteId
- site identifierpath
- path to get children forsystemTypeFolder
- system type value for folderlocaleCode
- locale codekeyword
- filter by keywordsystemTypes
- filter by typeexcludes
- exclude items by pathsortStrategy
- sort strategyorder
- order of childrenoffset
- offset of the first record to returnlimit
- number of children to return- Returns:
- list of items (parent, level descriptor, children)
-
upsertEntry
void upsertEntry(Item item)
insert or update item- Parameters:
item
- item to insert/update
-
upsertEntries
void upsertEntries(@Param("entries") List<Item> entries)
Insert or update items- Parameters:
entries
- list of items to insert
-
getItemById
DetailedItem getItemById(@Param("id") long id, @Param("siteId") String siteId, @Param("systemTypeFolder") String systemTypeFolder, @Param("completedState") String completedState, @Param("stagingEnvironment") String stagingEnvironment, @Param("liveEnvironment") String liveEnvironment)
Get item by id- Parameters:
id
- item idsiteId
- site identifiersystemTypeFolder
- value for system type foldercompletedState
- completed stateliveEnvironment
- live environmentstagingEnvironment
- staging environment- Returns:
- item identified by given id
-
getItemBySiteIdAndPath
DetailedItem getItemBySiteIdAndPath(@Param("siteId") long siteId, @Param("path") String path, @Param("systemTypeFolder") String systemTypeFolder, @Param("completedState") String completedState, @Param("stagingEnvironment") String stagingEnvironment, @Param("liveEnvironment") String liveEnvironment)
Get item for given site and path- Parameters:
siteId
- site identifierpath
- path of the itemsystemTypeFolder
- value for system type foldercompletedState
- completed stateliveEnvironment
- live environmentstagingEnvironment
- staging environment- Returns:
- item for given site and path
-
getItemBySiteIdAndPathPreferContent
DetailedItem getItemBySiteIdAndPathPreferContent(@Param("siteId") long siteId, @Param("path") String path, @Param("systemTypeFolder") String systemTypeFolder, @Param("completedState") String completedState, @Param("stagingEnvironment") String stagingEnvironment, @Param("liveEnvironment") String liveEnvironment)
Get item with prefer content option for given site and path- Parameters:
siteId
- site identifierpath
- path of the itemsystemTypeFolder
- value for system type foldercompletedState
- completed stateliveEnvironment
- live environmentstagingEnvironment
- staging environment- Returns:
- item for given site and path
-
updateItem
void updateItem(Item item)
Update item- Parameters:
item
- item to update
-
deleteById
void deleteById(@Param("id") long id)
Delete item- Parameters:
id
- id of the item to delete
-
deleteBySiteAndPath
void deleteBySiteAndPath(@Param("siteId") long siteId, @Param("path") String path)
Delete item- Parameters:
siteId
- site identifierpath
- path of item to delete
-
setStatesBySiteAndPathBulk
void setStatesBySiteAndPathBulk(@Param("siteId") long siteId, @Param("paths") List<String> paths, @Param("statesBitMap") long statesBitMap)
Set items state- Parameters:
siteId
- site identifierpaths
- paths of itemsstatesBitMap
- states bit map to be set
-
setStatesByIdBulk
void setStatesByIdBulk(@Param("itemIds") List<Long> itemIds, @Param("statesBitMap") long statesBitMap)
Set items state- Parameters:
itemIds
- ids of itemsstatesBitMap
- states bit map to be set
-
resetStatesBySiteAndPathBulk
void resetStatesBySiteAndPathBulk(@Param("siteId") long siteId, @Param("paths") List<String> paths, @Param("statesBitMap") long statesBitMap)
Reset items state- Parameters:
siteId
- site identifierpaths
- paths of itemsstatesBitMap
- states bit map to be reset
-
resetStatesByIdBulk
void resetStatesByIdBulk(@Param("itemIds") List<Long> itemIds, @Param("statesBitMap") long statesBitMap)
Reset items state- Parameters:
itemIds
- ids of itemsstatesBitMap
- states bit map to be reset
-
updateStatesBySiteAndPathBulk
void updateStatesBySiteAndPathBulk(@Param("siteId") long siteId, @Param("paths") Collection<String> paths, @Param("onStatesBitMap") long onStatesBitMap, @Param("offStatesBitMap") long offStatesBitMap)
Update states to flip on list off states and flip off another list of states for items- Parameters:
siteId
- site identifierpaths
- list of paths to update states foronStatesBitMap
- state bitmap to flip onoffStatesBitMap
- state bitmap to flip off
-
updateStatesByIdBulk
void updateStatesByIdBulk(@Param("itemIds") List<Long> itemIds, @Param("onStatesBitMap") long onStatesBitMap, @Param("offStatesBitMap") long offStatesBitMap)
Update states to flip on list off states and flip off another list of states for items- Parameters:
itemIds
- list of item identifiersonStatesBitMap
- state bitmap to flip onoffStatesBitMap
- state bitmap to flip off
-
updateStatesForSite
void updateStatesForSite(@Param("siteId") long siteId, @Param("onStatesBitMap") long onStatesBitMap, @Param("offStatesBitMap") long offStatesBitMap)
Update states to flip on list off states and flip off another list of states for items- Parameters:
siteId
- site identifieronStatesBitMap
- state bitmap to flip onoffStatesBitMap
- state bitmap to flip off
-
deleteItemsForSite
void deleteItemsForSite(@Param("siteId") long siteId)
Delete all items for site- Parameters:
siteId
- site id
-
deleteItemsById
void deleteItemsById(@Param("itemIds") List<Long> itemIds)
Delete items by id- Parameters:
itemIds
- item ids
-
deleteItemsForSiteAndPath
void deleteItemsForSiteAndPath(@Param("siteId") long siteId, @Param("paths") List<String> paths)
Delete items for site and paths- Parameters:
siteId
- site idpaths
- paths of the items
-
deleteBySiteAndPathForFolder
void deleteBySiteAndPathForFolder(@Param("siteId") long siteId, @Param("folderPath") String path)
Delete items for site and folder path- Parameters:
siteId
- site idpath
- path of the folder
-
getContentDashboardTotal
int getContentDashboardTotal(@Param("siteId") String siteId, @Param("path") String path, @Param("modifier") String modifier, @Param("contentType") String contentType, @Param("state") long state, @Param("dateFrom") ZonedDateTime dateFrom, @Param("dateTo") ZonedDateTime dateTo)
Get total number of records for content dashboard- Parameters:
siteId
- site identifierpath
- path regular expression to apply as filter for result setmodifier
- filter results by usercontentType
- filter results by content typestate
- filter results by statedateFrom
- lower boundary for modified datedateTo
- upper boundary for modified date- Returns:
- total number of records in result set
-
getContentDashboard
List<Item> getContentDashboard(@Param("siteId") String siteId, @Param("path") String path, @Param("modifier") String modifier, @Param("contentType") String contentType, @Param("state") long state, @Param("dateFrom") ZonedDateTime dateFrom, @Param("dateTo") ZonedDateTime dateTo, @Param("sortStrategy") String sort, @Param("order") String order, @Param("offset") int offset, @Param("limit") int limit)
Get result set for content dashboard- Parameters:
siteId
- site identifierpath
- path regular expression to apply as filter for result setmodifier
- filter results by usercontentType
- filter results by content typestate
- filter results by statedateFrom
- lower boundary for modified datedateTo
- upper boundary for modified datesort
- sort results by columnorder
- order of resultsoffset
- offset of the first record in result setlimit
- number of records to return- Returns:
- list of item metadata records
-
moveItem
void moveItem(@Param("siteId") String siteId, @Param("oldPath") String oldPath, @Param("newPath") String newPath, @Param("parentId") Long parentId, @Param("oldPreviewUrl") String oldPreviewUrl, @Param("newPreviewUrl") String newPreviewUrl, @Param("label") String label, @Param("onStatesBitMap") long onStatesBitMap, @Param("offStatesBitMap") long offStatesBitMap)
Move item- Parameters:
siteId
- site identifieroldPath
- old pathnewPath
- new pathparentId
- new parent IDoldPreviewUrl
- old preview urlnewPreviewUrl
- new preview urllabel
- the new labelonStatesBitMap
- state bitmap to flip onoffStatesBitMap
- state bitmap to flip off
-
getItemByPath
DetailedItem getItemByPath(@Param("siteId") Long siteId, @Param("path") String path, @Param("systemTypeFolder") String systemTypeFolder, @Param("completedState") String completedState, @Param("stagingEnvironment") String stagingEnvironment, @Param("liveEnvironment") String liveEnvironment)
Get item for given path from database- Parameters:
siteId
- site identifierpath
- path of the itemsystemTypeFolder
- value for system type foldercompletedState
- completed stateliveEnvironment
- live environmentstagingEnvironment
- staging environment- Returns:
- item
-
getItemByPathPreferContent
DetailedItem getItemByPathPreferContent(@Param("siteId") Long siteId, @Param("path") String path, @Param("systemTypeFolder") String systemTypeFolder, @Param("completedState") String completedState, @Param("stagingEnvironment") String stagingEnvironment, @Param("liveEnvironment") String liveEnvironment)
Get item with prefer content option for given path from database- Parameters:
siteId
- site identifierpath
- path of the itemsystemTypeFolder
- value for system type foldercompletedState
- completed stateliveEnvironment
- live environmentstagingEnvironment
- staging environment- Returns:
- item
-
moveItems
void moveItems(@Param("siteId") String siteId, @Param("oldPath") String oldPath, @Param("newPath") String newPath, @Param("parentId") Long parentId, @Param("oldPreviewUrl") String oldPreviewUrl, @Param("newPreviewUrl") String newPreviewUrl, @Param("label") String label, @Param("onStatesBitMap") long onStatesBitMap, @Param("offStatesBitMap") long offStatesBitMap)
Move items- Parameters:
siteId
- site identifieroldPath
- old pathnewPath
- new pathparentId
- new parent id, if null parent will not be changedoldPreviewUrl
- old preview urlnewPreviewUrl
- new preview urllabel
- the new labelonStatesBitMap
- state bitmap to flip onoffStatesBitMap
- state bitmap to flip off
-
getSandboxItemsByPath
List<Item> getSandboxItemsByPath(@Param("siteId") Long siteId, @Param("paths") List<String> paths, @Param("systemTypeFolder") String systemTypeFolder, @Param("preferContent") boolean preferContent)
Get sandbox items for given paths- Parameters:
siteId
- site identifierpaths
- paths to get items forsystemTypeFolder
- value for system type folderpreferContent
- indicates if pages should be returned instead of folders when available- Returns:
- list of items
-
getSandboxItemsByIdPreferContent
List<Item> getSandboxItemsByIdPreferContent(@Param("itemIds") List<Long> itemIds, @Param("systemTypeFolder") String systemTypeFolder)
Get sandbox items for given ids with prefer content option- Parameters:
itemIds
- item idssystemTypeFolder
- value for system type folder- Returns:
- list of items
-
getSandboxItemsById
List<Item> getSandboxItemsById(@Param("itemIds") List<Long> itemIds, @Param("systemTypeFolder") String systemTypeFolder)
Get sandbox items for given ids- Parameters:
itemIds
- item idssystemTypeFolder
- value for system type folder- Returns:
- list of items
-
getMandatoryParentsForPublishing
List<String> getMandatoryParentsForPublishing(@Param("siteId") String siteId, @Param("possibleParents") List<String> possibleParents, @Param("newMask") long newMask, @Param("modifiedMask") long modifiedMask)
Get mandatory parents for publishing- Parameters:
siteId
- site identifierpossibleParents
- possible parentsnewMask
- states mask for detecting new itemsmodifiedMask
- states mask for detecting modified items- Returns:
- list of mandatory parents
-
getExistingRenamedChildrenOfMandatoryParentsForPublishing
List<String> getExistingRenamedChildrenOfMandatoryParentsForPublishing(@Param("siteId") String siteId, @Param("parents") List<String> parents, @Param("newMask") long newMask, @Param("modifiedMask") long modifiedMask)
-
countAllContentItems
int countAllContentItems(@Param("nonContentItemTypes") List<String> nonContentItemTypes)
Count all content items in the system- Returns:
- number of content items in the system
-
clearPreviousPath
void clearPreviousPath(@Param("siteId") String siteId, @Param("path") String path)
Clear previous path of the content- Parameters:
siteId
- site identifierpath
- path of the content
-
getInProgressItems
List<Item> getInProgressItems(@Param("siteId") String siteId, @Param("inProgressMask") long inProgressMask)
Get in progress items from DB- Parameters:
siteId
- site identifierinProgressMask
- in progress states mask- Returns:
- list of items
-
getSubmittedItems
List<Item> getSubmittedItems(@Param("siteId") String siteId, @Param("submittedMask") long submittedMask)
Get submitted items from DB- Parameters:
siteId
- site identifiersubmittedMask
- mask with submitted states turned on- Returns:
- list of items
-
countPreviousPaths
int countPreviousPaths(@Param("siteId") String siteId, @Param("previousPath") String previousPath)
Count items having previous path property set to given path- Parameters:
siteId
- site identifierpreviousPath
- path to check- Returns:
- number of items
-
updateCommitId
void updateCommitId(@Param("siteId") String siteId, @Param("path") String path, @Param("commitId") String commitId)
Update commit id for item- Parameters:
siteId
- site identifierpath
- path of the itemcommitId
- commit id
-
getChangeSetForSubtree
List<String> getChangeSetForSubtree(@Param("siteId") String siteId, @Param("path") String path, @Param("likePath") String likePath, @Param("nonContentItemTypes") List<String> nonContentItemTypes, @Param("inProgressMask") long inProgressMask)
Get change set for subtree- Parameters:
siteId
- site identifierpath
- path of subtree rootlikePath
- like path for querynonContentItemTypes
- non content item typesinProgressMask
- in progress state mask- Returns:
- list of items
-
getSameCommitItems
List<String> getSameCommitItems(@Param("siteId") String siteId, @Param("path") String path)
Get items edited on same commit id for given item- Parameters:
siteId
- site identifierpath
- path of content item- Returns:
- list of items paths
-
updateLastPublishedOn
void updateLastPublishedOn(@Param("siteId") String siteId, @Param("path") String path, @Param("lastPublishedOn") ZonedDateTime lastPublishedOn)
Update last published date for item- Parameters:
siteId
- site identifierpath
- path of the itemlastPublishedOn
- published date
-
updateLastPublishedOnBulk
void updateLastPublishedOnBulk(@Param("siteId") String siteId, @Param("paths") List<String> paths, @Param("lastPublishedOn") ZonedDateTime lastPublishedOn)
Update last published date for item- Parameters:
siteId
- site identifierpaths
- list of pathslastPublishedOn
- published date
-
getContentTypeUsages
List<Item> getContentTypeUsages(@Param("siteId") String siteId, @Param("contentType") String contentType, @Param("scriptPath") String scriptPath)
Finds all items related to a given content-type- Parameters:
siteId
- the id of the sitecontentType
- the id of the content-typescriptPath
- the path of the controller script- Returns:
- the list of items
-
lockItemByPath
void lockItemByPath(@Param("siteId") String siteId, @Param("path") String path, @Param("lockOwnerId") long lockOwnerId, @Param("lockedBitOn") long lockedBitOn, @Param("systemTypeFolder") String systemTypeFolder)
Lock item- Parameters:
siteId
- site identifierpath
- path of the itemlockOwnerId
- lock ownerlockedBitOn
- state bit mask with LOCKED bit onsystemTypeFolder
- value for system type folder
-
lockItemsByPath
void lockItemsByPath(@Param("siteId") String siteId, @Param("paths") List<String> paths, @Param("lockOwnerId") long lockOwnerId, @Param("lockedBitOn") long lockedBitOn, @Param("systemTypeFolder") String systemTypeFolder)
Lock items- Parameters:
siteId
- site identifierpaths
- list of item pathslockOwnerId
- lock ownerlockedBitOn
- state bit mask with LOCKED bit onsystemTypeFolder
- value for system type folder
-
unlockItemByPath
void unlockItemByPath(@Param("siteId") String siteId, @Param("path") String path, @Param("lockedBitOff") long lockedBitOff)
Lock item- Parameters:
siteId
- site identifierpath
- path of the itemlockedBitOff
- state bit mask with LOCKED bit off
-
getItemStatesTotal
int getItemStatesTotal(@Param("siteId") String siteId, @Param("path") String path, @Param("statesBitMap") Long states)
Get total number of item states records for given filters by path regex and states mask- Parameters:
siteId
- site identifierpath
- path regex to filter itemsstates
- states mask to filter items by state- Returns:
- number of records
-
getItemStates
List<Item> getItemStates(@Param("siteId") String siteId, @Param("path") String path, @Param("statesBitMap") Long states, @Param("offset") int offset, @Param("limit") int limit)
Get item states for given filters by path regex and states mask- Parameters:
siteId
- site identifierpath
- path regex to filter itemsstates
- states mask to filter items by stateoffset
- offset for the first record in result setlimit
- number of item states records to return- Returns:
- list of sandbox items
-
updateStatesByQuery
void updateStatesByQuery(@Param("siteId") String siteId, @Param("path") String path, @Param("statesBitMap") Long states, @Param("onStatesBitMap") long setStatesMask, @Param("offStatesBitMap") long resetStatesMask)
Update item state by query- Parameters:
siteId
- site identifierpath
- path regex to filter items to be updatedstates
- states bitmap mask to filter items to be updatedsetStatesMask
- states bitmap mask to set states onresetStatesMask
- states bitmap mask to set states off
-
getSubtreeForDelete
List<String> getSubtreeForDelete(@Param("siteId") String siteId, @Param("likePath") String likePath)
Get subtree for delete- Parameters:
siteId
- site identifierlikePath
- like path for query- Returns:
- list of items
-
updateNewPageChildren
void updateNewPageChildren(@Param("siteId") String siteId, @Param("path") String folderPath)
When creating a new page in an already existing folder, we need to update the children of the folder to become the children of the page. This method will find the direct children of the given folder, and update their parent id to be the id the new page (the item with path = folderPath + /index.xml).- Parameters:
siteId
- site identifierfolderPath
- path of the folder
-
-