Class DefaultAccessRightsService

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkCreatePermission​(@NotNull java.lang.String type)
      Checks if the current user can create an instance of the type.
      void checkDeletePermission​(@NotNull java.lang.String type)
      Checks if the current user can delete an instance of the type.
      void checkReadPermission​(@NotNull java.lang.String type)
      Checks if the current user can read the type.
      void checkUpdatePermission​(@NotNull java.lang.String type)
      Checks if the current user can update an instance of the type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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 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. 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 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. 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 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. 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