Interface ObjectGraph
- All Known Implementing Classes:
EmptyObjectGraph, ObjectGraphImpl
public interface ObjectGraph
Read-only graph containing representations of an entity class that should be processed in entity-filtering. The
representations are twofolds: simple (primitive/non-filterable) fields and further-filterable fields (represented by
subgraphs).
Object graph instances are created for entity-filtering scopes that are obtained from entity annotations, configuration or
scopes defined on resource methods / classes (on server).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionClass<?> Get entity domain class of this graph.Get a set of all simple (non-filterable) fields of entity class.Get fields with the given parent path.Get a map of all further-filterable fields of entity class.getSubgraphs(String parent) Get subgraphs with the given parent path.
-
Method Details
-
getEntityClass
-
getFields
-
getFields
-
getSubgraphs
Map<String, ObjectGraph> getSubgraphs()Get a map of all further-filterable fields of entity class. Mappings are represented as:<field> -> <object-graph>
It is supposed that object graphs contained in this map would be processed further.- Returns:
- further-filterable map of fields.
-
getSubgraphs
Get subgraphs with the given parent path. The parent path, which may exist in the requested filtering scopes, is used for context to match against the subgraph level.- Parameters:
parent- name of parent field.- Returns:
- further-filterable map of fields.
-