Package lotus.domino

Examples of lotus.domino.ViewEntry


      if(StringUtil.isNotEmpty(id)) {
        Database database = ExtLibUtil.getCurrentDatabase();
        Vector v = new Vector();
        v.add(FORM);
        v.add(id);
        ViewEntry e = database.getView("AllSnippetsById").getEntryByKey(v);
        if(e!=null) {
          Document doc = e.getDocument();
          Properties p = new Properties();
          String props = doc.getItemValueString("Properties");
          if(StringUtil.isNotEmpty(props)) {
            p.load(new StringReader(props));
          }
View Full Code Here


    d.copyAllItems(newDoc, true);
    newDoc.save();
  }
  public void copyEnvironment(DominoDocument doc, String name) throws NotesException, IOException {
    View v = ExtLibUtil.getCurrentDatabase().getView("AllEnvironments");
    ViewEntry ve = v.getEntryByKey(name);
    if(ve!=null) {
      Document d = ve.getDocument();
      d.copyAllItems(doc.getDocument(), true);
      doc.setDocument(doc.getDocument());
    }
  }
View Full Code Here

  /** {@inheritDoc} */
  @Override
  public NotesViewEntry getEntry(Object entry) throws RepositoryException {
    try {
      ViewEntry foundEntry = getNotesObject().getEntry(
          TypeConverter.toNotesItemValue(entry));
      if (foundEntry == null) {
        return null;
      }
      return new NotesViewEntryImpl(foundEntry);
View Full Code Here

  /** {@inheritDoc} */
  @Override
  public NotesViewEntry getFirstEntry() throws RepositoryException {
    try {
      ViewEntry foundEntry = getNotesObject().getFirstEntry();
      if (foundEntry == null) {
        return null;
      }
      return new NotesViewEntryImpl(foundEntry);
    } catch (NotesException e) {
View Full Code Here

  /** {@inheritDoc} */
  @Override
  public NotesViewEntry getNextEntry() throws RepositoryException {
    try {
      ViewEntry foundEntry = getNotesObject().getNextEntry();
      if (foundEntry == null) {
        return null;
      }
      return new NotesViewEntryImpl(foundEntry);
    } catch (NotesException e) {
View Full Code Here

  /** {@inheritDoc} */
  @Override
  public NotesViewEntry getNextEntry(NotesViewEntry previousEntry)
      throws RepositoryException {
    try {
      ViewEntry foundEntry = getNotesObject().getEntry(
          TypeConverter.toNotesItemValue(previousEntry));
      if (foundEntry == null) {
        return null;
      }
      return new NotesViewEntryImpl(foundEntry);
View Full Code Here

  /** {@inheritDoc} */
  @Override
  public NotesViewEntry getLastEntry() throws RepositoryException {
    try {
      ViewEntry foundEntry = getNotesObject().getLastEntry();
      if (foundEntry == null) {
        return null;
      }
      return new NotesViewEntryImpl(foundEntry);
    } catch (NotesException e) {
View Full Code Here

  /** {@inheritDoc} */
  @Override
  public NotesViewEntry getFirst() throws NotesConnectorExceptionImpl {
    try {
      ViewEntry first = getNotesObject().getFirst();
      if (first == null) {
        return null;
      }
      return new NotesViewEntryImpl(first);
    } catch (NotesException e) {
View Full Code Here

  /** {@inheritDoc} */
  @Override
  public NotesViewEntry getNext() throws NotesConnectorExceptionImpl {
    try {
      ViewEntry next = getNotesObject().getNext();
      if (next == null) {
        return null;
      }
      return new NotesViewEntryImpl(next);
    } catch (NotesException e) {
View Full Code Here

  /** {@inheritDoc} */
  @Override
  public NotesViewEntry getNext(NotesViewEntry previousEntry)
      throws NotesConnectorExceptionImpl {
    try {
      ViewEntry next = getNotesObject().getNext(
          ((NotesViewEntryImpl) previousEntry).getNotesObject());
      if (next == null) {
        return null;
      }
      return new NotesViewEntryImpl(next);
View Full Code Here

TOP

Related Classes of lotus.domino.ViewEntry

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.