JAVA/CORBA CLASSES


Examples: moveEntry method
This agent moves an entry to the beginning of the outline.

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");
     OutlineEntry entry = outline.getFirst();
     while (entry != null) {
       if (entry.getLabel().equals("Some Documents")) {
         System.out.println(entry.getLabel() + " ... is being
           moved");
         outline.moveEntry(entry, outline.getFirst(), false);
         outline.save();
         break;
         }
       entry = outline.getNext(entry);
       }
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also