|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for a Repository to store Mails.
Field Summary | |
static String |
MAIL
Define a MAIL repository. |
static String |
ROLE
The component role used by components implementing this service |
Method Summary | |
Iterator |
list()
List string keys of messages in repository. |
boolean |
lock(String key)
Obtains a lock on a message identified by key |
void |
remove(Collection mails)
Remove an Collection of mails from the repository |
void |
remove(Mail mail)
Removes a specified message |
void |
remove(String key)
Removes a message identified by key. |
Mail |
retrieve(String key)
Retrieves a message given a key. |
void |
store(Mail mc)
Stores a message in this repository. |
boolean |
unlock(String key)
Releases a lock on a message identified the key |
Field Detail |
public static final String ROLE
public static final String MAIL
Method Detail |
public void store(Mail mc) throws MessagingException
mc
- the mail message to store
MessagingException
public Iterator list() throws MessagingException
Iterator
over the list of keys in the repository
MessagingException
public Mail retrieve(String key) throws MessagingException
key
- the key of the message to retrieve
MessagingException
public void remove(Mail mail) throws MessagingException
mail
- the message to be removed from the repository
MessagingException
public void remove(Collection mails) throws MessagingException
mails
- The Collection of MailImpl
's to delete
MessagingException
public void remove(String key) throws MessagingException
key
- the key of the message to be removed from the repository
MessagingException
public boolean lock(String key) throws MessagingException
key
- the key of the message to be locked
MessagingException
public boolean unlock(String key) throws MessagingException
key
- the key of the message to be unlocked
MessagingException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |