Package io.jmix.security.constraint
Class CrudEntityConstraint
java.lang.Object
io.jmix.security.constraint.CrudEntityConstraint
- All Implemented Interfaces:
AccessConstraint<CrudEntityContext>
,EntityOperationConstraint<CrudEntityContext>
@Component("sec_CrudEntityConstraint")
@Scope("prototype")
public class CrudEntityConstraint
extends Object
implements EntityOperationConstraint<CrudEntityContext>
Checks access to entity operations based on resource policies.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyTo
(CrudEntityContext 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
-
CrudEntityConstraint
public CrudEntityConstraint()
-
-
Method Details
-
setPolicyStore
-
setSecureOperations
-
getContextType
Description copied from interface:AccessConstraint
Returns the access constraint type.- Specified by:
getContextType
in interfaceAccessConstraint<CrudEntityContext>
-
applyTo
Description copied from interface:AccessConstraint
Applies the constraint to the given access context.- Specified by:
applyTo
in interfaceAccessConstraint<CrudEntityContext>
-