Class GroupNode
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<String,Object>
-
- com.composum.sling.core.pckgmgr.regpckg.tree.AbstractNode
-
- com.composum.sling.core.pckgmgr.regpckg.tree.GroupNode
-
- All Implemented Interfaces:
RegistryItem
,Serializable
,Cloneable
,Map<String,Object>
public class GroupNode extends AbstractNode
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
-
Fields inherited from class com.composum.sling.core.pckgmgr.regpckg.tree.AbstractNode
KEY_ITEMS, KEY_LOADED, KEY_NAME, KEY_PATH, KEY_STATE, KEY_TEXT, KEY_TYPE
-
-
Constructor Summary
Constructors Constructor Description GroupNode(RegistryItem parent, String parentPath, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PackageNode
addPackage(String registryNamespace, org.apache.jackrabbit.vault.packaging.PackageId id)
protected void
combineChildren(GroupNode otherNode)
This shouldn't be called, but we make sure it isn't, because the super implementation is wrong here.GroupNode
getGroup(String name)
RegistryItem
getItem(String name)
void
load(BeanContext context)
Loads all details of this node from the package(s) and makes sure all children (RegistryItem.getItems()
) are present, though not necessarily loaded.void
loadForItems(BeanContext context)
Makes sureRegistryItem.getItems()
are present, though not necessarily loaded.-
Methods inherited from class com.composum.sling.core.pckgmgr.regpckg.tree.AbstractNode
compactSubTree, compactTree, equals, getItems, getItemsMap, getName, getParent, getPath, getText, getType, hashCode, isLoaded, setLoaded, toJson, toTree, toTreeChildren, toTreeProperties, toTreeState
-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Methods inherited from class java.util.AbstractMap
toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
getItem
@Nullable public RegistryItem getItem(@Nonnull String name)
- Specified by:
getItem
in interfaceRegistryItem
- Overrides:
getItem
in classAbstractNode
-
load
public void load(@Nonnull BeanContext context)
Description copied from interface:RegistryItem
Loads all details of this node from the package(s) and makes sure all children (RegistryItem.getItems()
) are present, though not necessarily loaded.
-
loadForItems
public void loadForItems(@Nonnull BeanContext context) throws IOException
Description copied from interface:RegistryItem
Makes sureRegistryItem.getItems()
are present, though not necessarily loaded. might or might not trigger aRegistryItem.load(BeanContext)
if that's necessary for that. (Optimized version ofRegistryItem.load(BeanContext)
if we just need theRegistryItem.getItems()
).- Throws:
IOException
-
addPackage
public PackageNode addPackage(@Nonnull String registryNamespace, @Nonnull org.apache.jackrabbit.vault.packaging.PackageId id)
-
combineChildren
protected void combineChildren(GroupNode otherNode)
This shouldn't be called, but we make sure it isn't, because the super implementation is wrong here.- Overrides:
combineChildren
in classAbstractNode
-
-