public void storeEntityPreferences(Map<String, PortletPreference> map, PortletWindow window)
throws PreferencesException
{
for (Entry<String, PortletPreference> entry : map.entrySet())
{
org.apache.jetspeed.om.portlet.PortletDefinition pd = window.getPortletDefinition();
String entityId = window.getPortletEntityId();
String appName = pd.getApplication().getName();
String portletName = pd.getPortletName();
String entityCacheKey = this.getEntityPreferenceKey(appName, portletName, entityId);
preferenceCache.remove(entityCacheKey);
}
try
{
ContentFragment fragment = window.getFragment();
fragment.updatePreferences(map);
}
catch (Exception e)
{
throw new PreferencesException(e);
}
}