@Override public String getBarcodeExtraInfo() { return library.getName(); }
@Override public ValidationResult validateDeletion(Library object) { ValidationResult result = new ValidationResult(); if (object.getLibraryDilutions() != null && !object.getLibraryDilutions().isEmpty()) { result.addError(new ValidationError(object.getName() + " has " + object.getLibraryDilutions().size() + " dilution" + (object.getLibraryDilutions().size() > 1 ? "s" : ""))); } return result; }
@CoverageIgnore @Override public int compareTo(Library l) { if (getId() != 0L && l.getId() != 0L) { if (getId() < l.getId()) return -1; if (getId() > l.getId()) return 1; } else if (getName() != null && l.getName() != null) { return getName().compareTo(l.getName()); } else if (getAlias() != null && l.getAlias() != null) { return getAlias().compareTo(l.getAlias()); } return 0; }
libraryName.setTextContent(experiment.getLibrary().getAlias()); } else { libraryName.setTextContent(experiment.getLibrary().getName());
public static DilutionDto asDto(@Nonnull LibraryDilution from, boolean includeFullLibrary, boolean includeBoxPositions) { LibraryDto libDto = null; if (includeFullLibrary) { libDto = asDto(from.getLibrary(), false); } else { Library lib = from.getLibrary(); libDto = new LibraryDto(); libDto.setId(lib.getId()); libDto.setName(lib.getName()); libDto.setAlias(lib.getAlias()); libDto.setIdentificationBarcode(lib.getIdentificationBarcode()); if (lib.getPlatformType() != null) { libDto.setPlatformType(lib.getPlatformType().getKey()); } } return asDto(from, libDto, includeBoxPositions); }
dto.setName(from.getName()); dto.setParentSampleId(from.getSample().getId()); dto.setParentSampleAlias(from.getSample().getAlias());
v.setLibraryName(lib.getName()); v.setLibraryPaired(lib.getPaired()); if (lib.getLibrarySelectionType() != null) {