Class PathSearchContext
java.lang.Object
ch.tocco.nice2.rest.entity.impl.search.PathSearchContext
Helper class that is provided to the
EntityBeanFactory
in order to facilitate access to
the result data and security permissions.
If PathSearchRequest.isEvaluatePermissions()
is true this context evaluates all permissions (AccessPermission.write()
)
in advance using SecurityContext.getGuardForList(List)
. This is the most efficient way, as only one call to the
SecurityContext
is required per Path
. This allows evaluating a security condition in only query for all
resulting rows.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Default permission evaluator checking write access for pathstatic class
For paths ending with a selector always set writable flag to true This allows creation of new entities using "selector" relations e.g. -
Method Summary
Modifier and TypeMethodDescription@Nullable Boolean
isWritable
(String path, EntityModel entityModel, Map row)
-
Method Details
-
isWritable
-
getEntityModel
-
getRequestedPaths
-