|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.information.metadata.favorites.FavoritesFactory
public class FavoritesFactory
Factory class used for creating new favorites folders.
Method Summary | |
---|---|
void |
contextStateChanged(SessionContextStateChangedEvent event)
Notifies the object that its state has changed within the session context. |
FavoritesFolder |
createFavoritesFolder(java.lang.String name,
FolderInterface folder)
Creates a new favorites folder. |
FavoritesGroup |
createFavoritesGroup(java.lang.String name,
FavoritesContainer container)
Creates a new favorites group within an owning container. |
FavoritesFolder |
getApplicationFavorites(java.lang.String contextName)
Returns the Favorites folder for a given context. |
FavoritesFolder |
getApplicationHistory(java.lang.String applicationName)
Returns the History favorites folder for a given application. |
static FavoritesFactory |
getInstance(SessionContextInterface session)
Returns the factory instance for a given session context. |
SessionContextInterface |
getSession()
Returns the session associated with this factory instance. |
FavoritesFolder |
getUserFavorites()
Returns the Favorites folder for the user currently logged in. |
Method Detail |
---|
public static FavoritesFactory getInstance(SessionContextInterface session) throws ServiceException, java.rmi.RemoteException
session
- the users's session context
ServiceException
java.rmi.RemoteException
public SessionContextInterface getSession()
public FavoritesFolder createFavoritesFolder(java.lang.String name, FolderInterface folder) throws ServiceException, java.rmi.RemoteException
Folder.hasDuplicate(String, String)
.
name
- the name of the objectfolder
- the parent folder to associate this favorites folder to
ServiceException
java.rmi.RemoteException
public FavoritesGroup createFavoritesGroup(java.lang.String name, FavoritesContainer container) throws ServiceException, java.rmi.RemoteException
FavoritesContainer.hasDuplicateFavoritesGroup(String)
.
name
- the name of the objectcontainer
- the parent container to associate this favorites group to
ServiceException
java.rmi.RemoteException
public FavoritesFolder getUserFavorites() throws ServiceException, java.rmi.RemoteException
/User Folders/user-name/Application Data/My Favorites(FavoritesFolder)If the favorites folder does not exist, this method will attempt to create it along with its parent folders if necessary. Meaning, the method will first retrieve the user's Application Data folder, and will create it if necessary. And finally, the Favorites favorites folder itself is retrieved, or created.
ServiceException
java.rmi.RemoteException
public FavoritesFolder getApplicationFavorites(java.lang.String contextName) throws ServiceException, java.rmi.RemoteException
/User Folders/user-name/Application Data/context-name/Favorites(FavoritesFolder)If the favorites folder does not exist, this method will attempt to create it along with its parent folders if necessary. Meaning, the method will first retrieve the user's Application Data folder, and will create it if necessary. Next, the context specific subfolder will be retrieved, or created if necessary. And finally, the Favorites favorites folder itself is retrieved, or created.
contextName
- the context name to create the favorites folder under
ServiceException
java.rmi.RemoteException
public FavoritesFolder getApplicationHistory(java.lang.String applicationName) throws ServiceException, java.rmi.RemoteException
/User Folders/user-name/Application Data/application-name/History(FavoritesFolder)If the favorites folder does not exist, this method will attempt to create it along with its parent folders if necessary. Meaning, the method will first retrieve the user's Application Data folder, and will create it if necessary. Next, the application specific subfolder will be retrieved, or created if necessary. And finally, the History favorites folder itself is retrieved, or created.
To set the number maximum number of objects contained within the history, see
FavoritesContainer.setMaxCapacity(int)
.
applicationName
- the context name to create the favorites folder under
ServiceException
java.rmi.RemoteException
public void contextStateChanged(SessionContextStateChangedEvent event) throws java.rmi.RemoteException
RemoteSessionContextStateChangedListener
SessionContextInterface.setAttribute(Object)
implements this interface, the session context will invoke
this method when the object is removed from the session context
or when the session context is destroyed.
contextStateChanged
in interface RemoteSessionContextStateChangedListener
event
- The event that identifies the bound object, the
name of the bound object, the session context,
and an identifier that indicates the type of state
change that occurred.
java.rmi.RemoteException
- If a network anomaly is encountered.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |