Examples: OrgUnit4 property (Name - Java™)
This agent creates a canonical hierarchical name then displays its organizational unit 4 component.
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=Guitars/OU=Music/OU=Sales/OU=East/O=Acme/C=US");
// Returns:
// Guitars
System.out.println(nam.getOrgUnit4());
} catch(Exception e) {
e.printStackTrace();
}
}
}