Class DefaultAccessRightsService
- java.lang.Object
-
- de.hybris.platform.integrationservices.security.impl.DefaultAccessRightsService
-
- All Implemented Interfaces:
AccessRightsService
public class DefaultAccessRightsService extends java.lang.Object implements AccessRightsService
Default implementation forAccessRightsService
-
-
Constructor Summary
Constructors Constructor Description DefaultAccessRightsService(@NotNull PermissionCRUDService permissionCRUDService, @NotNull IntegrationServicesConfiguration integrationServicesConfiguration)DefaultIntegrationObjectPermissionService class constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckCreatePermission(@NotNull java.lang.String type)Checks if the current user can create an instance of the type.voidcheckDeletePermission(@NotNull java.lang.String type)Checks if the current user can delete an instance of the type.voidcheckReadPermission(@NotNull java.lang.String type)Checks if the current user can read the type.voidcheckUpdatePermission(@NotNull java.lang.String type)Checks if the current user can update an instance of the type.
-
-
-
Constructor Detail
-
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 Detail
-
checkCreatePermission
public void checkCreatePermission(@NotNull @NotNull java.lang.String type)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
public void checkReadPermission(@NotNull @NotNull java.lang.String type)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
public void checkUpdatePermission(@NotNull @NotNull java.lang.String type)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
public void checkDeletePermission(@NotNull @NotNull java.lang.String type)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
-
-