com.bea.portlet.prefs
Interface IPreferenceAppStore

All Superinterfaces
javax.ejb.EJBObject, Remote

public interface IPreferenceAppStore
extends javax.ejb.EJBObject

This is an SPI for managing preferences for portlets.

See Also
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.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

getPreferences

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.

Parameters
uniqueId - unique ID
properties - map of context parameters set up by the container.
Returns
preferences
Throws
RemoteException
PreferenceAppStoreException
See Also
PreferenceAppStoreProperties

storePreferences

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 implemenation 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.

Parameters
uniqueId - unique ID
preferences - preferences
properties - map of context parameters set up by the container.
Throws
RemoteException
PreferenceAppStoreException
See Also
PreferenceAppStoreProperties

removePreferences

void removePreferences(PortletPreferencesId[] uniqueIds,
                       Map<String,String> properties)
                       throws RemoteException,
                              PreferenceAppStoreException

Clear all preferences for the given unique ID from the underlying persistence store.

Parameters
uniqueIds - unique IDs
properties - map of context parameters set up by the container.
Throws
RemoteException
PreferenceAppStoreException
See Also
PreferenceAppStoreProperties


Copyright © 2006 BEA Systems, Inc. All Rights Reserved