Class EntityResolveResult
java.lang.Object
ch.tocco.nice2.rest.entity.impl.beans.factories.path.ResolveResult
ch.tocco.nice2.rest.entity.impl.beans.factories.path.EntityResolveResult
This resolve results represents a single entity.
Get the entity via
getEntity()
.-
Field Summary
Fields inherited from class ch.tocco.nice2.rest.entity.impl.beans.factories.path.ResolveResult
path
-
Constructor Summary
ConstructorDescriptionEntityResolveResult
(Path path, @Nullable Entity baseEntity, RelationModel relationModel, @Nullable Entity resolvedEntity) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Get the resolved entity.int
hashCode()
resolve
(Path.PathElement pathElement, PathResolverContext pathResolverContext) long
size()
toString()
Methods inherited from class ch.tocco.nice2.rest.entity.impl.beans.factories.path.ResolveResult
appendPathElement, getPath
-
Constructor Details
-
EntityResolveResult
public EntityResolveResult(Path path, @Nullable @Nullable Entity baseEntity, RelationModel relationModel, @Nullable @Nullable Entity resolvedEntity)
-
-
Method Details
-
getEntityModel
-
getEntity
Get the resolved entity.- Returns:
- the entity or
Optional.empty()
if it could not be found (because it doesn't exist or because of missing read rights).
-
checkWritable
public boolean checkWritable()- Specified by:
checkWritable
in classResolveResult
-
resolve
- Specified by:
resolve
in classResolveResult
-
size
public long size()- Specified by:
size
in classResolveResult
-
equals
- Overrides:
equals
in classResolveResult
-
hashCode
public int hashCode()- Overrides:
hashCode
in classResolveResult
-
toString
-