decline (NotesCalendarNotice - Java)
Declines a meeting notice.
Defined in
NotesCalendarNoticeSyntax
void NotesCalendarNotice.decline(String comments)
throws NotesException
void NotesCalendarNotice.decline(String comments, boolean keepinformed)
throws NotesException
| Parameter | Description |
|---|---|
| comments | Comments regarding a meeting change. |
| keepinformed | Specify true to continue to receive notices about the meeting. |
| Possible exception | Value | Text | Description |
|---|---|---|---|
| NotesError.NOTES_ERR_UNSUPPORTEDACTION | 4811 | Unsupported action | The method is attempting to apply an action that is not valid for the entry. |
| NotesError.NOTES_ERR_OVERWRITEDISALLOWED | 4813 | This action is not allowed since it would overwrite personal changes | The action should be verified then reissued with the overwrite flag set. |
| NotesError.NOTES_ERR_IDNOTFOUND | 4814 | Identifier not found | The identifier for the NotesCalendarNotice object does not identify a notice in the calendar. |
Examples
This agent declines a meeting.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);
// Get notice and decline
String unid = session.getEnvironmentString("noticeunid");
NotesCalendarNotice caln = cal.getNoticeByUNID(unid);
caln.decline("Will be out", true);
} catch(Exception e) {
e.printStackTrace();
}
}
}
Language cross-reference
Decline method in LotusScript® NotesCalendarNotice class