JAVA/CORBA CLASSES
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) Database db = agentContext.getCurrentDatabase(); Vector roles = db.queryAccessRoles(session.getUserName()); if (roles.size() == 0) System.out.println("No roles for current user"); else { System.out.println("Roles for current user:"); for (int i = 0; i < roles.size(); i++) { System.out.println(" " + roles.elementAt(i)); } } } catch(Exception e) { e.printStackTrace(); } } }
See Also