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 tmpentry;
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;
}
tmpentry = outline.getNext(entry);
entry.recycle();
entry = tmpentry;
}
} catch(Exception e) {
e.printStackTrace();
}
}
}