public interface PortletPreferencesProvider
extends org.apache.pluto.container.PortletPreferencesService
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getPortletWindowIds(PortletDefinition portletdefinition)
Retrieve entity ids (window) given portlet definition
|
Set<String> |
getUserNames(PortletDefinition portletdefinition,
String windowId)
Retrieve user names for given entity(window) id and portlet definition
|
Map<String,org.apache.pluto.container.PortletPreference> |
getUserPreferences(PortletDefinition portletdefinition,
String windowId,
String userName)
Retrieve entity preference names for given entity(window) id ,portlet definition and user name
|
void |
preload()
Initializes the preferences node by executing configured preloads.
|
void |
preloadApplicationPreferences(String portletApplicationName)
Preload all preferences for the given portlet application name into the preferences cache
|
void |
preloadUserPreferences()
Preload all user preferences for all users into the preferences cache.
|
void |
removeDefaults(PortletApplication app)
Remove all default preferences for all portlet definitions in a given portlet application
|
void |
removeDefaults(PortletDefinition pd)
Remove all default preferences for a given portlet definition
|
void |
removeDefaults(PortletDefinition pd,
String preferenceName)
Remove default preferences by preference name for a given portlet definition
|
void |
removeUserPreferences(String user)
Remove all user preferences for a given username
|
Map<String,org.apache.pluto.container.PortletPreference> |
retrieveDefaultPreferences(PortletDefinition pd)
Retrieve the default preferences for a given portlet definition
|
Map<String,org.apache.pluto.container.PortletPreference> |
retrieveEntityPreferences(PortletWindow window)
Retrieve entity (window) default preferences for a given window
|
Map<String,org.apache.pluto.container.PortletPreference> |
retrieveUserPreferences(PortletWindow window,
String userName)
Retrieve the user preferences for the window and user parameters
|
void |
sessionCreatedEvent(javax.servlet.http.HttpSession session) |
void |
sessionDestroyedEvent(javax.servlet.http.HttpSession session) |
void |
storeDefaults(PortletApplication app)
Store the default preferences for all portlets in the given portlet application
|
void |
storeDefaults(PortletDefinition pd,
Preference preference)
Store the default preferences by input preference for a given portlet definition
|
void |
storeDefaults(PortletDefinition pd,
Preferences prefs)
Store the default preferences by descriptor preferences for a given portlet definition
|
void |
storeEntityPreferences(Map<String,org.apache.pluto.container.PortletPreference> map,
PortletWindow window)
Store entity preferences contained in the map parameter for a given window
|
void |
storePortletPreference(PortletDefinition portletdefinition,
String windowId,
String userName,
Map<String,org.apache.pluto.container.PortletPreference> map)
Store portlet definition entity preferences contained in the map parameter
for a given window and username
|
void |
storePortletPreference(String appName,
String portletName,
String windowId,
String userName,
Map<String,org.apache.pluto.container.PortletPreference> map)
Store portlet entity preferences contained in the map parameter for a given
window and username
|
void |
storeUserPreferences(Map<String,org.apache.pluto.container.PortletPreference> map,
PortletWindow window,
String userName)
Store user preferences contained in the map parameter for a given user and window
|
void preload()
throws Exception
Exceptionvoid preloadApplicationPreferences(String portletApplicationName)
portletApplicationName - void preloadUserPreferences()
void storeDefaults(PortletDefinition pd, Preferences prefs)
pd - void storeDefaults(PortletDefinition pd, Preference preference)
pd - void storeDefaults(PortletApplication app)
app - void removeDefaults(PortletDefinition pd)
pd - void removeDefaults(PortletDefinition pd, String preferenceName)
pd - void removeDefaults(PortletApplication app)
app - Map<String,org.apache.pluto.container.PortletPreference> retrieveDefaultPreferences(PortletDefinition pd)
pd - Map<String,org.apache.pluto.container.PortletPreference> retrieveUserPreferences(PortletWindow window, String userName)
window - userName - Map<String,org.apache.pluto.container.PortletPreference> retrieveEntityPreferences(PortletWindow window)
window - void storeUserPreferences(Map<String,org.apache.pluto.container.PortletPreference> map, PortletWindow window, String userName) throws PreferencesException
map - window - userName - PreferencesExceptionvoid storeEntityPreferences(Map<String,org.apache.pluto.container.PortletPreference> map, PortletWindow window) throws PreferencesException
map - window - PreferencesExceptionSet<String> getPortletWindowIds(PortletDefinition portletdefinition)
portletdefinition - Set<String> getUserNames(PortletDefinition portletdefinition, String windowId)
portletdefinition - windowId - Map<String,org.apache.pluto.container.PortletPreference> getUserPreferences(PortletDefinition portletdefinition, String windowId, String userName)
portletdefinition - windowId - void storePortletPreference(PortletDefinition portletdefinition, String windowId, String userName, Map<String,org.apache.pluto.container.PortletPreference> map)
portletdefinition - windowId - userName - map - void storePortletPreference(String appName, String portletName, String windowId, String userName, Map<String,org.apache.pluto.container.PortletPreference> map)
appName - portletName - windowId - userName - map - void removeUserPreferences(String user)
user - the name of the user to delete all preferences forvoid sessionCreatedEvent(javax.servlet.http.HttpSession session)
void sessionDestroyedEvent(javax.servlet.http.HttpSession session)
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.