Package org.openntf.domino.helpers

Examples of org.openntf.domino.helpers.DocumentSyncHelper.process()


    syncMap.put("@Now", "LastSync");
    DocumentSyncHelper helper = new DocumentSyncHelper(DocumentSyncHelper.Strategy.CREATE_AND_REPLACE, syncMap,
        currDb.getServer(), currDb.getFilePath(), "AllContactsByState", "Key");
    View states = currDb.getView("AllStates");
    DocumentCollection sourceCollection = states.getAllDocuments();
    helper.process(sourceCollection);
    ExtLibUtil.getViewScope().put("javaTest", "Done");
  }

  public void sendSimpleEmail() {
    DominoEmail myEmail = new DominoEmail();
View Full Code Here


    helper.setSourceKeyFormula("CompID");
    java.util.Date sinceDate = new java.util.Date(0);
    org.openntf.domino.DateTime dt = sourceDb.getAncestorSession().createDateTime(sinceDate);
    org.openntf.domino.DocumentCollection sourceCollection = sourceDb.getModifiedDocuments(dt);
    helper.process(sourceCollection);
    helper.setTransactionRule(DocumentSyncHelper.TransactionRule.COMMIT_EVERY_SOURCE);
    helper.processSince(sourceDb, sinceDate);
  }

  // ******* END HELPER SAMPLES
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.