Examples: ACL property (Database class)
This agent prints the name of every entry in the ACL of 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 acle = acl.getFirstEntry();
do {
System.out.println(acle.getName());
} while ((acle = acl.getNextEntry(acle)) != null);
} catch(Exception e) {
e.printStackTrace();
}
}
}