Examples: DontSendLocalSecurityUpdates property
This agent toggles whether local security updates are sent.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
Replication rep = db.getReplicationInfo();
if (rep.getDontSendLocalSecurityUpdates())
rep.setDontSendLocalSecurityUpdates(false);
else
rep.setDontSendLocalSecurityUpdates(true);
rep.save();
System.out.println("DontSendLocalSecurityUpdates = " +
rep.getDontSendLocalSecurityUpdates());
} catch(Exception e) {
e.printStackTrace();
}
}
}