Examples: Canonical property (Name - Java™)
This agent creates an abbreviated hierarchical name then displays it in canonical format.
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:
// CN=John B Goode/OU=Sales/OU=East/O=Acme/C=US
System.out.println(nam.getCanonical());
} catch(Exception e) {
e.printStackTrace();
}
}
}