Examples of buildCollection()


Examples of org.openntf.domino.NoteCollection.buildCollection()

  @Deprecated
  public NoteCollection getNoteCollection() {
    NoteCollection nc = getAncestorDatabase().createNoteCollection(false);
    nc.setSelectDocuments(true);
    nc.setSelectionFormula(getSelectionFormula());
    nc.buildCollection();
    return nc;
  }

  /*
   * (non-Javadoc)
 
View Full Code Here

Examples of org.openntf.domino.NoteCollection.buildCollection()

    Set<SelectOption> noteClass = new java.util.HashSet<SelectOption>();
    noteClass.add(SelectOption.DOCUMENTS);
    nc.setSelectOptions(noteClass);
    String selectionFormula = getSelectionFormula();
    nc.setSelectionFormula(selectionFormula);
    nc.buildCollection();
    return nc.getCount();
  }

  public String getSelectionFormula() {
    StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of org.openntf.domino.NoteCollection.buildCollection()

    if (since.after(this.getLastModified().toJavaDate()))
      return 0;
    NoteCollection nc = createNoteCollection(false);
    nc.setSinceTime(since);
    nc.setSelectOptions(noteClass);
    nc.buildCollection();
    return nc.getCount();
  }

  public int[] getDailyModifiedNoteCount(final java.util.Date since) {
    Set<SelectOption> noteClass = new java.util.HashSet<SelectOption>();
View Full Code Here

Examples of org.openntf.domino.NoteCollection.buildCollection()

  @Override
  public String getNoteID() {
    NoteCollection notes = this.getParentDatabase().createNoteCollection(false);
    notes.setSelectOutlines(true);
    notes.setSelectionFormula("$TITLE=\"" + this.getName().replace("\"", "\\\"") + "\"");
    notes.buildCollection();
    return notes.getFirstNoteID();
  }

  /*
   * (non-Javadoc)
 
View Full Code Here

Examples of org.openntf.domino.NoteCollection.buildCollection()

  @Override
  public String getUniversalID() {
    NoteCollection notes = this.getParentDatabase().createNoteCollection(false);
    notes.setSelectOutlines(true);
    notes.setSelectionFormula("$TITLE=\"" + this.getName().replace("\"", "\\\"") + "\"");
    notes.buildCollection();
    return notes.getUNID(notes.getFirstNoteID());
  }

  /*
   * (non-Javadoc)
 
View Full Code Here

Examples of org.openntf.domino.NoteCollection.buildCollection()

  protected NoteCollection getNoteCollection(final String selectionFormula, final Set<SelectOption> options) {
    NoteCollection notes = database_.createNoteCollection(false);
    notes.setSelectOptions(options);
    notes.setSelectionFormula(selectionFormula);
    notes.buildCollection();
    return notes;
  }

  /*
   * (non-Javadoc)
 
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.