JAVA/CORBA クラス


例:TemplateName プロパティ
次のエージェントは、ローカルの Notes ディレクトリにある discuss4.ntf のテンプレート名を取得します。

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();
String title = db.getTitle();
String template = db.getTemplateName();
if (template != "")
System.out.println("Database \"" + title +
"\" has the template name " + template);
else
System.out.println("Database \"" + title +
"\" is not a template");
} catch(Exception e) {
e.printStackTrace();
}
}
}

関連項目