Class DefaultAccessRightsService

java.lang.Object
de.hybris.platform.integrationservices.security.impl.DefaultAccessRightsService
All Implemented Interfaces:
AccessRightsService

public class DefaultAccessRightsService extends Object implements AccessRightsService
Default implementation for AccessRightsService
  • Constructor Details

  • Method Details

    • checkCreatePermission

      public void checkCreatePermission(@NotNull @NotNull String type)
      Checks if the current user can create an instance of the type. The implementation may throw a RuntimeException if the user does not have the create permission for the type. TypeAccessPermissionException is thrown if the user doesn't have the permission.
      Specified by:
      checkCreatePermission in interface AccessRightsService
      Parameters:
      type - type code to check permissions for
    • checkReadPermission

      public void checkReadPermission(@NotNull @NotNull String type)
      Checks if the current user can read the type. The implementation may throw a RuntimeException if the user does not have the read permission for the type. TypeAccessPermissionException is thrown if the user doesn't have the permission.
      Specified by:
      checkReadPermission in interface AccessRightsService
      Parameters:
      type - type code to check permissions for
    • checkUpdatePermission

      public void checkUpdatePermission(@NotNull @NotNull String type)
      Checks if the current user can update an instance of the type. The implementation may throw a RuntimeException if the user does not have the update permission for the type. TypeAccessPermissionException is thrown if the user doesn't have the permission.
      Specified by:
      checkUpdatePermission in interface AccessRightsService
      Parameters:
      type - type code to check permissions for
    • checkDeletePermission

      public void checkDeletePermission(@NotNull @NotNull String type)
      Checks if the current user can delete an instance of the type. The implementation may throw a RuntimeException if the user does not have the delete permission for the type. TypeAccessPermissionException is thrown if the user doesn't have the permission.
      Specified by:
      checkDeletePermission in interface AccessRightsService
      Parameters:
      type - type code to check permissions for