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

Examples of uk.ac.bbsrc.tgac.miso.core.data.impl.illumina.IlluminaPool


    return new PoolImpl<Poolable>(user);
  }

  @Override
  public IlluminaPool getIlluminaPool() {
    return new IlluminaPool();
  }
View Full Code Here


  public IlluminaPool getIlluminaPool() {
    return new IlluminaPool();
  }
 
  public IlluminaPool getIlluminaPool(User user) {
    return new IlluminaPool(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());
      IlluminaPool pool = dataObjectFactory.getIlluminaPool(user);
      model.put("title", "New Illumina Pool");

      if (pool == null) {
        throw new SecurityException("No such Illumina Pool");
      }
     
      if (!pool.userCanRead(user)) {
        throw new SecurityException("Permission denied.");
      }

      if (dilutionId != null) {
          LibraryDilution ld = requestManager.getLibraryDilutionById(dilutionId);
        if (ld != null) {
          pool.addPoolableElement(ld);
        }
      }

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

  }


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

    requestManager.savePool(p);
    return "redirect:/miso/pool/illumina/" + p.getId();
  }
View Full Code Here

TOP

Related Classes of uk.ac.bbsrc.tgac.miso.core.data.impl.illumina.IlluminaPool

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.