|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.rim.blackberry.api.mail.Service
|
+--net.rim.blackberry.api.mail.Store
Represents a message store and its access protocol, for storing and retrieving messages on the handheld.
Invoke Session.getStore() to retrieve a Store instance.
Folder| Method Summary | ||
|
void |
addFolderListener(FolderListener l)
Adds a folder listener to this store. |
|
void |
addStoreListener(StoreListener l)
Adds a store listener to this store. |
|
boolean |
equals(Object o)
Compares another store object to this instance. |
|
Folder[] |
findFolder(String substring)
Retrieves folders in this store that match the provided substring. |
|
Folder |
getFolder(long folderId)
Retrieves a folder by ID. |
|
Folder |
getFolder(String name)
Retrieves a folder by name. |
|
static Message |
getMessage(int id)
Retrieves a message by ID from all the stores in the system. |
|
Folder[] |
list()
Retrieves a list of folders directly under this Store. |
|
Folder[] |
list(int type)
Retrieves the set of folders directly under this store that match provided type. |
|
void |
removeFolderListener(FolderListener l)
Removes a folder listener from the root level. |
|
void |
removeStoreListener(StoreListener l)
Removes a store listener from this store. |
| Methods inherited from class net.rim.blackberry.api.mail.Service |
addServiceListener, getServiceConfiguration, isConnected, removeServiceListener, setConnected, toString |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public Folder[] list(int type)
type - Type of folder(s) to retrieve.public Folder getFolder(long folderId) throws FolderNotFoundException
folderId - ID of the folder to retrieve.FolderNotFoundException - If no folder exists with provided ID.public Folder getFolder(String name) throws FolderNotFoundException
This method does not support the following characters appearing in folder names:
name - Name of the folder to retrieve. The name must be an absolute
path, starting with the hierarchy delimiter, but not ending with the
delimiter. For example, "/abc/efg" is correct, where
abc is a direct subfolder of this Store.FolderNotFoundException - If no folder exists with provided name.public Folder[] findFolder(String substring)
substring - Substring to match against folder names.public Folder[] list()
Folder objects or an empty array if no folders are present.public void addFolderListener(FolderListener l)
The listener is invoked when FolderEvents occur on any folder in the store.
l - The FolderListener to add to this Store.public void removeFolderListener(FolderListener l)
l - The FolderListener to remove from this Store.public void addStoreListener(StoreListener l)
l - StoreListener to add to this Store.public void removeStoreListener(StoreListener l)
l - StoreListener to remove from this Store.public boolean equals(Object o)
Store instances are equal if they are represented by the same
ServiceConfiguration object.
o - The object to compare this store to.public static Message getMessage(int id)
id - ID for the message to retrieve.Message.getMessageId()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2004 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.