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(); if (db.getOption(Database.DBOPT_SOFTDELETE)) { db.setOption(Database.DBOPT_SOFTDELETE, false); System.out.println("Soft deletes turned off"); } else { db.setOption(Database.DBOPT_SOFTDELETE, true); System.out.println("Soft deletes turned on"); } } catch(Exception e) { e.printStackTrace(); } } }
See Also