|
| Foundation |
|
| |||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||||||
See:
Description
| Interface Summary | |
|---|---|
| FavoritesContainer | Base interface used for any favorites container object, such as a FavoritesFolder or a FavoritesGroup. |
| FavoritesFolder | Interface representing the FavoritesFolder public object. |
| FavoritesGroup | Interface representing the FavoritesGroup public object. |
| Class Summary | |
|---|---|
| FavoritesFactory | Factory class used for creating new favorites folders. |
Manages favorites folders and their contents.
The API supports the following capabilities:
FavoritesFactory should be used to create new favorites folders and favorites
groups, or to retrieve an application specific favorites folders.
SessionContextInterface session; //where "session" is a valid session context instance
ServerInterface server; //where "server" is a valid server instance
FolderInterface myFolder = server.getHomeFolder(null, UserFolderType.FOLDERTYPE_MYFOLDER, null);
FavoritesFactory factory = FavoritesFactory.getInstance(session);
FavoritesFolder favorites = factory.createFavoritesFolder("Favorites", myFolder);
if (favorites != null)
{
//persist the changes to the server
favorites.update();
}
|
FavoritesGroup group = factory.createFavoritesGroup("Reports", favorites);
if (group != null)
{
//persist the changes to the server
group.update();
}
|
|
| Foundation |
|
| |||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||||||