Interface PermissionCRUDService
-
- All Known Implementing Classes:
DefaultCMSPermissionCachedCRUDService,DefaultPermissionCRUDService
public interface PermissionCRUDServiceThis 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 overPermissionCheckingServicethat use permission names defined in:PermissionsConstants
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanChangeAttribute(AttributeDescriptorModel attributeDescriptor)Returns true if the current user is grantedPermissionsConstants.CHANGEpermission to the given attribute descriptor.booleancanChangeAttribute(java.lang.String typeCode, java.lang.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(java.lang.String typeCode, java.lang.String attributeQualifier)Returns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONSpermission to the given attribute descriptor.booleancanChangeType(ComposedTypeModel type)Returns true if the current user is grantedPermissionsConstants.CHANGEpermission to the given type.booleancanChangeType(java.lang.String typeCode)Returns true if the current user is grantedPermissionsConstants.CHANGEpermission to the given type.booleancanChangeTypePermission(ComposedTypeModel type)Returns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONSpermission to the given type.booleancanChangeTypePermission(java.lang.String typeCode)Returns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONSpermission to the given type.booleancanCreateTypeInstance(ComposedTypeModel type)Returns true if the current user is grantedPermissionsConstants.CREATEpermission to the given type.booleancanCreateTypeInstance(java.lang.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(java.lang.String typeCode, java.lang.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(java.lang.String typeCode)Returns true if the current user is grantedPermissionsConstants.READpermission to the given type.booleancanRemoveTypeInstance(ComposedTypeModel type)Returns true if the current user is grantedPermissionsConstants.REMOVEpermission to the given type.booleancanRemoveTypeInstance(java.lang.String typeCode)Returns true if the current user is grantedPermissionsConstants.REMOVEpermission to the given type.
-
-
-
Method Detail
-
canReadType
boolean canReadType(ComposedTypeModel type)
Returns true if the current user is grantedPermissionsConstants.READpermission to the given type. Returns false otherwise.
-
canReadType
boolean canReadType(java.lang.String typeCode)
Returns true if the current user is grantedPermissionsConstants.READpermission to the given type. Returns false otherwise.
-
canReadAttribute
boolean canReadAttribute(AttributeDescriptorModel attributeDescriptor)
Returns true if the current user is grantedPermissionsConstants.READpermission 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.READpermission to the given attribute descriptor. Returns false otherwise.
-
canChangeType
boolean canChangeType(ComposedTypeModel type)
Returns true if the current user is grantedPermissionsConstants.CHANGEpermission to the given type. Returns false otherwise.
-
canChangeType
boolean canChangeType(java.lang.String typeCode)
Returns true if the current user is grantedPermissionsConstants.CHANGEpermission to the given type. Returns false otherwise.
-
canChangeAttribute
boolean canChangeAttribute(AttributeDescriptorModel attributeDescriptor)
Returns true if the current user is grantedPermissionsConstants.CHANGEpermission 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.CHANGEpermission to the given attribute descriptor. Returns false otherwise.
-
canCreateTypeInstance
boolean canCreateTypeInstance(ComposedTypeModel type)
Returns true if the current user is grantedPermissionsConstants.CREATEpermission to the given type. Returns false otherwise.
-
canCreateTypeInstance
boolean canCreateTypeInstance(java.lang.String typeCode)
Returns true if the current user is grantedPermissionsConstants.CREATEpermission to the given type. Returns false otherwise.
-
canRemoveTypeInstance
boolean canRemoveTypeInstance(ComposedTypeModel type)
Returns true if the current user is grantedPermissionsConstants.REMOVEpermission to the given type. Returns false otherwise.
-
canRemoveTypeInstance
boolean canRemoveTypeInstance(java.lang.String typeCode)
Returns true if the current user is grantedPermissionsConstants.REMOVEpermission to the given type. Returns false otherwise.
-
canChangeTypePermission
boolean canChangeTypePermission(ComposedTypeModel type)
Returns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONSpermission to the given type. Returns false otherwise.
-
canChangeTypePermission
boolean canChangeTypePermission(java.lang.String typeCode)
Returns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONSpermission to the given type. Returns false otherwise.
-
canChangeAttributePermission
boolean canChangeAttributePermission(AttributeDescriptorModel attributeDescriptor)
Returns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONSpermission 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_PERMISSIONSpermission to the given attribute descriptor. Returns false otherwise.
-
-