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 Detail

      • checkCreatePermission

        void checkCreatePermission​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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