JAVA/CORBA CLASSES
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"); // Prints "Hierarchical name" testName(nam); // Create a flat name nam = session.createName( "John B Goode"); // Prints "Flat name" testName(nam); } catch(Exception e) { e.printStackTrace(); } } void testName(Name n) { try { if (n.isHierarchical()) System.out.println("Hierarchical name"); else System.out.println("Flat name"); } catch(Exception e) { e.printStackTrace(); } } }
See Also