/** * Copy constructor for a DcsDeliverableUnit. The state of <code>toCopy</code> is copied * to this. * * @param toCopy the deliverable unit to copy, must not be <code>null</code> * @throws IllegalArgumentException if <code>toCopy</code> is <code>null</code> */ public DcsDeliverableUnit(DcsDeliverableUnit toCopy) { super(toCopy); this.coreMd = toCopy.getCoreMd(); this.collections = toCopy.getCollections(); this.metadata = toCopy.getMetadata(); this.metadataRefs = toCopy.getMetadataRef(); this.relations = toCopy.getRelations(); this.formerExternalRefs = toCopy.getFormerExternalRefs(); this.isDigitalSurrogate = toCopy.isDigitalSurrogate(); this.parents = toCopy.getParents(); }
add(doc, CoreMetadataField.TYPE, du.getType()); if (du.isDigitalSurrogate() != null) { doc.addField(DeliverableUnitField.DIGITAL_SURROGATE.solrName(), du.isDigitalSurrogate());
final Set<String> subjects = du.getSubjects(); final Set<DcsDeliverableUnitRef> parents = du.getParents(); final Boolean isDigitalSurrogate = du.isDigitalSurrogate(); final String type = du.getType(); final DcsRights rights = du.getRights();
final Collection<String> subjects = du.getSubjects(); final Collection<DcsDeliverableUnitRef> parents = du.getParents(); final Boolean isDigitalSurrogate = du.isDigitalSurrogate(); final String type = du.getType(); final String rights = du.getRights();