public abstract class FilteredEntity<T extends org.neo4j.graphdb.Entity> extends BaseEntityWrapper<T>
Entity decorator that transparently filters out properties and (where relevant) other entities
according to the provided InclusionPolicies. Mutating operations are passed through to the decorated
Entity without modifications.| Modifier and Type | Field and Description |
|---|---|
protected InclusionPolicies |
policies |
protected T |
wrapped |
| Modifier | Constructor and Description |
|---|---|
protected |
FilteredEntity(T wrapped,
InclusionPolicies policies)
Create a new filtering decorator.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract PropertyInclusionPolicy<T> |
getPropertyInclusionPolicy()
Get appropriate property inclusion policy.
|
Iterable<String> |
getPropertyKeys() |
T |
getWrapped() |
boolean |
hasProperty(String key) |
addLabel, createRelationshipTo, delete, equals, getDegree, getDegree, getDegree, getDegree, getEndNode, getGraphDatabase, getId, getLabels, getProperty, getRelationships, getRelationships, getRelationships, getRelationships, getRelationships, getRelationshipTypes, getStartNode, getType, hashCode, hasLabel, removeLabel, removeProperty, self, setProperty, wrapNode, wrapRelationship, wrapRelationshipsgetAllProperties, getNodes, getOtherNode, getProperties, getProperty, getSingleRelationship, hasRelationship, hasRelationship, hasRelationship, hasRelationship, hasRelationship, isType, node, relationshipprotected final T extends org.neo4j.graphdb.Entity wrapped
protected final InclusionPolicies policies
protected FilteredEntity(T wrapped, InclusionPolicies policies)
wrapped - decorated entity.policies - for filtering.public T getWrapped()
protected abstract PropertyInclusionPolicy<T> getPropertyInclusionPolicy()
public boolean hasProperty(String key)
hasProperty in interface org.neo4j.graphdb.PropertyContainerhasProperty in class BaseEntityWrapper<T extends org.neo4j.graphdb.Entity>public Iterable<String> getPropertyKeys()
getPropertyKeys in interface org.neo4j.graphdb.PropertyContainergetPropertyKeys in class BaseEntityWrapper<T extends org.neo4j.graphdb.Entity>Copyright © 2013-2016–2020 Graph Aware Limited. All rights reserved.