Package uk.ac.bbsrc.tgac.miso.core.service.printing

Examples of uk.ac.bbsrc.tgac.miso.core.service.printing.CustomPrintService


  public JSONObject addPrintService(HttpSession session, JSONObject json) {
    try {
      BarcodableSchema barcodableSchema = printManager.getBarcodableSchema(json.getString("schema"));
      MisoPrintService printService = new DefaultPrintService();
      if ("Custom".equals(json.getString("serviceFor"))) {
        printService = new CustomPrintService();
      }
      printService.setName(json.getString("serviceName"));
      PrintContext pc = printManager.getPrintContext(json.getString("contextName"));
      JSONObject contextFields = JSONObject.fromObject(json.getString("contextFields"));
      PrintServiceUtils.mapJSONToContextFields(contextFields, pc);
View Full Code Here


        barcodableSchema.getBarcodeLabelFactory().setFilesManager(misoFilesManager);
        barcodableSchema.getBarcodeLabelFactory().setSecurityManager(securityManager);
        }

        if ("net.sf.json.JSONObject".equals(rs.getString("printServiceFor"))) {
          printService = new CustomPrintService();
          printService.setBarcodableSchema(barcodableSchema);

          printService.setServiceId(rs.getLong("serviceId"));
          printService.setName(rs.getString("serviceName"));
          printService.setEnabled(rs.getBoolean("enabled"));
View Full Code Here

TOP

Related Classes of uk.ac.bbsrc.tgac.miso.core.service.printing.CustomPrintService

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.