JAVA/CORBA CLASSES


Examples: IsExtendedAccess property
The following agent toggles IsExtendedAccess for the current database, disabling IsUniformAccess as necessary.

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