Search in sources :

Example 1 with Incomplete

use of org.openntf.domino.annotations.Incomplete in project org.openntf.domino by OpenNTF.

the class Database method createMergeableDocumentCollection.

@Override
@Incomplete
public DocumentCollection createMergeableDocumentCollection() {
    try {
        lotus.domino.Database db = getDelegate();
        if (!db.isOpen()) {
            db.open();
        }
        // $NON-NLS-1$
        lotus.domino.DocumentCollection rawColl = getDelegate().search("@False", db.getLastModified(), 1);
        if (rawColl.getCount() > 0) {
            int[] nids = CollectionUtils.getNoteIDs(rawColl);
            for (int nid : nids) {
                rawColl.subtract(nid);
            }
        }
        org.openntf.domino.DocumentCollection result = fromLotus(rawColl, DocumentCollection.SCHEMA, this);
        return result;
    } catch (NotesException e) {
        DominoUtils.handleException(e, this);
        return null;
    }
}
Also used : OpenNTFNotesException(org.openntf.domino.exceptions.OpenNTFNotesException) NotesException(lotus.domino.NotesException) DocumentCollection(org.openntf.domino.DocumentCollection) Incomplete(org.openntf.domino.annotations.Incomplete)

Aggregations

NotesException (lotus.domino.NotesException)1 DocumentCollection (org.openntf.domino.DocumentCollection)1 Incomplete (org.openntf.domino.annotations.Incomplete)1 OpenNTFNotesException (org.openntf.domino.exceptions.OpenNTFNotesException)1