JAVA/CORBA CLASSES
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(); for (int i=0; i<views.size(); i++) { View view = (View)views.elementAt(i); if (view.isCategorized()) { System.out.println(view.getName()); System.out.println ("\tHeaderLines = " + view.getHeaderLines()); System.out.println ("\tRowLines = " + view.getRowLines()); System.out.println ("\tSpacing = " + view.getSpacing()); long tlec = view.getTopLevelEntryCount(); if (tlec < 0) tlec = tlec + 65536; System.out.println ("\tTopLevelEntryCount = " + tlec); System.out.println ("\tIsHierarchical = " + view.isHierarchical()); } } } catch(Exception e) { e.printStackTrace(); } } }
See Also