Interface RequiredPermission


  • public interface RequiredPermission
    Returned when checking privileges. If isAllowed() returns false, it will contain the privilege needed and the original entity that requires this privilege.
    • Method Detail

      • isAllowed

        boolean isAllowed()
        Returns:
        Returns a boolean indicating whether the required permission is available.
      • getPrivilege

        String getPrivilege()
        Returns:
        Returns the missing privilege.
      • getEntity

        com.redwood.scheduler.api.model.SchedulerEntity getEntity()
        Returns:
        Returns the entity (cause that was created/updated etc).