Class DefaultPermissionCRUDService
java.lang.Object
de.hybris.platform.servicelayer.security.permissions.impl.DefaultPermissionCRUDService
- All Implemented Interfaces:
PermissionCRUDService
Default
PermissionCRUDService implementation. It delegates all calls to PermissionCheckingService-
Constructor Summary
Constructors -
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.voidsetPermissionCheckingService(PermissionCheckingService permissionCheckingService)
-
Constructor Details
-
DefaultPermissionCRUDService
public DefaultPermissionCRUDService()
-
-
Method Details
-
canReadType
Description copied from interface:PermissionCRUDServiceReturns true if the current user is grantedPermissionsConstants.READpermission to the given type. Returns false otherwise.- Specified by:
canReadTypein interfacePermissionCRUDService
-
canReadType
Description copied from interface:PermissionCRUDServiceReturns true if the current user is grantedPermissionsConstants.READpermission to the given type. Returns false otherwise.- Specified by:
canReadTypein interfacePermissionCRUDService
-
canReadAttribute
Description copied from interface:PermissionCRUDServiceReturns true if the current user is grantedPermissionsConstants.READpermission to the given attribute descriptor. Returns false otherwise.- Specified by:
canReadAttributein interfacePermissionCRUDService
-
canReadAttribute
Description copied from interface:PermissionCRUDServiceReturns true if the current user is grantedPermissionsConstants.READpermission to the given attribute descriptor. Returns false otherwise.- Specified by:
canReadAttributein interfacePermissionCRUDService
-
canChangeType
Description copied from interface:PermissionCRUDServiceReturns true if the current user is grantedPermissionsConstants.CHANGEpermission to the given type. Returns false otherwise.- Specified by:
canChangeTypein interfacePermissionCRUDService
-
canChangeType
Description copied from interface:PermissionCRUDServiceReturns true if the current user is grantedPermissionsConstants.CHANGEpermission to the given type. Returns false otherwise.- Specified by:
canChangeTypein interfacePermissionCRUDService
-
canChangeAttribute
Description copied from interface:PermissionCRUDServiceReturns true if the current user is grantedPermissionsConstants.CHANGEpermission to the given attribute descriptor. Returns false otherwise.- Specified by:
canChangeAttributein interfacePermissionCRUDService
-
canChangeAttribute
Description copied from interface:PermissionCRUDServiceReturns true if the current user is grantedPermissionsConstants.CHANGEpermission to the given attribute descriptor. Returns false otherwise.- Specified by:
canChangeAttributein interfacePermissionCRUDService
-
canCreateTypeInstance
Description copied from interface:PermissionCRUDServiceReturns true if the current user is grantedPermissionsConstants.CREATEpermission to the given type. Returns false otherwise.- Specified by:
canCreateTypeInstancein interfacePermissionCRUDService
-
canCreateTypeInstance
Description copied from interface:PermissionCRUDServiceReturns true if the current user is grantedPermissionsConstants.CREATEpermission to the given type. Returns false otherwise.- Specified by:
canCreateTypeInstancein interfacePermissionCRUDService
-
canRemoveTypeInstance
Description copied from interface:PermissionCRUDServiceReturns true if the current user is grantedPermissionsConstants.REMOVEpermission to the given type. Returns false otherwise.- Specified by:
canRemoveTypeInstancein interfacePermissionCRUDService
-
canRemoveTypeInstance
Description copied from interface:PermissionCRUDServiceReturns true if the current user is grantedPermissionsConstants.REMOVEpermission to the given type. Returns false otherwise.- Specified by:
canRemoveTypeInstancein interfacePermissionCRUDService
-
canChangeTypePermission
Description copied from interface:PermissionCRUDServiceReturns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONSpermission to the given type. Returns false otherwise.- Specified by:
canChangeTypePermissionin interfacePermissionCRUDService
-
canChangeTypePermission
Description copied from interface:PermissionCRUDServiceReturns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONSpermission to the given type. Returns false otherwise.- Specified by:
canChangeTypePermissionin interfacePermissionCRUDService
-
canChangeAttributePermission
Description copied from interface:PermissionCRUDServiceReturns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONSpermission to the given attribute descriptor. Returns false otherwise.- Specified by:
canChangeAttributePermissionin interfacePermissionCRUDService
-
canChangeAttributePermission
Description copied from interface:PermissionCRUDServiceReturns true if the current user is grantedPermissionsConstants.CHANGE_PERMISSIONSpermission to the given attribute descriptor. Returns false otherwise.- Specified by:
canChangeAttributePermissionin interfacePermissionCRUDService
-
getPermissionCheckingService
-
setPermissionCheckingService
-