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

Examples of uk.ac.bbsrc.tgac.miso.core.data.impl.solid.SolidPool


    return new LS454Pool(user);
  }

  @Override
  public SolidPool getSolidPool() {
    return new SolidPool();
  }
View Full Code Here


  public SolidPool getSolidPool() {
    return new SolidPool();
  }

  public SolidPool getSolidPool(User user) {
    return new SolidPool(user);
  }
View Full Code Here

  @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());
      SolidPool pool = dataObjectFactory.getSolidPool(user);
      model.put("title", "New Solid 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

    }
  }

  @RequestMapping(value = "/import", method = RequestMethod.POST)
  public String importEmPCRDilutionsToPool(HttpServletRequest request, ModelMap model) throws IOException {
    SolidPool p = (SolidPool)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/solid/" + p.getId();
  }
View Full Code Here

TOP

Related Classes of uk.ac.bbsrc.tgac.miso.core.data.impl.solid.SolidPool

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.