Examples: ViewNavigator class and CacheSize, MaxLevel, and ParentView properties

This agent prints the properties for a view navigator.

import lotus.domino.*;
public class JavaAgent extends AgentBase {
  public void NotesMain() {
    try {
      Session session = getSession();
      AgentContext agentContext = session.getAgentContext();
      // (Your code goes here) 
      Database db = agentContext.getCurrentDatabase();
      View view = db.getView("By Category");
      view.setAutoUpdate(false);
      ViewNavigator nav = view.createViewNav();
      System.out.println("Cache size = " + 
      nav.getCacheSize());
      System.out.println("Max level = " + nav.getMaxLevel());
      System.out.println("Parent view = " + 
      nav.getParentView().getName());
    } catch(Exception e) {
      e.printStackTrace();
    }
  }
}