Examples: IsProhibitDesignUpdate property
This code toggles the update status of an agent.
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();
Agent agent = db.getAgent("getentriesjava");
if (agent.isProhibitDesignUpdate()) {
agent.setProhibitDesignUpdate(false);
} else {
agent.setProhibitDesignUpdate(true);
}
agent.save();
} catch(Exception e) {
e.printStackTrace();
}
}
}