code: public Map<String, Job> getJobs(FolderJob folder, String view) throws IOException {
          String path = UrlUtils.toBaseUrl(folder);
          Class<? extends MainView> viewClass = MainView.class;
          if (view != null) {
              path = path + "view/" + EncodingUtils.encode(view) + "/";
              viewClass = View.class;
          }
          List<Job> jobs = client.get(path, viewClass).getJobs();
  
          return jobs.stream()
                  .map(SET_CLIENT(this.client))
                  .collect(toMap(s -> s.getName(), s -> s));
      }
docs: Get a list of all the defined jobs on the server (at the specified view
  level and in the specified folder)
  
  @param folder {@link FolderJob}
  @param view The view to use.
  @return list of defined jobs (view level, for details @see Job#details
  @throws IOException in case of an error.