Package io.jmix.securitydata.constraint
Class LoadValuesConstraint
java.lang.Object
io.jmix.securitydata.constraint.LoadValuesConstraint
- All Implemented Interfaces:
AccessConstraint<LoadValuesAccessContext>
,EntityOperationConstraint<LoadValuesAccessContext>
@Component("sec_LoadValuesConstraint")
@Scope("prototype")
public class LoadValuesConstraint
extends Object
implements EntityOperationConstraint<LoadValuesAccessContext>
Checks access to entity attributes in a JPQL query loading scalar values based on resource policies.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyTo
(LoadValuesAccessContext context) Applies the constraint to the given access context.Returns the access constraint type.void
setPolicyStore
(PolicyStore policyStore) void
setSecureOperations
(SecureOperations secureOperations)
-
Field Details
-
secureOperations
-
policyStore
-
-
Constructor Details
-
LoadValuesConstraint
public LoadValuesConstraint()
-
-
Method Details
-
setSecureOperations
-
setPolicyStore
-
getContextType
Description copied from interface:AccessConstraint
Returns the access constraint type.- Specified by:
getContextType
in interfaceAccessConstraint<LoadValuesAccessContext>
-
applyTo
Description copied from interface:AccessConstraint
Applies the constraint to the given access context.- Specified by:
applyTo
in interfaceAccessConstraint<LoadValuesAccessContext>
-