コード例 #1
0
  public Object generateThumbnails(ThumbnailGenerationJob tgj) throws Throwable {

    List<Long> plateIds = new ArrayList<Long>();
    Image image = pixList.get(0).getImage();
    if (image.sizeOfWellSamples() > 0) {
      Plate plate = image.copyWellSamples().get(0).getWell().getPlate();
      plateIds.add(plate.getId().getValue());
    }

    notifyObservers(new ImportEvent.IMPORT_OVERLAYS(0, null, userSpecifiedTarget, null, 0, null));
    importOverlays(pixList, plateIds);

    notifyObservers(new ImportEvent.IMPORT_PROCESSING(0, null, userSpecifiedTarget, null, 0, null));
    if (doThumbnails) {
      store.resetDefaultsAndGenerateThumbnails(plateIds, pixelIds());
    } else {
      log.warn("Not creating thumbnails at user request!");
    }

    return null;
  }