JAVA/CORBA CLASSES


Examples: ListInDbCatalog property
This agent toggles whether the current database is listed in a database catalog.

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();
     db.setListInDbCatalog(!db.getListInDbCatalog());
     System.out.println("ListInDbCatalog = " +
       db.getListInDbCatalog());

   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also