Examples: IsPrivate property
This agent displays whether each view in the current database is private or shared.
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 views = db.getViews();
for (int i=0; i<views.size(); i++) {
View view = (View)views.elementAt(i);
if (view.isPrivate())
System.out.println("View is private");
else
System.out.println("View is shared");
}
} catch(Exception e) {
e.printStackTrace();
}
}
}