Class DefaultPermissionCRUDService
- java.lang.Object
-
- de.hybris.platform.servicelayer.security.permissions.impl.DefaultPermissionCRUDService
-
- All Implemented Interfaces:
PermissionCRUDService
public class DefaultPermissionCRUDService extends java.lang.Object implements PermissionCRUDService
DefaultPermissionCRUDServiceimplementation. It delegates all calls toPermissionCheckingService
-
-
Constructor Summary
Constructors Constructor Description DefaultPermissionCRUDService()
-
Method Summary
All Methods Instance Methods Concrete 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.PermissionCheckingServicegetPermissionCheckingService()voidsetPermissionCheckingService(PermissionCheckingService permissionCheckingService)
-
-
-
Method Detail
-
canReadType
public boolean canReadType(ComposedTypeModel type)
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
public boolean canReadType(java.lang.String typeCode)
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
public boolean canReadAttribute(AttributeDescriptorModel attributeDescriptor)
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
public boolean canReadAttribute(java.lang.String typeCode, java.lang.String attributeQualifier)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
public boolean canChangeType(ComposedTypeModel type)
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
public boolean canChangeType(java.lang.String typeCode)
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
public boolean canChangeAttribute(AttributeDescriptorModel attributeDescriptor)
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
public boolean canChangeAttribute(java.lang.String typeCode, java.lang.String attributeQualifier)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
public boolean canCreateTypeInstance(ComposedTypeModel type)
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
public boolean canCreateTypeInstance(java.lang.String typeCode)
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
public boolean canRemoveTypeInstance(ComposedTypeModel type)
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
public boolean canRemoveTypeInstance(java.lang.String typeCode)
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
public boolean canChangeTypePermission(ComposedTypeModel type)
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
public boolean canChangeTypePermission(java.lang.String typeCode)
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
public boolean canChangeAttributePermission(AttributeDescriptorModel attributeDescriptor)
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
public boolean canChangeAttributePermission(java.lang.String typeCode, java.lang.String attributeQualifier)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
public PermissionCheckingService getPermissionCheckingService()
-
setPermissionCheckingService
public void setPermissionCheckingService(PermissionCheckingService permissionCheckingService)
-
-