読み書き可能。readRange 操作のオプションのプロパティ表示を制御するマスク。
int NotesCalendar.getReadRangeMask2()
throws NotesException
void NotesCalendar.setReadRangeMask2(int mask)
throws NotesException
定数名 | 数値 |
---|---|
NotesCalendar.CS_READ_RANGE_MASK_HASATTACH | 1 |
NotesCalendar.CS_READ_RANGE_MASK_UNID | 2 |
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);
DateTime dt1 = session.createDateTime("Today 08");
DateTime dt2 = session.createDateTime("Tomorrow 17");
int mask2 = NotesCalendar.CS_READ_RANGE_MASK_HASATTACH +
NotesCalendar.CS_READ_RANGE_MASK_UNID;
cal.setReadRangeMask2(mask2);
String calstr = cal.readRange(dt1, dt2);
// Write result to document
Database db = agentContext.getCurrentDatabase();
Document doc = db.createDocument();
doc.appendItemValue("Form", "main");
doc.appendItemValue("subject", "Calendar entry");
RichTextItem body = doc.createRichTextItem("body");
body.appendText(calstr);
doc.save(true, true);
} catch(Exception e) {
e.printStackTrace();
}
}
}
LotusScript® NotesCalendar クラスの ReadRangeMask2 プロパティ