|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.portlet.prefs.spi.PreferencePersistenceDelegate
public class PreferencePersistenceDelegate
Manages portlet preferences. This class can manage preferences across local and remote portlets. This class will use the deployed SPI for managing preferences for local portlets.
Nested Class Summary | |
---|---|
static class |
PreferencePersistenceDelegate.Factory
Returns an instance of PreferencePersistenceDelegate . |
Constructor Summary | |
---|---|
protected |
PreferencePersistenceDelegate()
Creates an instance. |
Method Summary | |
---|---|
boolean |
canPropagatePreferences(PortletPreferencesId uniqueId,
HttpServletRequest httpRequest)
Returns true if the given portlet supports portlet preferences and can
propagate preferences to successor instances. |
Map |
getPreferences(PortletPreferencesId uniqueId,
HttpServletRequest httpRequest,
Map defaultPreferences)
Returns preferences for the given portlet. |
protected boolean |
isRemote(HttpServletRequest httpRequest,
PortletPreferencesId uniqueId)
Returns true if the given portlet is a proxy portlet. |
void |
removePreferences(PortletPreferencesId uniqueId,
HttpServletRequest httpRequest)
Removes preferences. |
PortletPreferencesId |
storePreferences(PortletPreferencesId uniqueId,
Map preferences,
HttpServletRequest httpRequest,
boolean checkForSuccessor,
boolean propagate)
Stores portlet preferences. |
PortletPreferencesId |
storePreferences(PortletPreferencesId uniqueId,
Map preferences,
HttpServletRequest httpRequest,
boolean checkForSuccessor,
boolean propagate,
boolean forceSuccessorCreate)
Deprecated use storePreferences(PortletPreferencesId, Map, HttpServletRequest, boolean, boolean) |
boolean |
supportsPreferences(PortletPreferencesId uniqueId,
HttpServletRequest httpRequest)
Indicates whether the given portlet supports preferences or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected PreferencePersistenceDelegate()
Creates an instance.
Method Detail |
---|
public Map getPreferences(PortletPreferencesId uniqueId, HttpServletRequest httpRequest, Map defaultPreferences) throws PreferenceStoreException
Returns preferences for the given portlet.
uniqueId
- unique IDhttpRequest
- HTTP requestdefaultPreferences
- defaults
PreferenceStoreException
public PortletPreferencesId storePreferences(PortletPreferencesId uniqueId, Map preferences, HttpServletRequest httpRequest, boolean checkForSuccessor, boolean propagate) throws PreferenceStoreException
Stores portlet preferences.
uniqueId
- preferences
- httpRequest
- checkForSuccessor
- propagate
-
PreferenceStoreException
@Deprecated public PortletPreferencesId storePreferences(PortletPreferencesId uniqueId, Map preferences, HttpServletRequest httpRequest, boolean checkForSuccessor, boolean propagate, boolean forceSuccessorCreate) throws PreferenceStoreException
storePreferences(PortletPreferencesId, Map, HttpServletRequest, boolean, boolean)
Stores portlet preferences.
uniqueId
- preferences
- httpRequest
- checkForSuccessor
- propagate
-
PreferenceStoreException
public void removePreferences(PortletPreferencesId uniqueId, HttpServletRequest httpRequest) throws PreferenceStoreException
Removes preferences.
uniqueId
- httpRequest
-
PreferenceStoreException
public boolean supportsPreferences(PortletPreferencesId uniqueId, HttpServletRequest httpRequest) throws PreferenceStoreException
Indicates whether the given portlet supports preferences or not.
uniqueId
- httpRequest
-
PreferenceStoreException
public boolean canPropagatePreferences(PortletPreferencesId uniqueId, HttpServletRequest httpRequest) throws PreferenceStoreException
Returns true
if the given portlet supports portlet preferences and can
propagate preferences to successor instances.
uniqueId
- httpRequest
-
PreferenceStoreException
protected boolean isRemote(HttpServletRequest httpRequest, PortletPreferencesId uniqueId) throws PreferenceStoreException
Returns true
if the given portlet is a proxy portlet. If the portlet is
remote, this class uses an internal SPI for proxy portlets.
httpRequest
- uniqueId
-
PreferenceStoreException
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |