Interface AccessRightsService

All Known Implementing Classes:
DefaultAccessRightsService

public interface AccessRightsService
This Service provides convenience methods to check for the basic CRUD permissions on item types.
  • Method Details

    • checkCreatePermission

      void checkCreatePermission(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.
      Parameters:
      type - type code to check permissions for
    • checkReadPermission

      void checkReadPermission(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.
      Parameters:
      type - type code to check permissions for
    • checkUpdatePermission

      void checkUpdatePermission(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.
      Parameters:
      type - type code to check permissions for
    • checkDeletePermission

      void checkDeletePermission(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.
      Parameters:
      type - type code to check permissions for