|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPreferenceStore
An SPI for persisting portlet preferences.
Portal web apps and/or portlets must register an implementation to be able to access/store preferences. The portal framework registers a default implementation that manages preferences persistently in the database. Applications can use any of the following ways to register a different implementation:
WEB-INF/netuix-config.xml
by
setting the preferences-spi-class element
. This SPI will replace the default SPI
for the webapp.WEB-INF/netuix-config.xml
.com.bea.portlet.prefs.spi.IPreferenceStore
with value equal to the name of the
SPI. This SPI will only be used for the current request.The portal framework does not synchronize calls to the SPI. Depending on the datastore used to manage preferences, the SPI must synchronize the implementation.
Nested Class Summary | |
---|---|
static class |
IPreferenceStore.Factory
A factory to register an SPI. |
Field Summary | |
---|---|
static String |
PREFERENCE_STORE_PROVIDER
Name of the provider class. |
Method Summary | |
---|---|
Map |
getPreferences(PortletPreferencesId uniqueId,
javax.servlet.http.HttpServletRequest httpRequest)
Returns preferences for the given uniqueId. |
void |
remove(PortletPreferencesId uniqueId,
javax.servlet.http.HttpServletRequest httpRequest)
Remove all preferences for a portlet with the given unique ID. |
void |
store(PortletPreferencesId uniqueId,
Map preferences,
javax.servlet.http.HttpServletRequest httpRequest)
Stores the preferences to the underlying persistence store. |
boolean |
supportsPreferences(PortletPreferencesId uniqueId,
javax.servlet.http.HttpServletRequest httpRequest)
Returns true if the given portlet supports portlet preferences. |
Field Detail |
---|
static final String PREFERENCE_STORE_PROVIDER
Name of the provider class.
Method Detail |
---|
Map getPreferences(PortletPreferencesId uniqueId, javax.servlet.http.HttpServletRequest httpRequest) throws PreferenceStoreException
Returns preferences for the given uniqueId. The returned java.util.Map contains names of values of preferences, and may be empty if there are no preferences for the given unique identifier.
uniqueId
- a unique IDhttpRequest
- HTTP request (if any)
PreferenceStoreException
- if there was an error retrieving all or some of
the preferences.void store(PortletPreferencesId uniqueId, Map preferences, javax.servlet.http.HttpServletRequest httpRequest) throws PreferenceStoreException
Stores the preferences to the underlying persistence store.
uniqueId
- a unique IDpreferences
- map of preferences
PreferenceStoreException
- if there was an error storing all or some of the
preferences.void remove(PortletPreferencesId uniqueId, javax.servlet.http.HttpServletRequest httpRequest) throws PreferenceStoreException
Remove all preferences for a portlet with the given unique ID.
uniqueId
- a unique ID
PreferenceStoreException
- if there was an error retrieving all or some of
the preferences.boolean supportsPreferences(PortletPreferencesId uniqueId, javax.servlet.http.HttpServletRequest httpRequest) throws PreferenceStoreException
Returns true if the given portlet supports portlet preferences.
uniqueId
- a unique IDhttpRequest
- HTTP request
PreferenceStoreException
- if there was an error determining if the given portlet
supports portlet preferences..
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |