Examples: IsUniformAccess property
The following agent toggles the IsUniformAccess property.
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();
System.out.println
("Uniform access is " + acl.isUniformAccess());
if (acl.isUniformAccess())
acl.setUniformAccess(false);
else
acl.setUniformAccess(true);
acl.save();
System.out.println
("Uniform access is " + acl.isUniformAccess());
} catch(Exception e) {
e.printStackTrace();
}
}
}