Examples: UniversalID property (View - Java)

This agent gets the universal IDs of all the views in the current database.

import lotus.domino.*;
import java.util.Vector;
public class JavaAgent extends AgentBase {
  public void NotesMain() {
    try {
      Session session = getSession();
      AgentContext agentContext = session.getAgentContext();
      // (Your code goes here) 
      Database db = agentContext.getCurrentDatabase();
      Vector views = db.getViews();
      System.out.println("Universal IDs for views:");
      for (int i=0; i<views.size(); i++) {
        View view = (View)views.elementAt(i);
        System.out.println
        (view.getUniversalID() + "\t" + view.getName()); }
    } catch(Exception e) {
      e.printStackTrace();
    }
  }
}