Examples: EffectiveUserName property
This example prints the current effective user name.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
String name = agentContext.getEffectiveUserName();
System.out.println
("Effective user name is " + name);
} catch(Exception e) {
e.printStackTrace();
}
}
}