Interface PermissionCRUDService
-
- 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 overPermissionCheckingService
that use permission names defined in:PermissionsConstants
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canChangeAttribute(AttributeDescriptorModel attributeDescriptor)
Returns true if the current user is grantedPermissionsConstants.CHANGE
permission to the given attribute descriptor.boolean
canChangeAttribute(java.lang.String typeCode, java.lang.String attributeQualifier)
Returns true if the current user is grantedPermissionsConstants.CHANGE
permission to the given attribute descriptor.boolean
canChangeAttributePermission(AttributeDescriptorModel attributeDescriptor)
Returns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONS
permission to the given attribute descriptor.boolean
canChangeAttributePermission(java.lang.String typeCode, java.lang.String attributeQualifier)
Returns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONS
permission to the given attribute descriptor.boolean
canChangeType(ComposedTypeModel type)
Returns true if the current user is grantedPermissionsConstants.CHANGE
permission to the given type.boolean
canChangeType(java.lang.String typeCode)
Returns true if the current user is grantedPermissionsConstants.CHANGE
permission to the given type.boolean
canChangeTypePermission(ComposedTypeModel type)
Returns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONS
permission to the given type.boolean
canChangeTypePermission(java.lang.String typeCode)
Returns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONS
permission to the given type.boolean
canCreateTypeInstance(ComposedTypeModel type)
Returns true if the current user is grantedPermissionsConstants.CREATE
permission to the given type.boolean
canCreateTypeInstance(java.lang.String typeCode)
Returns true if the current user is grantedPermissionsConstants.CREATE
permission to the given type.boolean
canReadAttribute(AttributeDescriptorModel attributeDescriptor)
Returns true if the current user is grantedPermissionsConstants.READ
permission to the given attribute descriptor.boolean
canReadAttribute(java.lang.String typeCode, java.lang.String attributeQualifier)
Returns true if the current user is grantedPermissionsConstants.READ
permission to the given attribute descriptor.boolean
canReadType(ComposedTypeModel type)
Returns true if the current user is grantedPermissionsConstants.READ
permission to the given type.boolean
canReadType(java.lang.String typeCode)
Returns true if the current user is grantedPermissionsConstants.READ
permission to the given type.boolean
canRemoveTypeInstance(ComposedTypeModel type)
Returns true if the current user is grantedPermissionsConstants.REMOVE
permission to the given type.boolean
canRemoveTypeInstance(java.lang.String typeCode)
Returns true if the current user is grantedPermissionsConstants.REMOVE
permission to the given type.
-
-
-
Method Detail
-
canReadType
boolean canReadType(ComposedTypeModel type)
Returns true if the current user is grantedPermissionsConstants.READ
permission to the given type. Returns false otherwise.
-
canReadType
boolean canReadType(java.lang.String typeCode)
Returns true if the current user is grantedPermissionsConstants.READ
permission to the given type. Returns false otherwise.
-
canReadAttribute
boolean canReadAttribute(AttributeDescriptorModel attributeDescriptor)
Returns true if the current user is grantedPermissionsConstants.READ
permission to the given attribute descriptor. Returns false otherwise.
-
canReadAttribute
boolean canReadAttribute(java.lang.String typeCode, java.lang.String attributeQualifier)
Returns true if the current user is grantedPermissionsConstants.READ
permission to the given attribute descriptor. Returns false otherwise.
-
canChangeType
boolean canChangeType(ComposedTypeModel type)
Returns true if the current user is grantedPermissionsConstants.CHANGE
permission to the given type. Returns false otherwise.
-
canChangeType
boolean canChangeType(java.lang.String typeCode)
Returns true if the current user is grantedPermissionsConstants.CHANGE
permission to the given type. Returns false otherwise.
-
canChangeAttribute
boolean canChangeAttribute(AttributeDescriptorModel attributeDescriptor)
Returns true if the current user is grantedPermissionsConstants.CHANGE
permission to the given attribute descriptor. Returns false otherwise.
-
canChangeAttribute
boolean canChangeAttribute(java.lang.String typeCode, java.lang.String attributeQualifier)
Returns true if the current user is grantedPermissionsConstants.CHANGE
permission to the given attribute descriptor. Returns false otherwise.
-
canCreateTypeInstance
boolean canCreateTypeInstance(ComposedTypeModel type)
Returns true if the current user is grantedPermissionsConstants.CREATE
permission to the given type. Returns false otherwise.
-
canCreateTypeInstance
boolean canCreateTypeInstance(java.lang.String typeCode)
Returns true if the current user is grantedPermissionsConstants.CREATE
permission to the given type. Returns false otherwise.
-
canRemoveTypeInstance
boolean canRemoveTypeInstance(ComposedTypeModel type)
Returns true if the current user is grantedPermissionsConstants.REMOVE
permission to the given type. Returns false otherwise.
-
canRemoveTypeInstance
boolean canRemoveTypeInstance(java.lang.String typeCode)
Returns true if the current user is grantedPermissionsConstants.REMOVE
permission to the given type. Returns false otherwise.
-
canChangeTypePermission
boolean canChangeTypePermission(ComposedTypeModel type)
Returns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONS
permission to the given type. Returns false otherwise.
-
canChangeTypePermission
boolean canChangeTypePermission(java.lang.String typeCode)
Returns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONS
permission to the given type. Returns false otherwise.
-
canChangeAttributePermission
boolean canChangeAttributePermission(AttributeDescriptorModel attributeDescriptor)
Returns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONS
permission to the given attribute descriptor. Returns false otherwise.
-
canChangeAttributePermission
boolean canChangeAttributePermission(java.lang.String typeCode, java.lang.String attributeQualifier)
Returns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONS
permission to the given attribute descriptor. Returns false otherwise.
-
-