Class PathSearchContext.SelectorPermissionEvaluator
java.lang.Object
ch.tocco.nice2.rest.entity.impl.search.PathSearchContext.SelectorPermissionEvaluator
- Enclosing class:
PathSearchContext
For paths ending with a selector always set writable flag to true
This allows creation of new entities using "selector" relations
e.g. relAddress_user[publication] or relRegistration[new]
If a "selector" target exists, the relations / fields will be checked separately
e.g.
- relAddress_user[publication] - writeable = true (due to this permission evaluator)
- relAddress_user[publication].editable - writeable = false (as the user has no access rights to the actual entity)
- relAddress_user[publication].relAddress - writeable = false
- relAddress_user[publication].relAddress.company_c - writeable = false
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionevaluatePermissions
(SecurityContext securityContext, List<EntityPath> securedObjects) int
priority()
boolean
-
Constructor Details
-
SelectorPermissionEvaluator
public SelectorPermissionEvaluator()
-
-
Method Details
-
supports
-
priority
public int priority() -
evaluatePermissions
public Guard.Decision[] evaluatePermissions(SecurityContext securityContext, List<EntityPath> securedObjects)
-