Package io.jmix.security.impl.constraint
Class SecureOperationsImpl
java.lang.Object
io.jmix.security.impl.constraint.SecureOperationsImpl
- All Implemented Interfaces:
SecureOperations
@Component("sec_SecureOperations")
public class SecureOperationsImpl
extends Object
implements SecureOperations
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isEntityAttrPermitted
(MetaClass metaClass, String name, EntityAttributePolicyAction[] policyActions, PolicyStore policyStore) protected boolean
isEntityAttrPermitted
(ResourcePolicy policy, EntityAttributePolicyAction[] policyActions) boolean
isEntityAttrReadPermitted
(MetaPropertyPath metaPropertyPath, PolicyStore policyStore) Check if the current user has a permission to read the entity attribute specified by the given meta-property path.boolean
isEntityAttrUpdatePermitted
(MetaPropertyPath metaPropertyPath, PolicyStore policyStore) Check if the current user has a permission to update the entity attribute specified by the given meta-property path.boolean
isEntityCreatePermitted
(MetaClass metaClass, PolicyStore policyStore) Check if the current user has a permission to create the entity specified by the given meta-class.boolean
isEntityDeletePermitted
(MetaClass metaClass, PolicyStore policyContainer) Check if the current user has a permission to delete the entity specified by the given meta-class.protected boolean
isEntityOperationPermitted
(MetaClass metaClass, EntityPolicyAction entityPolicyAction, PolicyStore policyStore) protected boolean
isEntityOperationPermitted
(ResourcePolicy policy, EntityPolicyAction entityPolicyAction) boolean
isEntityReadPermitted
(MetaClass metaClass, PolicyStore policyStore) Check if the current user has a permission to read the entity specified by the given meta-class.boolean
isEntityUpdatePermitted
(MetaClass metaClass, PolicyStore policyContainer) Check if the current user has a permission to update the entity specified by the given meta-class.boolean
isGraphQLPermitted
(String resourceName, PolicyStore policyStore) Check if the current user has a permission to the given GraphQL resource.boolean
isSpecificPermitted
(String resourceName, PolicyStore policyStore) Check if the current user has the given specific permission.
-
Constructor Details
-
SecureOperationsImpl
public SecureOperationsImpl()
-
-
Method Details
-
isEntityCreatePermitted
Description copied from interface:SecureOperations
Check if the current user has a permission to create the entity specified by the given meta-class.- Specified by:
isEntityCreatePermitted
in interfaceSecureOperations
-
isEntityReadPermitted
Description copied from interface:SecureOperations
Check if the current user has a permission to read the entity specified by the given meta-class.- Specified by:
isEntityReadPermitted
in interfaceSecureOperations
-
isEntityUpdatePermitted
Description copied from interface:SecureOperations
Check if the current user has a permission to update the entity specified by the given meta-class.- Specified by:
isEntityUpdatePermitted
in interfaceSecureOperations
-
isEntityDeletePermitted
Description copied from interface:SecureOperations
Check if the current user has a permission to delete the entity specified by the given meta-class.- Specified by:
isEntityDeletePermitted
in interfaceSecureOperations
-
isEntityOperationPermitted
protected boolean isEntityOperationPermitted(MetaClass metaClass, EntityPolicyAction entityPolicyAction, PolicyStore policyStore) -
isEntityOperationPermitted
protected boolean isEntityOperationPermitted(ResourcePolicy policy, EntityPolicyAction entityPolicyAction) -
isEntityAttrReadPermitted
public boolean isEntityAttrReadPermitted(MetaPropertyPath metaPropertyPath, PolicyStore policyStore) Description copied from interface:SecureOperations
Check if the current user has a permission to read the entity attribute specified by the given meta-property path.- Specified by:
isEntityAttrReadPermitted
in interfaceSecureOperations
-
isEntityAttrUpdatePermitted
public boolean isEntityAttrUpdatePermitted(MetaPropertyPath metaPropertyPath, PolicyStore policyStore) Description copied from interface:SecureOperations
Check if the current user has a permission to update the entity attribute specified by the given meta-property path.- Specified by:
isEntityAttrUpdatePermitted
in interfaceSecureOperations
-
isEntityAttrPermitted
protected boolean isEntityAttrPermitted(MetaClass metaClass, String name, EntityAttributePolicyAction[] policyActions, PolicyStore policyStore) -
isEntityAttrPermitted
protected boolean isEntityAttrPermitted(ResourcePolicy policy, EntityAttributePolicyAction[] policyActions) -
isSpecificPermitted
Description copied from interface:SecureOperations
Check if the current user has the given specific permission.- Specified by:
isSpecificPermitted
in interfaceSecureOperations
-
isGraphQLPermitted
Description copied from interface:SecureOperations
Check if the current user has a permission to the given GraphQL resource.- Specified by:
isGraphQLPermitted
in interfaceSecureOperations
-