use of com.darwino.domino.napi.DominoException in project org.openntf.nsfodp by OpenNTF.
the class DarwinoNDXLExporter method export.
@Override
public void export(NDatabase database, Collection<Integer> noteIds, OutputStream os) {
try {
NSFDatabase db = ((DarwinoNDatabase) database).getNSFDatabase();
NSFNoteIDCollection coll = db.getParent().createNoteIDCollection();
try {
coll.addAll(noteIds);
this.exporter.export(db, coll, os);
} finally {
coll.free();
}
} catch (DominoException e) {
throw new NDominoException(e.getStatus(), e);
}
}
use of com.darwino.domino.napi.DominoException in project org.openntf.nsfodp by OpenNTF.
the class DarwinoNotesAPI method createDXLImporter.
@Override
public NDXLImporter createDXLImporter() {
try {
NSFDXLImporter importer = session.createDXLImporter();
importer.setDesignImportOption(DXLIMPORTOPTION.CREATE);
importer.setACLImportOption(DXLIMPORTOPTION.REPLACE_ELSE_IGNORE);
importer.setReplaceDBProperties(true);
importer.setReplicaRequiredForReplaceOrUpdate(false);
return new DarwinoNDXLImporter(importer);
} catch (DominoException e) {
throw new NDominoException(e.getStatus(), e);
}
}
Aggregations