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;
}
}
Aggregations