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
ConstructorsConstructorDescriptionEntityResolveResult(Path path, @Nullable Entity baseEntity, RelationModel relationModel, @Nullable Entity resolvedEntity) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanGet the resolved entity.inthashCode()resolve(Path.PathElement pathElement, PathResolverContext pathResolverContext) longsize()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:
checkWritablein classResolveResult
-
resolve
- Specified by:
resolvein classResolveResult
-
size
public long size()- Specified by:
sizein classResolveResult
-
equals
- Overrides:
equalsin classResolveResult
-
hashCode
public int hashCode()- Overrides:
hashCodein classResolveResult
-
toString
-