Package io.jmix.security.constraint
Class InMemoryCrudEntityConstraint
java.lang.Object
io.jmix.security.constraint.InMemoryCrudEntityConstraint
- All Implemented Interfaces:
AccessConstraint<InMemoryCrudEntityContext>
,InMemoryConstraint<InMemoryCrudEntityContext>
,RowLevelConstraint<InMemoryCrudEntityContext>
@Component("sec_InMemoryCrudEntityConstraint")
@Scope("prototype")
public class InMemoryCrudEntityConstraint
extends Object
implements InMemoryConstraint<InMemoryCrudEntityContext>, RowLevelConstraint<InMemoryCrudEntityContext>
Checks access to entity operations based on row-level policies.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyTo
(InMemoryCrudEntityContext context) Applies the constraint to the given access context.Returns the access constraint type.void
setPolicyStore
(PolicyStore policyStore)
-
Field Details
-
policyStore
-
-
Constructor Details
-
InMemoryCrudEntityConstraint
public InMemoryCrudEntityConstraint()
-
-
Method Details
-
setPolicyStore
-
getContextType
Description copied from interface:AccessConstraint
Returns the access constraint type.- Specified by:
getContextType
in interfaceAccessConstraint<InMemoryCrudEntityContext>
-
applyTo
Description copied from interface:AccessConstraint
Applies the constraint to the given access context.- Specified by:
applyTo
in interfaceAccessConstraint<InMemoryCrudEntityContext>
-