Class DelegatedAccessAdapter
- java.lang.Object
-
- com.identityworksllc.iiq.common.access.DelegatedAccessAdapter
-
public class DelegatedAccessAdapter extends Object implements Function<Map<String,Object>,Boolean>
A default adapter for delegated access checks.This class implements the OOTB Java
Functioninterface to allow it to be shared across plugins without relying on reflection.The input contains various arguments for the access check. In particular, it contains an ‘action’ and an optional ‘name’. These will be concatenated with a ‘:’ to form the purpose string. For example, ‘view:field:myField’, where ‘view:field’ is the action and ‘myField’ is the name.
Certain actions can bypass the DA checks, deferring to a default ThingAccessUtils checks. This is particularly useful if the particular thing has good inline configuration that doesn’t need to be shared or nested.
The output is a
Booleanindicating whether the access is DENIED - i.e., true = deny, false = allow.
-
-
Constructor Summary
Constructors Constructor Description DelegatedAccessAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Booleanapply(Map<String,Object> input)Applies the delegated access check to the input.
-
-
-
Constructor Detail
-
DelegatedAccessAdapter
public DelegatedAccessAdapter()
-
-