Interface PermissionCRUDService
- All Known Subinterfaces:
PermissionCachedCRUDService
- All Known Implementing Classes:
DefaultCMSPermissionCachedCRUDService,DefaultPermissionCRUDService
public interface PermissionCRUDService
This Service provides convenience methods to check for basic permissions scheme known as CRUD: CREATE, READ, UPDATE,
DELETE. All the methods provided here are only helper wrappers over
PermissionCheckingService that use
permission names defined in: PermissionsConstants-
Method Summary
Modifier and TypeMethodDescriptionbooleancanChangeAttribute(AttributeDescriptorModel attributeDescriptor) Returns true if the current user is grantedPermissionsConstants.CHANGEpermission to the given attribute descriptor.booleancanChangeAttribute(String typeCode, String attributeQualifier) Returns true if the current user is grantedPermissionsConstants.CHANGEpermission to the given attribute descriptor.booleancanChangeAttributePermission(AttributeDescriptorModel attributeDescriptor) Returns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONSpermission to the given attribute descriptor.booleancanChangeAttributePermission(String typeCode, String attributeQualifier) Returns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONSpermission to the given attribute descriptor.booleanReturns true if the current user is grantedPermissionsConstants.CHANGEpermission to the given type.booleancanChangeType(String typeCode) Returns true if the current user is grantedPermissionsConstants.CHANGEpermission to the given type.booleanReturns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONSpermission to the given type.booleancanChangeTypePermission(String typeCode) Returns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONSpermission to the given type.booleanReturns true if the current user is grantedPermissionsConstants.CREATEpermission to the given type.booleancanCreateTypeInstance(String typeCode) Returns true if the current user is grantedPermissionsConstants.CREATEpermission to the given type.booleancanReadAttribute(AttributeDescriptorModel attributeDescriptor) Returns true if the current user is grantedPermissionsConstants.READpermission to the given attribute descriptor.booleancanReadAttribute(String typeCode, String attributeQualifier) Returns true if the current user is grantedPermissionsConstants.READpermission to the given attribute descriptor.booleancanReadType(ComposedTypeModel type) Returns true if the current user is grantedPermissionsConstants.READpermission to the given type.booleancanReadType(String typeCode) Returns true if the current user is grantedPermissionsConstants.READpermission to the given type.booleanReturns true if the current user is grantedPermissionsConstants.REMOVEpermission to the given type.booleancanRemoveTypeInstance(String typeCode) Returns true if the current user is grantedPermissionsConstants.REMOVEpermission to the given type.
-
Method Details
-
canReadType
Returns true if the current user is grantedPermissionsConstants.READpermission to the given type. Returns false otherwise. -
canReadType
Returns true if the current user is grantedPermissionsConstants.READpermission to the given type. Returns false otherwise. -
canReadAttribute
Returns true if the current user is grantedPermissionsConstants.READpermission to the given attribute descriptor. Returns false otherwise. -
canReadAttribute
Returns true if the current user is grantedPermissionsConstants.READpermission to the given attribute descriptor. Returns false otherwise. -
canChangeType
Returns true if the current user is grantedPermissionsConstants.CHANGEpermission to the given type. Returns false otherwise. -
canChangeType
Returns true if the current user is grantedPermissionsConstants.CHANGEpermission to the given type. Returns false otherwise. -
canChangeAttribute
Returns true if the current user is grantedPermissionsConstants.CHANGEpermission to the given attribute descriptor. Returns false otherwise. -
canChangeAttribute
Returns true if the current user is grantedPermissionsConstants.CHANGEpermission to the given attribute descriptor. Returns false otherwise. -
canCreateTypeInstance
Returns true if the current user is grantedPermissionsConstants.CREATEpermission to the given type. Returns false otherwise. -
canCreateTypeInstance
Returns true if the current user is grantedPermissionsConstants.CREATEpermission to the given type. Returns false otherwise. -
canRemoveTypeInstance
Returns true if the current user is grantedPermissionsConstants.REMOVEpermission to the given type. Returns false otherwise. -
canRemoveTypeInstance
Returns true if the current user is grantedPermissionsConstants.REMOVEpermission to the given type. Returns false otherwise. -
canChangeTypePermission
Returns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONSpermission to the given type. Returns false otherwise. -
canChangeTypePermission
Returns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONSpermission to the given type. Returns false otherwise. -
canChangeAttributePermission
Returns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONSpermission to the given attribute descriptor. Returns false otherwise. -
canChangeAttributePermission
Returns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONSpermission to the given attribute descriptor. Returns false otherwise.
-