Package org.openntf.domino

Examples of org.openntf.domino.NoteCollection


  public FileResource getFileResource(final String name) {
    if (DominoUtils.isUnid(name)) {
      Document doc = database_.getDocumentByUNID(name);
      return new FileResource(doc);
    } else {
      NoteCollection notes = getNoteCollection(
          String.format(" !@Contains($Flags; '~') & @Contains($Flags; 'g') & @Explode($TITLE; '|')=\"%s\" ",
              DominoUtils.escapeForFormulaString(name)), EnumSet.of(SelectOption.MISC_FORMAT));

      String noteId = notes.getFirstNoteID();
      if (!noteId.isEmpty()) {
        Document doc = database_.getDocumentByID(noteId);
        return new FileResource(doc);
      }
    }
View Full Code Here


    return null;
  }

  @Override
  public DesignCollection<org.openntf.domino.design.FileResource> getFileResources() {
    NoteCollection notes = getNoteCollection(" !@Contains($Flags; '~') & @Contains($Flags; 'g') ", EnumSet.of(SelectOption.MISC_FORMAT));
    return new DesignCollection<org.openntf.domino.design.FileResource>(notes, FileResource.class);
  }
View Full Code Here

  public FileResource getHiddenFileResource(final String name) {
    if (DominoUtils.isUnid(name)) {
      Document doc = database_.getDocumentByUNID(name);
      return new FileResource(doc);
    } else {
      NoteCollection notes = getNoteCollection(
          String.format(
              " @Contains($Flags; '~') & @Contains($Flags; 'g') & !@Contains($Flags; 'K':';':'[':',') & @Explode($TITLE; '|')=\"%s\" ",
              DominoUtils.escapeForFormulaString(name)), EnumSet.of(SelectOption.MISC_FORMAT));

      String noteId = notes.getFirstNoteID();
      if (!noteId.isEmpty()) {
        Document doc = database_.getDocumentByID(noteId);
        return new FileResource(doc);
      }
    }
View Full Code Here

    return null;
  }

  @Override
  public DesignCollection<org.openntf.domino.design.FileResource> getHiddenFileResources() {
    NoteCollection notes = getNoteCollection(" @Contains($Flags; '~') & @Contains($Flags; 'g') & !@Contains($Flags; 'K':';':'[':',')",
        EnumSet.of(SelectOption.MISC_FORMAT));
    return new DesignCollection<org.openntf.domino.design.FileResource>(notes, FileResource.class);
  }
View Full Code Here

  public ImageResource getImageResource(final String name) {
    if (DominoUtils.isUnid(name)) {
      Document doc = database_.getDocumentByUNID(name);
      return new ImageResource(doc);
    } else {
      NoteCollection notes = getNoteCollection(
          String.format(" @Contains($Flags; 'i') & @Explode($TITLE; '|')=\"%s\" ", DominoUtils.escapeForFormulaString(name)),
          EnumSet.of(SelectOption.IMAGE_RESOURCES));

      String noteId = notes.getFirstNoteID();
      if (!noteId.isEmpty()) {
        Document doc = database_.getDocumentByID(noteId);
        return new ImageResource(doc);
      }
    }
View Full Code Here

  /* (non-Javadoc)
   * @see org.openntf.domino.design.DatabaseDesign#getImageResources()
   */
  @Override
  public org.openntf.domino.design.DesignCollection<org.openntf.domino.design.ImageResource> getImageResources() {
    NoteCollection notes = getNoteCollection(" @Contains($Flags; 'i') ", EnumSet.of(SelectOption.IMAGE_RESOURCES));
    return new DesignCollection<org.openntf.domino.design.ImageResource>(notes, ImageResource.class);
  }
View Full Code Here

  public StyleSheet getStyleSheet(final String name) {
    if (DominoUtils.isUnid(name)) {
      Document doc = database_.getDocumentByUNID(name);
      return new StyleSheet(doc);
    } else {
      NoteCollection notes = getNoteCollection(
          String.format(" @Contains($Flags; '=') & @Explode($TITLE; '|')=\"%s\" ", DominoUtils.escapeForFormulaString(name)),
          EnumSet.of(SelectOption.STYLESHEETS));

      String noteId = notes.getFirstNoteID();
      if (!noteId.isEmpty()) {
        Document doc = database_.getDocumentByID(noteId);
        return new StyleSheet(doc);
      }
    }
View Full Code Here

  /* (non-Javadoc)
   * @see org.openntf.domino.design.DatabaseDesign#getStyleSheets()
   */
  @Override
  public org.openntf.domino.design.DesignCollection<org.openntf.domino.design.StyleSheet> getStyleSheets() {
    NoteCollection notes = getNoteCollection(" @Contains($Flags; '=') ", EnumSet.of(SelectOption.STYLESHEETS));
    return new DesignCollection<org.openntf.domino.design.StyleSheet>(notes, StyleSheet.class);
  }
View Full Code Here

  public JavaResource getJavaResource(final String name) {
    if (DominoUtils.isUnid(name)) {
      Document doc = database_.getDocumentByUNID(name);
      return new JavaResource(doc);
    } else {
      NoteCollection notes = getNoteCollection(
          String.format(" @Contains($Flags; 'g') & @Contains($Flags; '[') & @Explode($TITLE; '|')=\"%s\" ",
              DominoUtils.escapeForFormulaString(name)), EnumSet.of(SelectOption.MISC_FORMAT));

      String noteId = notes.getFirstNoteID();
      if (!noteId.isEmpty()) {
        Document doc = database_.getDocumentByID(noteId);
        return new JavaResource(doc);
      }
    }
View Full Code Here

   *
   * @see org.openntf.domino.design.DatabaseDesign#getJavaResources()
   */
  @Override
  public DesignCollection<org.openntf.domino.design.JavaResource> getJavaResources() {
    NoteCollection notes = getNoteCollection(" @Contains($Flags; 'g') & @Contains($Flags; '[') ", EnumSet.of(SelectOption.MISC_FORMAT));
    return new DesignCollection<org.openntf.domino.design.JavaResource>(notes, JavaResource.class);
  }
View Full Code Here

TOP

Related Classes of org.openntf.domino.NoteCollection

Copyright © 2018 www.massapicom. 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.