@Internal public final class AncestorsDao extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addsAncestor(org.springframework.jdbc.core.JdbcOperations jdbc,
Long pageId,
Long ancestorId,
int position)
Adds one record to CONFANCESTORS table
|
static void |
deleteAllAncestors(org.springframework.jdbc.core.JdbcOperations jdbc,
Long pageId)
Deletes all ancestors for the particular page
|
static Map<Long,List<Long>> |
getAllChildrenFromDB(org.springframework.jdbc.core.JdbcOperations jdbc,
List<Long> pageIdList)
Returns map with children, where keys are passed page ids
and values are list of corresponding children
|
static Map<Long,List<Long>> |
getAncestorsFromConfancestorsTable(org.springframework.jdbc.core.JdbcOperations jdbc,
List<Long> pageIdList)
getAncestorsFromConfancestorsTable reads ancestors from confancestors table in batches
It receives a list of page ids and returns a map where keys are page ids and values are lists of ancestors
Just for better performance
|
static List<Long> |
getTopLevelPages(org.springframework.jdbc.core.JdbcOperations jdbc,
Long spaceId)
getTopLevelPages returns a list of top-level pages in the space
top-level means that the page does not have a parent
|
public static Map<Long,List<Long>> getAllChildrenFromDB(@Nonnull org.springframework.jdbc.core.JdbcOperations jdbc, @Nonnull List<Long> pageIdList)
jdbc - pageIdList - - list of pagespublic static Map<Long,List<Long>> getAncestorsFromConfancestorsTable(@Nonnull org.springframework.jdbc.core.JdbcOperations jdbc, @Nonnull List<Long> pageIdList)
public static List<Long> getTopLevelPages(@Nonnull org.springframework.jdbc.core.JdbcOperations jdbc, @Nonnull Long spaceId)
public static void deleteAllAncestors(@Nonnull org.springframework.jdbc.core.JdbcOperations jdbc, @Nonnull Long pageId)
Copyright © 2003–2019 Atlassian. All rights reserved.