com.sas.portal.portlet.configuration
Class ConfigurationFactory
java.lang.Object
|
+--com.sas.portal.portlet.configuration.ConfigurationFactory
- public final class ConfigurationFactory
- extends Object
ConfigurationFactory is the mechanism whereby Configuration
and Attribute objects are instantiated and serialized
to the metadata store.
- Since:
- 1/15/2003
- See Also:
Configuration,
Attribute
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getConfiguration
public static Configuration getConfiguration(PortletContext pctx,
boolean createConfiguration)
throws RemoteException
- Fetches the configuration based on the entity key of a portlet.
If createConfiguration is set to true, and the
appropriate records are not found in the metadata store,
then the records will be created and a Configuration instance
will be returned;
If createConfiguration is set to false, and the metadata
records are not found, then the method will return null.
- Parameters:
pctx - PortletContext of the calling portletcreateConfiguration - Create a new Configuration if one doesn't exist- Returns:
- com.sas.portal.portlet.configuration.Configuration
- Throws:
RemoteException -
getConfiguration
public static Configuration getConfiguration(PortletContext pctx)
throws RemoteException
- Fetches a Configuration from metadata. This method call will
create the metadata records if they do not exist.
- Parameters:
pctx - PortletContext of the calling portlet- Returns:
Configuration - the configuration in this PortletContext- Throws:
RemoteException -
storeConfiguration
public static Configuration storeConfiguration(PortletContext pctx,
Configuration config)
throws RemoteException
- Persists the Configuration object to metadata. Performs
dirty checking and detects updated Attributes as well as
new Attributes.
- Parameters:
pctx - PortletContext of the calling Portletconfig - Configuration to be persisted- Returns:
com.sas.portal.portlet.configuration.Configuration- Throws:
RemoteException -
Copyright © 2005 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 17:05:13