JAVA/CORBA CLASSES


Examples: Created property
This agent prints the creation date of a view.

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");
     DateTime cdate = view.getCreated();
     System.out.println
     ("Creation date = " + cdate.getLocalTime());
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also