@Override public NativeDocument apply(Record input) { NativeDocument nativeDocument = documentFactory.getDocument(input); return nativeDocument; }
@Override public NativeDocument process(SourceImportDocument item) { NativeDocument document = documentFactory.getDocument(item.getContent()); document.addTagByKey(RepositoryStoreConstants.TAG_NAME_OBJECT_CLASS, BWMetaImporterConstants.SOURCE_FORMAT); return document; }
NativeDocument document = documentFactory.getDocument(record); if(document instanceof Document){ String bwmeta = writerSupport.write(((Document) document).getMetadata());
private void tryStore() throws IOException { // StoreClient storeClient = new DefaultStoreClient(store); RecordConditions conditions; conditions = new RecordConditions().withTags("dataset:open-book"); try (CloseableIterator<Record> contents = new RecordIterator(store, conditions, 10)) { // // Iterator<Record> contents = storelistRecordContents(conditions); while (contents.hasNext()) { Record record = (Record) contents.next(); tryRecord(factory.getDocument(record)); } } }
NativeDocument document = documentFactory.getDocument(record); if (document instanceof Document) { String bwmeta = writerSupport.write(((Document) document).getMetadata());
yElement.addStructure(new YStructure().setHierarchy(HierarchyWithLevelIds.EXT_HIERARCHY_PUBLICATION).setCurrent(currentLevel)); NativeDocument nativeDocument = documentFactory.createDocument(recordId.getUid()); Document document = documentFactory.getDocument(nativeDocument, yElement);
record = store.fetchRecord(new RecordId(oaiIdentifier, version)); NativeDocument nativeDocument = documentFactory.getDocument(record);