Examples: UserGroupNameList property (Session - Java™)
This agent gets the user group name list for the current session.
import lotus.domino.*;
import java.util.Vector;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
Vector groups = session.getUserGroupNameList();
if (groups.size() == 0)
System.out.println("None");
else {
for(int i =0; i < groups.size(); i++) {
Name name = (Name)groups.elementAt(i);
System.out.println(name.getAbbreviated());
}
}
} catch(Exception e) {
e.printStackTrace();
}
}
}