public class DbHierarchy extends Hierarchy
| Constructor and Description |
|---|
DbHierarchy(String code,
short levels,
short sectionSize) |
DbHierarchy(String code,
short levels,
short sectionSize,
DbHierarchyStorage storage) |
| Modifier and Type | Method and Description |
|---|---|
HierarchyItem |
createItem(@NonNull String externalId,
@NonNull String withParent) |
HierarchyItem |
createItem(@NonNull String externalId,
@NonNull String withParent,
String before) |
HierarchyItem |
createRootItem(@NonNull String externalId) |
HierarchyItem |
createRootItem(@NonNull String externalId,
String before) |
void |
moveItemAfter(@NonNull String externalId,
@NonNull String after) |
void |
moveItemBefore(@NonNull String externalId,
@NonNull String before) |
void |
moveItemBetweenLevelsAfter(@NonNull String externalId,
@NonNull String after) |
void |
moveItemBetweenLevelsAfter(@NonNull String externalId,
@NonNull String withParent,
@NonNull String after) |
void |
moveItemBetweenLevelsBefore(@NonNull String externalId,
@NonNull String before) |
void |
moveItemBetweenLevelsBefore(@NonNull String externalId,
@NonNull String withParent,
@NonNull String before) |
void |
moveItemBetweenLevelsFirst(@NonNull String externalId) |
void |
moveItemBetweenLevelsFirst(@NonNull String externalId,
@NonNull String withParent) |
void |
moveItemBetweenLevelsLast(@NonNull String externalId) |
void |
moveItemBetweenLevelsLast(@NonNull String externalId,
@NonNull String withParent) |
void |
moveItemToFirst(@NonNull String externalId) |
void |
moveItemToLast(@NonNull String externalId) |
void |
removeItem(@NonNull String externalId) |
void |
setStorage(HierarchyStorage storage) |
canEqual, equals, getChildItems, getCode, getItem, getLeafItems, getLevels, getParentItem, getParentItems, getRootItems, getSectionSize, getStorage, hashCode, toStringpublic DbHierarchy(String code, short levels, short sectionSize)
public DbHierarchy(String code, short levels, short sectionSize, DbHierarchyStorage storage)
public void setStorage(HierarchyStorage storage)
setStorage in class Hierarchypublic HierarchyItem createRootItem(@NonNull @NonNull String externalId) throws SectionExhausted
createRootItem in class HierarchySectionExhaustedpublic HierarchyItem createRootItem(@NonNull @NonNull String externalId, String before) throws PivotHierarchyNodeNotFound, SectionExhausted
createRootItem in class HierarchyPivotHierarchyNodeNotFoundSectionExhaustedpublic HierarchyItem createItem(@NonNull @NonNull String externalId, @NonNull @NonNull String withParent) throws PivotHierarchyNodeNotFound, SectionExhausted, MaxLevelExceeded
createItem in class HierarchyPivotHierarchyNodeNotFoundSectionExhaustedMaxLevelExceededpublic HierarchyItem createItem(@NonNull @NonNull String externalId, @NonNull @NonNull String withParent, String before) throws PivotHierarchyNodeNotFound, SectionExhausted, MaxLevelExceeded
createItem in class HierarchyPivotHierarchyNodeNotFoundSectionExhaustedMaxLevelExceededpublic void removeItem(@NonNull
@NonNull String externalId)
throws PivotHierarchyNodeNotFound
removeItem in class HierarchyPivotHierarchyNodeNotFoundpublic void moveItemBetweenLevelsBefore(@NonNull
@NonNull String externalId,
@NonNull
@NonNull String withParent,
@NonNull
@NonNull String before)
moveItemBetweenLevelsBefore in class Hierarchypublic void moveItemBetweenLevelsBefore(@NonNull
@NonNull String externalId,
@NonNull
@NonNull String before)
moveItemBetweenLevelsBefore in class Hierarchypublic void moveItemBetweenLevelsAfter(@NonNull
@NonNull String externalId,
@NonNull
@NonNull String withParent,
@NonNull
@NonNull String after)
moveItemBetweenLevelsAfter in class Hierarchypublic void moveItemBetweenLevelsAfter(@NonNull
@NonNull String externalId,
@NonNull
@NonNull String after)
moveItemBetweenLevelsAfter in class Hierarchypublic void moveItemBetweenLevelsFirst(@NonNull
@NonNull String externalId)
moveItemBetweenLevelsFirst in class Hierarchypublic void moveItemBetweenLevelsFirst(@NonNull
@NonNull String externalId,
@NonNull
@NonNull String withParent)
moveItemBetweenLevelsFirst in class Hierarchypublic void moveItemBetweenLevelsLast(@NonNull
@NonNull String externalId,
@NonNull
@NonNull String withParent)
moveItemBetweenLevelsLast in class Hierarchypublic void moveItemBetweenLevelsLast(@NonNull
@NonNull String externalId)
moveItemBetweenLevelsLast in class Hierarchypublic void moveItemBefore(@NonNull
@NonNull String externalId,
@NonNull
@NonNull String before)
throws PivotHierarchyNodeNotFound
moveItemBefore in class HierarchyPivotHierarchyNodeNotFoundpublic void moveItemAfter(@NonNull
@NonNull String externalId,
@NonNull
@NonNull String after)
throws PivotHierarchyNodeNotFound
moveItemAfter in class HierarchyPivotHierarchyNodeNotFoundpublic void moveItemToFirst(@NonNull
@NonNull String externalId)
throws PivotHierarchyNodeNotFound
moveItemToFirst in class HierarchyPivotHierarchyNodeNotFoundpublic void moveItemToLast(@NonNull
@NonNull String externalId)
throws PivotHierarchyNodeNotFound
moveItemToLast in class HierarchyPivotHierarchyNodeNotFoundCopyright © 2020 FG Forrest, a.s.. All rights reserved.