JAVA/CORBA CLASSES


Examples: DesignTemplateName property
This agent prints the design template name for the current database if one exists.

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 title = db.getTitle();
     String template = db.getDesignTemplateName();
     if (template != "")
       System.out.println("Database \"" + title +
       "\" inherits its design from " + template);
     else
       System.out.println("Database \"" + title +
       "\" did not inherit its design from a template");
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also