JAVA/CORBA CLASSES


Examples: UndeleteExpireTime property
This agent cycles the expiration time for soft deletions from 24 to 48 to 72 hours.

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();
     int uet = db.getUndeleteExpireTime();
     if (uet > 71)
       db.setUndeleteExpireTime(24);
     else
       db.setUndeleteExpireTime(uet + 24);
     System.out.println(
       "UndeleteExpireTime = " + db.getUndeleteExpireTime());

   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also