JAVA/CORBA CLASSES


Examples: LastModified property
This agent prints the date and time that the current database was last modified.

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();
     String lastMod = db.getLastModified().getLocalTime();
     String title = db.getTitle();
     System.out.println("Database \"" + title +
     "\" was last modified on " + lastMod);
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also