Examples: createOutline method

This agent creates an 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.createOutline("Some 
        Documents");
      outline.setAlias("SomeDocuments");
      outline.setComment("Gives partial view of 
        database");
      outline.save();
    } catch(Exception e) {
      e.printStackTrace();
    }
  }
}