Package uk.ac.bbsrc.tgac.miso.core.data

Examples of uk.ac.bbsrc.tgac.miso.core.data.PrintJob


    return printJob.getJobId();
  }

  public PrintJob get(long jobId) throws IOException {
    List eResults = template.query(PRINT_JOB_SELECT_BY_ID, new Object[]{jobId}, new PrintJobMapper());
    PrintJob e = eResults.size() > 0 ? (PrintJob) eResults.get(0) : null;
    return e;
  }
View Full Code Here


  }

  public JSONObject reprintJob(HttpSession session, JSONObject json) {
    if (json.has("jobId")) {
      try {
        PrintJob pj = printManager.getPrintJob(json.getLong("jobId"));
        printManager.print(pj.getQueuedElements(), pj.getPrintService().getName(), pj.getPrintUser());
        return JSONUtils.SimpleJSONResponse("Print job " + pj + " reprinted successfully");
      }
      catch (IOException e) {
        e.printStackTrace();
        return JSONUtils.SimpleJSONError("Cannot retrieve print job.");
View Full Code Here


      File f = mps.getLabelFor(jsonObject);
      if (f != null) thingsToPrint.add(f);

      PrintJob pj = printManager.print(thingsToPrint, mps.getName(), user);
      return JSONUtils.SimpleJSONResponse("Job " + pj.getJobId() + " : Barcodes printed.");
    }
    catch (MisoPrintException e) {
      e.printStackTrace();
      return JSONUtils.SimpleJSONError("Failed to print barcodes: " + e.getMessage());
    }
View Full Code Here


      File f = mps.getLabelFor(jsonObject);
      if (f != null) thingsToPrint.add(f);

      PrintJob pj = printManager.print(thingsToPrint, mps.getName(), user);
      return JSONUtils.SimpleJSONResponse("Job " + pj.getJobId() + " : Barcodes printed.");
    }
    catch (MisoPrintException e) {
      e.printStackTrace();
      return JSONUtils.SimpleJSONError("Failed to print barcodes: " + e.getMessage());
    }
View Full Code Here

TOP

Related Classes of uk.ac.bbsrc.tgac.miso.core.data.PrintJob

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.