Class DefaultAccessRightsService
java.lang.Object
de.hybris.platform.integrationservices.security.impl.DefaultAccessRightsService
- All Implemented Interfaces:
AccessRightsService
Default implementation for
AccessRightsService-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAccessRightsService(@NotNull PermissionCRUDService permissionCRUDService, @NotNull IntegrationServicesConfiguration integrationServicesConfiguration) DefaultIntegrationObjectPermissionService class constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckCreatePermission(@NotNull String type) Checks if the current user can create an instance of the type.voidcheckDeletePermission(@NotNull String type) Checks if the current user can delete an instance of the type.voidcheckReadPermission(@NotNull String type) Checks if the current user can read the type.voidcheckUpdatePermission(@NotNull String type) Checks if the current user can update an instance of the type.
-
Constructor Details
-
DefaultAccessRightsService
public DefaultAccessRightsService(@NotNull @NotNull PermissionCRUDService permissionCRUDService, @NotNull @NotNull IntegrationServicesConfiguration integrationServicesConfiguration) DefaultIntegrationObjectPermissionService class constructor.- Parameters:
permissionCRUDService- permission CRUD service seePermissionCRUDServiceintegrationServicesConfiguration- configuration service for reading propertiesIntegrationServicesConfiguration
-
-
Method Details
-
checkCreatePermission
Checks if the current user can create an instance of the type. The implementation may throw aRuntimeExceptionif the user does not have the create permission for the type.TypeAccessPermissionExceptionis thrown if the user doesn't have the permission.- Specified by:
checkCreatePermissionin interfaceAccessRightsService- Parameters:
type- type code to check permissions for
-
checkReadPermission
Checks if the current user can read the type. The implementation may throw aRuntimeExceptionif the user does not have the read permission for the type.TypeAccessPermissionExceptionis thrown if the user doesn't have the permission.- Specified by:
checkReadPermissionin interfaceAccessRightsService- Parameters:
type- type code to check permissions for
-
checkUpdatePermission
Checks if the current user can update an instance of the type. The implementation may throw aRuntimeExceptionif the user does not have the update permission for the type.TypeAccessPermissionExceptionis thrown if the user doesn't have the permission.- Specified by:
checkUpdatePermissionin interfaceAccessRightsService- Parameters:
type- type code to check permissions for
-
checkDeletePermission
Checks if the current user can delete an instance of the type. The implementation may throw aRuntimeExceptionif the user does not have the delete permission for the type.TypeAccessPermissionExceptionis thrown if the user doesn't have the permission.- Specified by:
checkDeletePermissionin interfaceAccessRightsService- Parameters:
type- type code to check permissions for
-