Class PathResolverImpl
java.lang.Object
ch.tocco.nice2.rest.entity.impl.beans.factories.path.PathResolverImpl
- All Implemented Interfaces:
PathResolver
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getLimit()
resolvePath
(Entity baseEntity, Path path) Resolve a single path from an entity.resolvePaths
(Entity baseEntity, Set<Path> paths) Resolve a set of path from an entity.void
setLimit
(long limit)
-
Constructor Details
-
PathResolverImpl
public PathResolverImpl()
-
-
Method Details
-
setLimit
@Value("${rest.entity.pathresolver.limit}") public void setLimit(long limit) -
getLimit
public long getLimit() -
resolvePath
Description copied from interface:PathResolver
Resolve a single path from an entity.- Specified by:
resolvePath
in interfacePathResolver
- Parameters:
baseEntity
- the base entity to resolve from.path
- the path to resolve.- Returns:
- the resolve result.
-
resolvePaths
Description copied from interface:PathResolver
Resolve a set of path from an entity.- Specified by:
resolvePaths
in interfacePathResolver
- Parameters:
baseEntity
- the base entity to resolve from.paths
- the path to resolve.- Returns:
- the resolve results.
-