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