| org.apache.james.services.MailRepository
All known Subclasses: org.apache.james.mailrepository.MBoxMailRepository, org.apache.james.mailrepository.AvalonMailRepository, org.apache.james.mailrepository.JDBCMailRepository, org.apache.james.test.mock.james.MockMailRepository,
MailRepository | public interface MailRepository (Code) | | Interface for a Repository to store Mails.
version: 1.0.0, 24/04/1999 |
MAIL | String MAIL(Code) | | Define a MAIL repository. MAILS are stored in the specified
destination.
|
ROLE | String ROLE(Code) | | The component role used by components implementing this service
|
list | Iterator list() throws MessagingException(Code) | | List string keys of messages in repository.
an Iterator over the list of keys in the repository |
lock | boolean lock(String key) throws MessagingException(Code) | | Obtains a lock on a message identified by key
Parameters: key - the key of the message to be locked true if successfully obtained the lock, false otherwise |
remove | void remove(Mail mail) throws MessagingException(Code) | | Removes a specified message
Parameters: mail - the message to be removed from the repository |
remove | void remove(Collection mails) throws MessagingException(Code) | | Remove an Collection of mails from the repository
Parameters: mails - The Collection of MailImpl 's to delete since: 2.2.0 |
remove | void remove(String key) throws MessagingException(Code) | | Removes a message identified by key.
Parameters: key - the key of the message to be removed from the repository |
retrieve | Mail retrieve(String key) throws MessagingException(Code) | | Retrieves a message given a key. At the moment, keys can be obtained
from list() in superinterface Store.Repository
Parameters: key - the key of the message to retrieve the mail corresponding to this key, null if none exists |
store | void store(Mail mc) throws MessagingException(Code) | | Stores a message in this repository. Shouldn't this return the key
under which it is stored?
Parameters: mc - the mail message to store |
unlock | boolean unlock(String key) throws MessagingException(Code) | | Releases a lock on a message identified the key
Parameters: key - the key of the message to be unlocked true if successfully released the lock, false otherwise |
|
|