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) Database db = agentContext.getCurrentDatabase(); Outline outline = db.getOutline("DiscOutline"); System.out.println("*** " + outline.getName() + " ***"); System.out.println("TOP-LEVEL ENTRIES LAST TO FIRST"); OutlineEntry tmpentry; OutlineEntry entry = outline.getLast(); while (entry.getLevel() > 0) entry = outline.getParent(entry); while (entry != null) { System.out.println(entry.getLabel()); tmpentry = outline.getPrevSibling(entry); entry.recycle(); entry = tmpentry; } } catch(Exception e) { e.printStackTrace(); } } }
See Also