|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.bea.domingo.map.BaseDatabase de.bea.domingo.groupware.MailDatabase
Interface to mail databases.
Constructor Summary | |
MailDatabase(DSession session,
NotesLocation location)
Constructor. |
|
MailDatabase(java.lang.String locationUri)
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.lang.Object |
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. Depending on how the inbox is sorted (ascending or descending by date), choose where to start reading mails. |
java.util.List |
getObjects(java.util.Calendar from,
java.util.Calendar to)
Returns calendar objects within the specified time frame. |
Email |
newEmail()
Creates a new Memo. |
protected void |
registerMappers()
Registers all mappers needed for a mail database. |
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, 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) throws java.io.IOException, DNotesException
locationUri
- URI of location of database.
java.io.IOException
- if the location is not a valid notes location
DNotesException
- if the database cannot be openedpublic MailDatabase(DSession session, NotesLocation location) throws DNotesException
session
- an existing domingo sessionlocation
- location of database.
DNotesException
- if the uri is invalid or the database cannot be
openedMethod Detail |
protected void registerMappers() throws MapperRegistrationException
registerMappers
in class BaseDatabase
MapperRegistrationException
- if an error occurred during registering a mapperBaseDatabase.registerMappers()
public Email reply(Email memo, boolean withHistory, boolean withAttachments)
reply
in interface Mailbox
memo
- 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 Mailbox
memo
- 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 Mailbox
memo
- a memo to deleteMailbox.remove(de.bea.domingo.groupware.Email)
public void remove(EmailDigest memo)
remove
in interface Mailbox
memo
- 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 CalendarInterface
from
- start dateto
- end date
CalendarInterface.getObjects(java.util.Calendar, java.util.Calendar)
public java.util.Iterator getInbox()
getInbox
in interface Mailbox
Mailbox.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 Mailbox
reverseOrder
- whether to start at the beginning or at the end
Mailbox.getInbox(boolean)
public java.lang.Object getEmail(EmailDigest emailDigest)
emailDigest
- an email-digest
public Email newEmail()
newEmail
in interface Mailbox
Mailbox.newEmail()
public Email forward(Email memo)
forward
in interface Mailbox
memo
- the memo to forward
Mailbox.forward(de.bea.domingo.groupware.Email)
public Email forward(Email memo, boolean withAttachments)
forward
in interface Mailbox
memo
- an existing memowithAttachments
- forward with or without attachments
Mailbox.forward(de.bea.domingo.groupware.Email, boolean)
public void saveAsDraft(Email memo)
saveAsDraft
in interface Mailbox
memo
- the memo to sendMailbox.saveAsDraft(de.bea.domingo.groupware.Email)
public void send(Email memo)
send
in interface Mailbox
memo
- the memo to sendMailbox.send(de.bea.domingo.groupware.Email)
public void save(CalendarEntry entry)
save
in interface CalendarInterface
entry
- the calendar entry to saveCalendarInterface.save(de.bea.domingo.groupware.CalendarEntry)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |