private Set<String> getDeliverableUnitRefs(DcsEntity deliverableUnit) { Set<String> rels = new HashSet<String>(); DcsDeliverableUnit du = (DcsDeliverableUnit) deliverableUnit; for (DcsEntityReference ref : du.getCollections()) { rels.add(ref.getRef()); } for (DcsEntityReference ref : du.getMetadataRef()) { rels.add(ref.getRef()); } for (DcsEntityReference ref : du.getParents()) { rels.add(ref.getRef()); } for (DcsRelation ref : du.getRelations()) { rels.add(ref.getRef().getRef()); } return rels; }
private Set<String> getDeliverableUnitRefs(DcsEntity deliverableUnit) { Set<String> rels = new HashSet<String>(); DcsDeliverableUnit du = (DcsDeliverableUnit) deliverableUnit; for (DcsEntityReference ref : du.getCollections()) { rels.add(ref.getRef()); } for (DcsEntityReference ref : du.getMetadataRef()) { rels.add(ref.getRef()); } for (DcsEntityReference ref : du.getParents()) { rels.add(ref.getRef()); } for (DcsRelation ref : du.getRelations()) { rels.add(ref.getRef().getRef()); } return rels; }
for (DcsEntityReference ref : du.getCollections()) { entities.add(ref.getRef());
for (DcsEntityReference ref : du.getCollections()) { entities.add(ref.getRef());
for (DcsCollectionRef col_ref : check.getCollections()) { updateAncestry(ancestrymap, du.getId(), col_ref);
/** * 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(); }
DcsDeliverableUnit du = (DcsDeliverableUnit) entity; if (du.getCollections().contains(parent_col_ref)) { result.add(entity); add_descendants(entity, entities, result);
DcsDeliverableUnit du = (DcsDeliverableUnit) entity; if (du.getCollections().contains(parent_col_ref)) { result.add(entity); add_descendants(entity, entities, result);
addRefSet(doc, du.getCollections(), DeliverableUnitField.COLLECTIONS); addRefSet(doc, du.getParents(), DeliverableUnitField.PARENT); addMetadataRefSet(doc, du.getMetadataRef(), EntityField.METADATA_REF,
final Set<DcsCollectionRef> cRefs = du.getCollections(); final Set<DcsMetadataRef> mdRefs = du.getMetadataRef(); final Set<DcsMetadata> mds = du.getMetadata();
final Collection<DcsResourceIdentifier> altIds = du.getAlternateIds(); final String title = du.getTitle(); final Collection<DcsCollectionRef> cRefs = du.getCollections(); final Collection<DcsMetadataRef> mdRefs = du.getMetadataRef(); final Collection<DcsMetadata> mds = du.getMetadata();