JAVA/CORBA CLASSES


Examples: ACL class
This agent prints the name of each entry in the ACL for the current database.

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();
     ACL acl = db.getACL();
     ACLEntry entry = acl.getFirstEntry();
     do {
       System.out.println(entry.getName()); }
     while ((entry = acl.getNextEntry(entry)) != null);
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also