Examples: IsIgnoreDestDeletes property
This agent toggles the IsIgnoreDestDeletes property.
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 replication = db.getReplicationInfo();
if (replication.getIsIgnoreDestDeletes())
replication.setIgnoreDestDeletes(false);
else
replication.setIgnoreDestDeletes(true);
replication.save();
System.out.println("IgnoreDestDeletes = " +
replication.isIgnoreDestDeletes());
} catch(Exception e) {
e.printStackTrace();
}
}
}