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); System.out.println (view.getName() + " last modified on " + view.getLastModified()); } catch(Exception e) { e.printStackTrace(); } } }
See Also