javax.mail
public abstract class Store extends Service
Constructor Summary | |
---|---|
protected | Store(Session session, URLName name)
Constructor specifying session and url of this store.
|
Method Summary | |
---|---|
void | addFolderListener(FolderListener listener) |
void | addStoreListener(StoreListener listener) |
abstract Folder | getDefaultFolder()
Retutn a Folder object that represents the root of the namespace for the current user.
|
abstract Folder | getFolder(String name)
Return the Folder corresponding to the given name.
|
abstract Folder | getFolder(URLName name)
Return the folder identified by the URLName; the URLName must refer to this Store.
|
Folder[] | getPersonalNamespaces()
Return the root folders of the personal namespace belonging to the current user.
|
Folder[] | getSharedNamespaces()
Return the root folders of namespaces that are intended to be shared between users.
|
Folder[] | getUserNamespaces(String user)
Return the root folders of the personal namespaces belonging to the supplied user.
|
protected void | notifyFolderListeners(int type, Folder folder) |
protected void | notifyFolderRenamedListeners(Folder oldFolder, Folder newFolder) |
protected void | notifyStoreListeners(int type, String message) |
void | removeFolderListener(FolderListener listener) |
void | removeStoreListener(StoreListener listener) |
Parameters: session the session associated with this store name the URL of the store
Returns: the root Folder
Throws: MessagingException if there was a problem accessing the store
Parameters: name the name of the Folder to return
Returns: the corresponding folder
Throws: MessagingException if there was a problem accessing the store
Parameters: name the folder to return
Returns: the corresponding folder
Throws: MessagingException if there was a problem accessing the store
Returns: the root folders of the user's peronal namespaces
Throws: MessagingException if there was a problem accessing the store
Returns: the root folders of all shared namespaces
Throws: MessagingException if there was a problem accessing the store
Parameters: user the user whose namespaces should be returned
Returns: the root folders of the given user's peronal namespaces
Throws: MessagingException if there was a problem accessing the store