Class ItemListLoader
java.lang.Object
net.sf.basedb.util.overview.loader.AbstractNodeLoader<I>
net.sf.basedb.util.overview.loader.BasicItemNodeLoader<ItemList>
net.sf.basedb.util.overview.loader.ItemListLoader
- All Implemented Interfaces:
NodeLoader<ItemList>
Node loader implementation for item lists. Item
lists can only be loaded as root nodes. The forward-loading
direction goes to the item that is member of the list.
- Since:
- 3.5
- Author:
- nicklas
-
Field Summary
Fields inherited from class net.sf.basedb.util.overview.loader.BasicItemNodeLoader
ALLOW_ROOT_NODE, allowAsRootNode, DENY_ROOT_NODE, factoryKey, nameGenerator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
loadForwardChildNodes
(DbControl dc, OverviewContext context, Node listNode) Loads the list members.loadMemberNodes
(BasicItemNodeLoader<T> loader, DbControl dc, OverviewContext context, Node listNode) Utiltity method to be used by other loaders to load members of an item list.protected void
loadPropertyChildNodes
(DbControl dc, OverviewContext context, Node listNode) Loads property nodes of a item list.Methods inherited from class net.sf.basedb.util.overview.loader.BasicItemNodeLoader
createItemNode, createRootNode, getNodeFactory, getNodeFactory, getNodeLoader, getNodeLoaderFactory, getNodeNameGenerator, getNodeValidator, getNodeValidatorFactory, postValidateFolder
Methods inherited from class net.sf.basedb.util.overview.loader.AbstractNodeLoader
createForwardNode, createPropertyNode, createReverseNode, loadChildNodes, loadChildNodesOfFolderNode, loadChildNodesOfItemNode, loadReverseChildNodes
-
Constructor Details
-
ItemListLoader
public ItemListLoader()
-
-
Method Details
-
loadPropertyChildNodes
Loads property nodes of a item list.- Overrides:
loadPropertyChildNodes
in classAbstractNodeLoader<ItemList>
-
loadForwardChildNodes
Loads the list members.- Overrides:
loadForwardChildNodes
in classAbstractNodeLoader<ItemList>
-
loadMemberNodes
public static <T extends BasicItem & Listable> void loadMemberNodes(BasicItemNodeLoader<T> loader, DbControl dc, OverviewContext context, Node listNode) Utiltity method to be used by other loaders to load members of an item list. The loader should be one that loadsListable
items. The member nodes are created as child nodes to the list node without any intermediate folder node.- Parameters:
loader
- The loader implementation to load member itemslistNode
- The parent item list node
-