読み書き可能。会議を作成または更新したときに、参加者に情報を自動的に送信するかどうかを指定します。
適正値 | 説明 |
---|---|
true | (デフォルト) 招集や再スケジュールなどの情報を参加者に自動的に送信します。 |
false | 情報を参加者に自動的に送信しません。 |
try {
var dbdir:NotesDbDirectory = session.getDbDirectory("");
var maildb:NotesDatabase = dbdir.openMailDatabase();
var cal:NotesCalendar = session.getCalendar(maildb);
var formatter = new java.text.SimpleDateFormat("yyyyMMdd");
var today:String = formatter.format(new java.util.Date());
var icale:String = "BEGIN:VCALENDAR¥n" +
"BEGIN:VEVENT¥n" +
"DTSTART:" + today + "T160000¥n" +
"DTEND:" + today + "T170000¥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);
var calentry:NotesCalendarEntry = cal.createEntry(icale);
requestScope.status = "Create succeeded. UID = " + calentry.getUID();
sessionScope.uid = calentry.getUID();
} catch(e) {
requestScope.status = e.message;
}
NotesCalendar.AutoSendNotices As Boolean
このエージェントは、UTC の今日 16 時に対し会議のカレンダーエントリを作成し、
通知は送信せず、UID を環境変数に書き込みます。Sub Initialize
Dim session As New NotesSession
Dim maildb As New NotesDatabase("", "")
Dim cal As NotesCalendar
Dim calentry As NotesCalendarEntry
Dim icale As String
Dim tday As String
REM Get calendar for current user and create entry
Call maildb.Openmail()
Set cal = session.getCalendar(maildb)
tday = Format(Today, "yyyymmdd")
icale = |BEGIN:VCALENDAR
BEGIN:VEVENT
DTSTART:| & tday & |T160000Z
DTEND:| & tday & |T170000Z
ATTENDEE;ROLE=CHAIR;PARTSTAT=ACCEPTED;CN="Roberta Person/Westford/IBM";
RSVP=FALSE:mailto:roberta_person@us.ibm.com
ATTENDEE;ROLE=REQ-PARTICIPANT
;CN="Doc Test/Bedford/IBM";RSVP=TRUE:mailto:doctest@us.ibm.com
SUMMARY:Sample Meeting
ORGANIZER;CN="Roberta Person/Westford/IBM"
:mailto:roberta_person@us.ibm.com
END:VEVENT
END:VCALENDAR|
cal.Autosendnotices = false
Set calentry = cal.Createentry(icale)
Call session.Setenvironmentvar("currentuid", calentry.Uid)
MessageBox "UID = " & calentry.Uid,, "Created calendar entry"
End Sub
boolean NotesCalendar.getAutoSendNotices()
void NotesCalendar.setAutoSendNotices(boolean flag)
このエージェントは、UTC の今日 16 時に対し会議のカレンダーエントリを作成し、通知は送信せず、UID を環境変数に書き込みます。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();
}
}
}