JAVA/CORBA CLASSES
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 = session.getDatabase("gvasington300gl", "names"); ACL acl = db.getACL(); if (acl.isExtendedAccess()) { acl.setExtendedAccess(false); acl.setUniformAccess(false); } else acl.setExtendedAccess(true); acl.save(); System.out.println("Extended access = " + acl.isExtendedAccess()); System.out.println("Uniform access = " + acl.isUniformAccess()); } catch(Exception e) { e.printStackTrace(); } } }
See Also