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