|
||||||||||
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.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 openedpublic 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
openedpublic 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 openedMethod Detail |
---|
protected void registerMappers() throws MapperRegistrationException
registerMappers
in class BaseDatabase
MapperRegistrationException
- if an error occurred during registering a mapperBaseDatabase.registerMappers()
public java.lang.String getOwner()
getOwner
in interface Mailbox
Mailbox.getOwner()
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 getCalendar()
getCalendar
in interface CalendarInterface
CalendarInterface.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 CalendarInterface
reverseOrder
- true
if iterator should iterate in
reverse order
CalendarInterface.getCalendar(boolean
reverseOrder)
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 Email getEmail(EmailDigest emailDigest)
getEmail
in interface Mailbox
emailDigest
- an email-digest
public java.lang.Object getCalendarEntry(CalendarEntryDigest entryDigest)
getCalendarEntry
in interface CalendarInterface
entryDigest
- a calendar digest
public java.lang.Object getCalendarEntry(java.lang.String unid)
getCalendarEntry
in interface CalendarInterface
unid
- the Notes document unique id of the calendar entry.
CalendarEntry.getAppointmentUnid()
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)
public void remove(CalendarEntry entry)
remove
in interface CalendarInterface
entry
- an entry to deleteMailbox.remove(de.bea.domingo.groupware.Email)
public void remove(CalendarEntryDigest entryDigest)
remove
in interface CalendarInterface
entryDigest
- 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 |