Examples: UserNameObject property
This agent gets a Name object for the current user and prints the common 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)
Name no = session.getUserNameObject();
String u = no.getCommon();
System.out.println("Common user name = " + u);
} catch(Exception e) {
e.printStackTrace();
}
}
}