public final class MailDatabase extends BaseDatabase implements Mailbox, CalendarInterface
| Constructor and Description |
|---|
MailDatabase(DDatabase database,
String owner)
Constructor.
|
MailDatabase(DSession session,
NotesLocation location,
String owner)
Constructor.
|
MailDatabase(String locationUri,
String owner)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Email |
forward(Email memo)
Creates a new memo as a forward of an existing memo.
|
Email |
forward(Email memo,
boolean withAttachments)
Creates a new memo as a forward to an existing memo.
|
Iterator |
getCalendar()
Returns an iterator over all entries in the Calendar.
|
Iterator |
getCalendar(boolean reverseOrder)
Returns an iterator over all entries in the Calendar.
|
Object |
getCalendarEntry(CalendarEntryDigest entryDigest)
Returns the full calendar entry for a given calendar entry digest.
|
Object |
getCalendarEntry(String unid)
Returns a calendar entry for a given unid.
|
Email |
getEmail(EmailDigest emailDigest)
Returns the email represented by the given email-digest.
|
Iterator |
getInbox()
Returns an iterator over all mails in the Inbox.
|
Iterator |
getInbox(boolean reverseOrder)
Returns an iterator over all mails in the Inbox.
|
List |
getObjects(Calendar from,
Calendar to)
Returns calendar objects within the specified time frame.
|
String |
getOwner()
Returns the name of the owner of a mailbox.
|
Email |
newEmail()
Creates a new Memo.
|
protected void |
registerMappers()
Registers all mappers needed for a mail database.
|
void |
remove(CalendarEntry entry)
Deletes an existing calendar entry.
|
void |
remove(CalendarEntryDigest entryDigest)
Deletes an existing calendar entry.
|
void |
remove(Email memo)
Deletes an existing memo.
|
void |
remove(EmailDigest memo)
Deletes an existing memo.
|
Email |
reply(Email memo,
boolean withHistory,
boolean withAttachments)
Creates a new memo as a reply to the sender of the original memo.
|
Email |
replyToAll(Email memo,
boolean withHistory,
boolean withAttachments)
Creates a new memo as a reply to all original recipients of the original memo.
|
void |
save(CalendarEntry entry)
Saves a new calendar entry.
|
void |
saveAsDraft(Email memo)
Sends a memo.
|
void |
send(Email memo)
Sends a memo.
|
create, getDatabase, getSession, getTitle, map, map, map, register, savepublic MailDatabase(String locationUri, String owner) throws IOException, DNotesException
locationUri - URI of location of database.owner - name of mailbox ownerIOException - if the location is not a valid notes locationDNotesException - if the database cannot be openedpublic MailDatabase(DSession session, NotesLocation location, String owner) throws DNotesException
session - an existing domingo sessionlocation - location of database.owner - name of mailbox ownerDNotesException - if the uri is invalid or the database cannot be
openedpublic MailDatabase(DDatabase database, String owner) throws DNotesException
database - a mail databaseowner - name of mailbox ownerDNotesException - if the database is invalid or cannot be openedprotected void registerMappers()
throws MapperRegistrationException
registerMappers in class BaseDatabaseMapperRegistrationException - if an error occurred during registering a mapperBaseDatabase.registerMappers()public String getOwner()
getOwner in interface MailboxMailbox.getOwner()public Email reply(Email memo, boolean withHistory, boolean withAttachments)
reply in interface Mailboxmemo - the memo to forwardwithHistory - if the original mail should be includedwithAttachments - if attachments should be includedMailbox.reply(Email, boolean, boolean)public Email replyToAll(Email memo, boolean withHistory, boolean withAttachments)
replyToAll in interface Mailboxmemo - the memo to forwardwithHistory - if the original mail should be includedwithAttachments - if attachments should be includedMailbox.replyToAll(Email, boolean, boolean)public void remove(Email memo)
remove in interface Mailboxmemo - a memo to deleteMailbox.remove(Email)public void remove(EmailDigest memo)
remove in interface Mailboxmemo - a memo digest to deleteMailbox.remove(EmailDigest)public List getObjects(Calendar from, Calendar to)
getObjects in interface CalendarInterfacefrom - start dateto - end dateCalendarInterface.getObjects(java.util.Calendar,
java.util.Calendar)public Iterator getCalendar()
getCalendar in interface CalendarInterfaceCalendarInterface.getCalendar()public Iterator getCalendar(boolean reverseOrder)
Depending on how the Calendar is sorted (ascending or descending by date), choose where to start reading entries.
getCalendar in interface CalendarInterfacereverseOrder - true if iterator should iterate in
reverse orderCalendarInterface.getCalendar(boolean
reverseOrder)public Iterator getInbox()
getInbox in interface MailboxMailbox.getInbox()public Iterator getInbox(boolean reverseOrder)
Depending on how the inbox is sorted (ascending or descending by date), choose where to start reading mails.
getInbox in interface MailboxreverseOrder - whether to start at the beginning or at the endMailbox.getInbox(boolean)public Email getEmail(EmailDigest emailDigest)
public Object getCalendarEntry(CalendarEntryDigest entryDigest)
getCalendarEntry in interface CalendarInterfaceentryDigest - a calendar digestpublic Object getCalendarEntry(String unid)
getCalendarEntry in interface CalendarInterfaceunid - the Notes document unique id of the calendar entry.CalendarEntry.getAppointmentUnid()public Email newEmail()
newEmail in interface MailboxMailbox.newEmail()public Email forward(Email memo)
forward in interface Mailboxmemo - the memo to forwardMailbox.forward(Email)public Email forward(Email memo, boolean withAttachments)
forward in interface Mailboxmemo - an existing memowithAttachments - forward with or without attachmentsMailbox.forward(Email,
boolean)public void saveAsDraft(Email memo)
saveAsDraft in interface Mailboxmemo - the memo to sendMailbox.saveAsDraft(Email)public void send(Email memo)
send in interface Mailboxmemo - the memo to sendMailbox.send(Email)public void save(CalendarEntry entry)
save in interface CalendarInterfaceentry - the calendar entry to saveCalendarInterface.save(CalendarEntry)public void remove(CalendarEntry entry)
remove in interface CalendarInterfaceentry - an entry to deleteMailbox.remove(Email)public void remove(CalendarEntryDigest entryDigest)
remove in interface CalendarInterfaceentryDigest - a calendar entry digest to deleteMailbox.remove(EmailDigest)Copyright © 2005–2020. All rights reserved.