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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisEntityAttrPermitted(MetaClass metaClass, String name, EntityAttributePolicyAction[] policyActions, PolicyStore policyStore) protected booleanisEntityAttrPermitted(ResourcePolicy policy, EntityAttributePolicyAction[] policyActions) booleanisEntityAttrReadPermitted(MetaPropertyPath metaPropertyPath, PolicyStore policyStore) Check if the current user has a permission to read the entity attribute specified by the given meta-property path.booleanisEntityAttrUpdatePermitted(MetaPropertyPath metaPropertyPath, PolicyStore policyStore) Check if the current user has a permission to update the entity attribute specified by the given meta-property path.booleanisEntityCreatePermitted(MetaClass metaClass, PolicyStore policyStore) Check if the current user has a permission to create the entity specified by the given meta-class.booleanisEntityDeletePermitted(MetaClass metaClass, PolicyStore policyContainer) Check if the current user has a permission to delete the entity specified by the given meta-class.protected booleanisEntityOperationPermitted(MetaClass metaClass, EntityPolicyAction entityPolicyAction, PolicyStore policyStore) protected booleanisEntityOperationPermitted(ResourcePolicy policy, EntityPolicyAction entityPolicyAction) booleanisEntityReadPermitted(MetaClass metaClass, PolicyStore policyStore) Check if the current user has a permission to read the entity specified by the given meta-class.booleanisEntityUpdatePermitted(MetaClass metaClass, PolicyStore policyContainer) Check if the current user has a permission to update the entity specified by the given meta-class.booleanisGraphQLPermitted(String resourceName, PolicyStore policyStore) Check if the current user has a permission to the given GraphQL resource.booleanisSpecificPermitted(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:SecureOperationsCheck if the current user has a permission to create the entity specified by the given meta-class.- Specified by:
isEntityCreatePermittedin interfaceSecureOperations
-
isEntityReadPermitted
Description copied from interface:SecureOperationsCheck if the current user has a permission to read the entity specified by the given meta-class.- Specified by:
isEntityReadPermittedin interfaceSecureOperations
-
isEntityUpdatePermitted
Description copied from interface:SecureOperationsCheck if the current user has a permission to update the entity specified by the given meta-class.- Specified by:
isEntityUpdatePermittedin interfaceSecureOperations
-
isEntityDeletePermitted
Description copied from interface:SecureOperationsCheck if the current user has a permission to delete the entity specified by the given meta-class.- Specified by:
isEntityDeletePermittedin 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:SecureOperationsCheck if the current user has a permission to read the entity attribute specified by the given meta-property path.- Specified by:
isEntityAttrReadPermittedin interfaceSecureOperations
-
isEntityAttrUpdatePermitted
public boolean isEntityAttrUpdatePermitted(MetaPropertyPath metaPropertyPath, PolicyStore policyStore) Description copied from interface:SecureOperationsCheck if the current user has a permission to update the entity attribute specified by the given meta-property path.- Specified by:
isEntityAttrUpdatePermittedin 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:SecureOperationsCheck if the current user has the given specific permission.- Specified by:
isSpecificPermittedin interfaceSecureOperations
-
isGraphQLPermitted
Description copied from interface:SecureOperationsCheck if the current user has a permission to the given GraphQL resource.- Specified by:
isGraphQLPermittedin interfaceSecureOperations
-