public class JcrWorkspaceHierarchySupport extends Object implements HierarchySupport<javax.jcr.Item>
HierarchySupport
implementation for the JCR nodes.Constructor and Description |
---|
JcrWorkspaceHierarchySupport(JcrDatasourceDefinition jcrDatasourceDefinition,
javax.inject.Provider<info.magnolia.context.Context> contextProvider) |
Modifier and Type | Method and Description |
---|---|
Stream<javax.jcr.Item> |
getChildren(javax.jcr.Item parent) |
Optional<javax.jcr.Item> |
getDirectParent(javax.jcr.Item item) |
Stream<javax.jcr.Item> |
getParents(javax.jcr.Item item) |
Stream<javax.jcr.Item> |
getRootItems() |
@Inject public JcrWorkspaceHierarchySupport(JcrDatasourceDefinition jcrDatasourceDefinition, javax.inject.Provider<info.magnolia.context.Context> contextProvider)
public Stream<javax.jcr.Item> getRootItems()
getRootItems
in interface HierarchySupport<javax.jcr.Item>
public Stream<javax.jcr.Item> getChildren(javax.jcr.Item parent)
getChildren
in interface HierarchySupport<javax.jcr.Item>
public Stream<javax.jcr.Item> getParents(javax.jcr.Item item)
getParents
in interface HierarchySupport<javax.jcr.Item>
public Optional<javax.jcr.Item> getDirectParent(javax.jcr.Item item)
getDirectParent
in interface HierarchySupport<javax.jcr.Item>
Copyright © 2018 Magnolia International Ltd.. All rights reserved.