Package io.jmix.security.constraint
Interface SecureOperations
- All Known Implementing Classes:
SecureOperationsImpl
public interface SecureOperations
Provides methods to check permissions of the current user.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isEntityAttrReadPermitted
(MetaPropertyPath propertyPath, 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 propertyPath, 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 policyStore) Check if the current user has a permission to delete the entity specified by the given meta-class.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 policyStore) 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.
-
Method Details
-
isEntityCreatePermitted
Check if the current user has a permission to create the entity specified by the given meta-class. -
isEntityReadPermitted
Check if the current user has a permission to read the entity specified by the given meta-class. -
isEntityUpdatePermitted
Check if the current user has a permission to update the entity specified by the given meta-class. -
isEntityDeletePermitted
Check if the current user has a permission to delete the entity specified by the given meta-class. -
isEntityAttrReadPermitted
Check if the current user has a permission to read the entity attribute specified by the given meta-property path. -
isEntityAttrUpdatePermitted
Check if the current user has a permission to update the entity attribute specified by the given meta-property path. -
isSpecificPermitted
Check if the current user has the given specific permission. -
isGraphQLPermitted
Check if the current user has a permission to the given GraphQL resource.
-