JAVA/CORBA クラス


例:ListInDbCatalog プロパティ
次のエージェントは現在のデータベースがデータベースカタログに表示されるかどうかを切り替えます。

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();
   }
 }
}

関連項目