JAVA/CORBA クラス
例:Common プロパティ
1. 次のエージェントは階層名を作成し、共通名を表示します。
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
// Create a hierarchical name
Name nam = session.createName(
"CN=John B Goode/OU=Sales/OU=East/O=Acme/C=US");
// Returns:
// John B Goode
System.out.println(nam.getCommon());
} catch(Exception e) {
e.printStackTrace();
}
}
}
2. 次のエージェントはインターネット名を作成し、共通名 (LocalPart) を表示します。
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
// Create a hierarchical name
Name nam = session.createName(
"John_B_Goode@us.acme.com");
// Returns:
// John_B_Goode
System.out.println(nam.getCommon());
} catch(Exception e) {
e.printStackTrace();
}
}
}
関連項目
Common プロパティ
用語集
フィードバック
ヘルプ
または
プロダクトユーザビリティ
ヘルプの使い方
すべてのヘルプ項目
用語集