Search in sources :

Example 1 with NSFDXLImporter

use of com.darwino.domino.napi.wrap.NSFDXLImporter 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);
    }
}
Also used : NDominoException(org.openntf.nsfodp.commons.odp.notesapi.NDominoException) NSFDXLImporter(com.darwino.domino.napi.wrap.NSFDXLImporter) DominoException(com.darwino.domino.napi.DominoException) NDominoException(org.openntf.nsfodp.commons.odp.notesapi.NDominoException)

Aggregations

DominoException (com.darwino.domino.napi.DominoException)1 NSFDXLImporter (com.darwino.domino.napi.wrap.NSFDXLImporter)1 NDominoException (org.openntf.nsfodp.commons.odp.notesapi.NDominoException)1