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

関連項目