JAVA/CORBA クラス


例:UserNameObject プロパティ
次のエージェントは、現在のユーザーの Name オブジェクトを取得し、ユーザーの共通名を出力します。

import lotus.domino.*;
public class JavaAgent extends AgentBase {
 public void NotesMain() {
   try {
     Session session = getSession();
     AgentContext agentContext = session.getAgentContext();
     // (Your code goes here)
     Name no = session.getUserNameObject();
     String u = no.getCommon();
     System.out.println("Common user name = " + u);
    } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

関連項目