Package lotus.domino

Examples of lotus.domino.ViewEntryCollection


      List<String> allEnvs = new ArrayList<String>();
      Database db = ExtLibUtil.getCurrentDatabase();
      if(db!=null) {
        View v = db.getView("AllEnvironments");
        if(v!=null) {
          ViewEntryCollection vc = v.getAllEntries();
          for(ViewEntry e=vc.getFirstEntry(); e!=null; e=vc.getNextEntry()) {
            Document d = e.getDocument();
            try {
              PlaygroundEnvironment env = readEnvironment(d);
              if(envs.length==0 || StringUtil.contains(envs, env.getName())) {
                env.setNotesUrl(d.getNotesURL());
View Full Code Here


    exportDocuments(view,null);
  }
  public void exportDocuments(View view, Object keys) throws IOException, NotesException {
    target.startExport();
    try {
      ViewEntryCollection entries = keys!=null ? view.getAllEntriesByKey(keys) : view.getAllEntries();
      try {
        for(ViewEntry entry=entries.getFirstEntry(); entry!=null; entry=entries.getNextEntry(entry)) {
          Document doc = entry.getDocument();
          try {
            exportDocument(doc);
          } finally {
            doc.recycle();
          }
        }
      } finally {
        entries.recycle();
      }
    } finally {
      target.endExport();
    }
  }
View Full Code Here

        RootNode root = new RootNode();
        String apisSearch = (String)ExtLibUtil.getViewScope().get("assetSearch");
        if(StringUtil.isNotEmpty(apisSearch)) {
          v.FTSearch(apisSearch);
          //ViewEntryCollection col = v.getAllEntriesByKey(getAssetForm());
          ViewEntryCollection col = v.getAllEntries();
          for(ViewEntry e=col.getFirstEntry(); e!=null; e=col.getNextEntry()) {
            Vector<?> values = e.getColumnValues();
            String notesUnid = e.getUniversalID();
            // 2 type
            String type = (String)values.get(0);
            if(!StringUtil.equals(type, getAssetForm())) {
View Full Code Here

  /** {@inheritDoc} */
  @Override
  public NotesViewEntryCollection getAllEntries()
      throws NotesConnectorExceptionImpl {
    try {
      ViewEntryCollection results = getNotesObject().getAllEntries();
      return new NotesViewEntryCollectionImpl(results);
    } catch (NotesException e) {
      throw new NotesConnectorExceptionImpl(e);
    }
  }
View Full Code Here

  /** {@inheritDoc} */
  @Override
  public NotesViewEntryCollection getAllEntriesByKey(Vector keys)
      throws NotesConnectorExceptionImpl {
    try {
      ViewEntryCollection results = getNotesObject().getAllEntriesByKey(
          TypeConverter.toNotesItemValue(keys));
      return new NotesViewEntryCollectionImpl(results);
    } catch (NotesException e) {
      throw new NotesConnectorExceptionImpl(e);
    }
View Full Code Here

  /** {@inheritDoc} */
  @Override
  public NotesViewEntryCollection getAllEntriesByKey(Object key)
      throws NotesConnectorExceptionImpl {
    try {
      ViewEntryCollection results = getNotesObject().getAllEntriesByKey(
          TypeConverter.toNotesItemValue(key));
      return new NotesViewEntryCollectionImpl(results);
    } catch (NotesException e) {
      throw new NotesConnectorExceptionImpl(e);
    }
View Full Code Here

  /** {@inheritDoc} */
  @Override
  public NotesViewEntryCollection getAllEntriesByKey(Vector keys, boolean exact)
      throws NotesConnectorExceptionImpl {
    try {
      ViewEntryCollection results = getNotesObject().getAllEntriesByKey(
          TypeConverter.toNotesItemValue(keys), exact);
      return new NotesViewEntryCollectionImpl(results);
    } catch (NotesException e) {
      throw new NotesConnectorExceptionImpl(e);
    }
View Full Code Here

  /** {@inheritDoc} */
  @Override
  public NotesViewEntryCollection getAllEntriesByKey(Object key, boolean exact)
      throws NotesConnectorExceptionImpl {
    try {
      ViewEntryCollection results = getNotesObject().getAllEntriesByKey(
          TypeConverter.toNotesItemValue(key), exact);
      return new NotesViewEntryCollectionImpl(results);
    } catch (NotesException e) {
      throw new NotesConnectorExceptionImpl(e);
    }
View Full Code Here

    View authorView = db.getView("AllContacts");
    authorView.refresh();
    try {
      int maxAuthors = 15;
      int nAuthor = 0;
      ViewEntryCollection authorCol = authorView.getAllEntries();
      for (ViewEntry e = authorCol.getFirstEntry(); e != null && nAuthor < maxAuthors; e = authorCol
          .getNextEntry()) {
        Vector<?> values = e.getColumnValues();
        String name = (String) values.get(7);
        // Add it a random number of times to the list
        int n = ((int) (Math.random() * maxAuthors)) + 1;
View Full Code Here

  }

  public void processView() {
    Database db = null;
    View view = null;
    ViewEntryCollection collection = null;
    ViewEntry currentEntry = null;
    ViewEntry nextEntry = null;
    StringBuilder sb = new StringBuilder();
    try {
      db = ExtLibUtil.getCurrentDatabase();
      view = db.getView("allStates");
      view.setAutoUpdate(false);
      collection = view.getAllEntries();
      currentEntry = collection.getFirstEntry();
      while (currentEntry != null) {
        nextEntry = collection.getNextEntry(currentEntry);
        try {
          sb.append(currentEntry.getNoteID() + "..."); // Do whatever it is you actually want to get done
        } catch (lotus.domino.NotesException ne1) {
          ne1.printStackTrace();
        } finally {
          currentEntry.recycle();
        }
        currentEntry = nextEntry;
      }
    } catch (lotus.domino.NotesException ne) {
      ne.printStackTrace();
    } finally {
      try {
        collection.recycle();
      } catch (lotus.domino.NotesException ne) {

      }
    }
    ExtLibUtil.getViewScope().put("oldJavaTest", sb.toString());
View Full Code Here

TOP

Related Classes of lotus.domino.ViewEntryCollection

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.