public interface StructureProvider
StructureProvider
is contributed using the com.sodius.mdw.server.structureProvider
extension point.
Clients may implement this interface. Clients are advised to use AbstractStructureProvider
as base implementation.
Modifier and Type | Method and Description |
---|---|
List<Node> |
getChildren(PropertySet properties,
String parentId)
Returns the list of child nodes of the specified parent node identifier.
|
List<Node> |
getRoots(PropertySet properties)
Returns the list of root nodes of the structure.
|
List<Node> getRoots(PropertySet properties) throws CoreException
properties
- options configuring the retrieval of the root nodes.
Those options are provided by the servlet request through headers or query parameters.CoreException
- if anything prevents from retrieving the nodes.List<Node> getChildren(PropertySet properties, String parentId) throws CoreException
properties
- options configuring the retrieval of the children nodes.
Those options are provided by the servlet request through headers or query parameters.parentId
- the identifier of the parent node.CoreException
- if anything prevents from retrieving the nodes.Node.getId()