This content has been marked as final.
Show 3 replies
-
1. Re: portlet preferences and portlet instances
julien1 Apr 9, 2008 5:38 AM (in response to erezharari)It is true for shared pages, it is not true in a dashboard.
-
2. Re: portlet preferences and portlet instances
erezharari Apr 9, 2008 12:22 PM (in response to erezharari)oh,
so in dasboards each window has dedicated set of user-portlet preferences? -
3. Re: portlet preferences and portlet instances
julien1 Apr 9, 2008 6:44 PM (in response to erezharari)yes.
it could be possible to achieve smth similar with shared pages but would require a modification of the CustomizationManagerService to return a key for customization based on the window id + user id instead of only the user id
here is the relevant code:Instance instance = instanceContainer.getDefinition(instanceId); if (instance != null) { // If we are in the context of an existing user we get a customization for that user if (user != null) { String userId = getUserId(user); // And if it is in a dashboard context we get the per window customization if (isDashboard(window, user)) { // That's how we manufacture dash board keys String dashboardId = window.getId().toString(); // instance = instance.getCustomization(dashboardId); } else { instance = instance.getCustomization(userId); } } }