AutoSendNotices (NotesCalendar - Java)

Read-write. Indicates whether to automatically send information to participants when creating and updating meetings.

Defined in

NotesCalendar

Syntax

boolean NotesCalendar.getAutoSendNotices()
	throws NotesException
void NotesCalendar.setAutoSendNotices(boolean flag)
	throws NotesException
Legal value Description
true (default) automatically sends information such as invitations and reschedules to participants
false does not automatically send information to participants

Examples

This agent creates a meeting calendar entry for today at 1600 UTC, with no notices being sent, and posts its UID to an environment variable.
import lotus.domino.*;

public class JavaAgent extends AgentBase {

    public void NotesMain() {

      try {
          Session session = getSession();
          AgentContext agentContext = session.getAgentContext();

          // (Your code goes here)
          DbDirectory dbdir = session.getDbDirectory("");
          Database maildb = dbdir.openMailDatabase();
          NotesCalendar cal = session.getCalendar(maildb);
          java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat("yyyyMMdd");
          String today = formatter.format(new java.util.Date());
          String icale = "BEGIN:VCALENDAR\n" +
          "BEGIN:VEVENT\n" +
          "DTSTART:" + today + "T160000Z\n" +
          "DTEND:" + today + "T170000Z\n" +
          "ATTENDEE;ROLE=CHAIR;PARTSTAT=ACCEPTED;CN=\"Roberta Person/Westford/IBM\";\n" +
          " RSVP=FALSE:mailto:roberta_person@us.ibm.com\n" +
          "ATTENDEE;ROLE=REQ-PARTICIPANT\n" +
          " ;CN=\"Doc Test/Bedford/IBM\";RSVP=TRUE:mailto:doctest@us.ibm.com\n" +
          "SUMMARY:Sample Meeting\n" +
          "ORGANIZER;CN=\"Roberta Person/Westford/IBM\"\n" +
          " :mailto:roberta_person@us.ibm.com\n" +
          "END:VEVENT\n" +
          "END:VCALENDAR\n";
          cal.setAutoSendNotices(false);
          NotesCalendarEntry calentry = cal.createEntry(icale);
          session.setEnvironmentVar("currentuid", calentry.getUID());

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