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