Examples of LS454Pool


Examples of uk.ac.bbsrc.tgac.miso.core.data.impl.ls454.LS454Pool

    return new IlluminaPool(user);
  }

  @Override
  public LS454Pool getLS454Pool() {
    return new LS454Pool();
  }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.data.impl.ls454.LS454Pool

  public LS454Pool getLS454Pool() {
    return new LS454Pool();
  }

  public LS454Pool getLS454Pool(User user) {
    return new LS454Pool(user);
  }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.data.impl.ls454.LS454Pool

  @RequestMapping(value = "/new/dilution/{dilutionId}", method = RequestMethod.GET)
  public ModelAndView setupFormWithDilution(@PathVariable Long dilutionId,
                                ModelMap model) throws IOException {
    try {
      User user = securityManager.getUserByLoginName(SecurityContextHolder.getContext().getAuthentication().getName());
      LS454Pool pool = dataObjectFactory.getLS454Pool(user);
      model.put("title", "New 454 Pool");

      if (!pool.userCanRead(user)) {
        throw new SecurityException("Permission denied.");
      }

      if (dilutionId != null) {
          emPCRDilution ed = requestManager.getEmPcrDilutionById(dilutionId);
        if (ed != null) {
          pool.addPoolableElement(ed);
        }
      }

      model.put("formObj", pool);
      model.put("pool", pool);
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.data.impl.ls454.LS454Pool

  }


  @RequestMapping(value = "/import", method = RequestMethod.POST)
  public String importEmPCRDilutionsToPool(HttpServletRequest request, ModelMap model) throws IOException {
    LS454Pool p = (LS454Pool)model.get("pool");
    String[] dils = request.getParameterValues("importdilslist");
    for (String s : dils) {
      emPCRDilution ld = requestManager.getEmPcrDilutionByBarcode(s);
      if (ld != null) {
        try {
          p.addPoolableElement(ld);
        }
        catch (MalformedDilutionException e) {
          log.debug("Cannot add emPCR dilution "+s+" to pool " + p.getName());
          e.printStackTrace();
        }
      }
    }

    requestManager.savePool(p);
    return "redirect:/miso/pool/ls454/" + p.getId();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.