protected DcsManifestation getFirstManifestationOf(Dcp dcp, DcsDeliverableUnit du, String man_type) { for (DcsManifestation test : dcp.getManifestations()) { if (test.getDeliverableUnit().equals(du.getId()) && test.getType().equals(man_type)) { return test; } } return null; }
/** * Copy constructor for a DcsManifestation. The state of <code>toCopy</code> is copied * to this. * * @param toCopy the dcs manifestation to copy */ public DcsManifestation(DcsManifestation toCopy) { super(toCopy); this.deliverableUnit = toCopy.getDeliverableUnit(); this.metadata = toCopy.getMetadata(); this.manifestationFiles = toCopy.getManifestationFiles(); this.metadataRef = toCopy.getMetadataRef(); this.technicalEnvironment = toCopy.getTechnicalEnvironment(); this.type = toCopy.getType(); this.dateCreated = toCopy.getDateCreated(); }
private static SolrInputDocument toSolr(DcsManifestation man, ArchiveStore store) throws IOException { SolrInputDocument doc = new SolrInputDocument(); add(doc, EntityField.ID, man.getId()); add(doc, EntityField.TYPE, EntityTypeValue.MANIFESTATION.solrValue()); add(doc, ManifestationField.DELIVERABLE_UNIT, man.getDeliverableUnit()); add(doc, CoreMetadataField.TYPE, man.getType()); add(doc, ManifestationField.DATE_CREATED, man.getDateCreated()); addMetadataSet(doc, man.getMetadata()); addManifestationFileSet(doc, man.getManifestationFiles(), store); addMetadataRefSet(doc, man.getMetadataRef(), EntityField.METADATA_REF, store); addStrings(doc, man.getTechnicalEnvironment(), ManifestationField.TECH); addResourceIdentifierSet(doc, man.getAlternateIds()); return doc; }
final Set<DcsMetadataRef> metadataRef = man.getMetadataRef(); final Set<String> techenv = man.getTechnicalEnvironment(); final String type = man.getType();
final Collection<DcsMetadataRef> metadataRef = man.getMetadataRef(); final Collection<String> techenv = man.getTechnicalEnvironment(); final String type = man.getType();