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(); Form form = db.getForm("Author Profile"); System.out.println(form.getName()); Vector aliases = form.getAliases(); for (int i=0; i<aliases.size(); i++) { String alias = (String)aliases.elementAt(i); System.out.println ("Alias #" + (i+1) + ": " + alias); } } catch(Exception e) { e.printStackTrace(); } } }
See Also