Package org.openntf.domino

Examples of org.openntf.domino.Database.openByReplicaID()


   * @see org.openntf.domino.ext.RichTextDoclink#getDatabase()
   */
  public Database getDatabase() {
    Session session = getAncestorSession();
    Database database = session.getDatabase("", "");
    database.openByReplicaID(getServerHint(), getDBReplicaID());
    return database;
  }

  /* (non-Javadoc)
   * @see org.openntf.domino.ext.RichTextDoclink#getDocument()
View Full Code Here


    }
  }

  public static Document getDocument(final Session session, final String server, final String replid, final String noteid) {
    final Database db = session.getDatabase("", "");
    db.openByReplicaID(server, replid);
    if (db.isOpen()) {
      final Document result = db.getDocumentByID(noteid);
      return result;
    } else {
      // TODO handle exception properly
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.