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 TypeMethodDescriptionbooleanisEntityAttrReadPermitted(MetaPropertyPath propertyPath, PolicyStore policyStore) Check if the current user has a permission to read the entity attribute specified by the given meta-property path.booleanisEntityAttrUpdatePermitted(MetaPropertyPath propertyPath, 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 policyStore) Check if the current user has a permission to delete the entity specified by the given meta-class.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 policyStore) Check if the current user has a permission to update the entity specified by the given meta-class.booleanisGraphQLPermitted(String resourceName, PolicyStore policyStore) Deprecated, for removal: This API element is subject to removal in a future version.booleanisSpecificPermitted(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
@Deprecated(forRemoval=true) boolean isGraphQLPermitted(String resourceName, PolicyStore policyStore) Deprecated, for removal: This API element is subject to removal in a future version.
-