Class DefaultTypePermissionService
java.lang.Object
de.hybris.platform.integrationservices.security.impl.DefaultTypePermissionService
- All Implemented Interfaces:
TypePermissionService
Default implementation for
TypePermissionService-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTypePermissionService(@NotNull AccessRightsService accessRightsService) DefaultTypePermissionService class constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckReadPermission(TypeDescriptor typeDescriptor) Checks if the current user can read the type within theTypeDescriptor.
-
Constructor Details
-
DefaultTypePermissionService
DefaultTypePermissionService class constructor.- Parameters:
accessRightsService- access rights service.
-
-
Method Details
-
checkReadPermission
Description copied from interface:TypePermissionServiceChecks if the current user can read the type within theTypeDescriptor. The implementation may throw aRuntimeExceptionif the user does not have the read permission for the type within the TypeDescriptor.- Specified by:
checkReadPermissionin interfaceTypePermissionService- Parameters:
typeDescriptor- to check permissions for model within it
-