|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IIPreferenceAppStore
This is an SPI for managing preferences for portlets.
for information on how to register an implementation with the system.
Method Summary | |
---|---|
Map<String,com.bea.portlet.prefs.Preference> |
getPreferences(PortletPreferencesId uniqueId,
Map<String,String> properties)
Returns preferences for a portlet entity with the given uniqueId . |
void |
removePreferences(PortletPreferencesId[] uniqueIds,
Map<String,String> properties)
Clear all preferences for the given unique ID from the underlying persistence store. |
void |
storePreferences(PortletPreferencesId uniqueId,
Map<String,com.bea.portlet.prefs.Preference> preferences,
Map<String,String> properties)
Writes the preferences to the underlying persistence. |
Method Detail |
---|
Map<String,com.bea.portlet.prefs.Preference> getPreferences(PortletPreferencesId uniqueId, Map<String,String> properties) throws RemoteException, PreferenceAppStoreException
Returns preferences for a portlet entity with the given
uniqueId
.
The returned java.util.Map
contains
com.bea.netuix.application.prefs.Preference
objects keyed against their names.
uniqueId
- unique IDproperties
- map of context parameters set up by the container; see PreferenceAppStoreProperties for a list of relevant properties.
RemoteException
PreferenceAppStoreException
PreferenceAppStoreProperties
void storePreferences(PortletPreferencesId uniqueId, Map<String,com.bea.portlet.prefs.Preference> preferences, Map<String,String> properties) throws RemoteException, PreferenceAppStoreException
Writes the preferences to the underlying persistence.
This method should be implemented to be atomic. That is, the implementation should guarantee that either all preference values are persisted or none at all.
The java.util.Map
argument should contain
com.bea.netuix.application.prefs.Preference
objects keyed against their names.
uniqueId
- unique IDpreferences
- preferencesproperties
- map of context parameters set up by the container; see PreferenceAppStoreProperties for a list of relevant properties.
RemoteException
PreferenceAppStoreException
PreferenceAppStoreProperties
void removePreferences(PortletPreferencesId[] uniqueIds, Map<String,String> properties) throws RemoteException, PreferenceAppStoreException
Clear all preferences for the given unique ID from the underlying persistence store.
uniqueIds
- unique IDsproperties
- map of context parameters set up by the container; see PreferenceAppStoreProperties for a list of relevant properties.
RemoteException
PreferenceAppStoreException
PreferenceAppStoreProperties
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |