Package com.composum.sling.core.servlet
Class NodeTreeServlet.DefaultTreeNodeStrategy
- java.lang.Object
-
- com.composum.sling.core.servlet.NodeTreeServlet.DefaultTreeNodeStrategy
-
- All Implemented Interfaces:
NodeTreeServlet.TreeNodeStrategy
- Enclosing class:
- NodeTreeServlet
public static class NodeTreeServlet.DefaultTreeNodeStrategy extends Object implements NodeTreeServlet.TreeNodeStrategy
-
-
Field Summary
Fields Modifier and Type Field Description protected ResourceFilter
filter
-
Constructor Summary
Constructors Constructor Description DefaultTreeNodeStrategy(ResourceFilter filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<org.apache.sling.api.resource.Resource>
getChildren(org.apache.sling.api.resource.Resource nodeResource)
String
getContentTypeKey(ResourceHandle resource, String prefix)
ResourceFilter
getFilter()
String
getTypeKey(ResourceHandle resource)
-
-
-
Field Detail
-
filter
protected final ResourceFilter filter
-
-
Constructor Detail
-
DefaultTreeNodeStrategy
public DefaultTreeNodeStrategy(ResourceFilter filter)
-
-
Method Detail
-
getChildren
public Iterable<org.apache.sling.api.resource.Resource> getChildren(org.apache.sling.api.resource.Resource nodeResource)
- Specified by:
getChildren
in interfaceNodeTreeServlet.TreeNodeStrategy
-
getFilter
public ResourceFilter getFilter()
- Specified by:
getFilter
in interfaceNodeTreeServlet.TreeNodeStrategy
-
getTypeKey
public String getTypeKey(ResourceHandle resource)
- Specified by:
getTypeKey
in interfaceNodeTreeServlet.TreeNodeStrategy
-
getContentTypeKey
public String getContentTypeKey(ResourceHandle resource, String prefix)
- Specified by:
getContentTypeKey
in interfaceNodeTreeServlet.TreeNodeStrategy
-
-