|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.bea.domingo.map.BaseDatabase
de.bea.domingo.groupware.map.MailDatabase
public final class MailDatabase
Interface to mail databases.
| Constructor Summary | |
|---|---|
MailDatabase(DDatabase database,
java.lang.String owner)
Constructor. |
|
MailDatabase(DSession session,
NotesLocation location,
java.lang.String owner)
Constructor. |
|
MailDatabase(java.lang.String locationUri,
java.lang.String owner)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
java.util.Iterator |
getCalendar()
Returns an iterator over all entries in the Calendar. |
java.util.Iterator |
getCalendar(boolean reverseOrder)
Returns an iterator over all entries in the Calendar. |
java.lang.Object |
getCalendarEntry(CalendarEntryDigest entryDigest)
Returns the full calendar entry for a given calendar entry digest. |
java.lang.Object |
getCalendarEntry(java.lang.String unid)
Returns a calendar entry for a given unid. |
Email |
getEmail(EmailDigest emailDigest)
Returns the email represented by the given email-digest. |
java.util.Iterator |
getInbox()
Returns an iterator over all mails in the Inbox. |
java.util.Iterator |
getInbox(boolean reverseOrder)
Returns an iterator over all mails in the Inbox. |
java.util.List |
getObjects(java.util.Calendar from,
java.util.Calendar to)
Returns calendar objects within the specified time frame. |
java.lang.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. |
| Methods inherited from class de.bea.domingo.map.BaseDatabase |
|---|
create, getDatabase, getSession, getTitle, map, map, map, register, save |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MailDatabase(java.lang.String locationUri,
java.lang.String owner)
throws java.io.IOException,
DNotesException
locationUri - URI of location of database.owner - name of mailbox owner
java.io.IOException - if the location is not a valid notes location
DNotesException - if the database cannot be opened
public MailDatabase(DSession session,
NotesLocation location,
java.lang.String owner)
throws DNotesException
session - an existing domingo sessionlocation - location of database.owner - name of mailbox owner
DNotesException - if the uri is invalid or the database cannot be
opened
public MailDatabase(DDatabase database,
java.lang.String owner)
throws DNotesException
database - a mail databaseowner - name of mailbox owner
DNotesException - if the database is invalid or cannot be opened| Method Detail |
|---|
protected void registerMappers()
throws MapperRegistrationException
registerMappers in class BaseDatabaseMapperRegistrationException - if an error occurred during registering a mapperBaseDatabase.registerMappers()public java.lang.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 included
Mailbox.reply(de.bea.domingo.groupware.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 included
Mailbox.replyToAll(de.bea.domingo.groupware.Email, boolean, boolean)public void remove(Email memo)
remove in interface Mailboxmemo - a memo to deleteMailbox.remove(de.bea.domingo.groupware.Email)public void remove(EmailDigest memo)
remove in interface Mailboxmemo - a memo digest to deleteMailbox.remove(de.bea.domingo.groupware.EmailDigest)
public java.util.List getObjects(java.util.Calendar from,
java.util.Calendar to)
getObjects in interface CalendarInterfacefrom - start dateto - end date
CalendarInterface.getObjects(java.util.Calendar,
java.util.Calendar)public java.util.Iterator getCalendar()
getCalendar in interface CalendarInterfaceCalendarInterface.getCalendar()public java.util.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 order
CalendarInterface.getCalendar(boolean
reverseOrder)public java.util.Iterator getInbox()
getInbox in interface MailboxMailbox.getInbox()public java.util.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 end
Mailbox.getInbox(boolean)public Email getEmail(EmailDigest emailDigest)
getEmail in interface MailboxemailDigest - an email-digest
public java.lang.Object getCalendarEntry(CalendarEntryDigest entryDigest)
getCalendarEntry in interface CalendarInterfaceentryDigest - a calendar digest
public java.lang.Object getCalendarEntry(java.lang.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 forward
Mailbox.forward(de.bea.domingo.groupware.Email)
public Email forward(Email memo,
boolean withAttachments)
forward in interface Mailboxmemo - an existing memowithAttachments - forward with or without attachments
Mailbox.forward(de.bea.domingo.groupware.Email,
boolean)public void saveAsDraft(Email memo)
saveAsDraft in interface Mailboxmemo - the memo to sendMailbox.saveAsDraft(de.bea.domingo.groupware.Email)public void send(Email memo)
send in interface Mailboxmemo - the memo to sendMailbox.send(de.bea.domingo.groupware.Email)public void save(CalendarEntry entry)
save in interface CalendarInterfaceentry - the calendar entry to saveCalendarInterface.save(de.bea.domingo.groupware.CalendarEntry)public void remove(CalendarEntry entry)
remove in interface CalendarInterfaceentry - an entry to deleteMailbox.remove(de.bea.domingo.groupware.Email)public void remove(CalendarEntryDigest entryDigest)
remove in interface CalendarInterfaceentryDigest - a calendar entry digest to deleteMailbox.remove(de.bea.domingo.groupware.EmailDigest)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||