次のエージェントはビューの作成日を出力します。
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();
View view = db.getView("By Category");
DateTime cdate = view.getCreated();
System.out.println
("Creation date = " + cdate.getLocalTime());
} catch(Exception e) {
e.printStackTrace();
}
}
}