-
1. Re: portletpreferences per user
theute Apr 26, 2007 4:58 AM (in response to cpage)Yes it is part of the JSR 168, See PLT.15 of the sportlet spec. And the method store().
-
2. Re: portletpreferences per user
cpage Apr 26, 2007 7:13 AM (in response to cpage)"thomas.heute@jboss.com" wrote:
Yes it is part of the JSR 168, See PLT.15 of the sportlet spec. And the method store().
yes, i already use the portletpreferences to store preferences.
i asked the wrong question !
is it possible that an admin user modify portlet preferences for a group of users or all users ?
or, is it possible to get the portletpreferences of another user ?
logged as user1 and get the admin prefs.... -
3. Re: portletpreferences per user
theute Apr 26, 2007 8:39 AM (in response to cpage)The admin can edit the preferences at the portlet instance level, so it will be for all users.
(you can't do it per group of users) -
4. Re: portletpreferences per user
cpage Apr 26, 2007 10:25 AM (in response to cpage)thanks, that's what i need.
i can do that with the management portlet.
but, i need to do it programmaticaly in the portlet.
only admin users access to mode edit of this portlet and had to change preferences.
i need to acces to the injected service :
<service-name>InstanceContainer</service-name>
<service-class>org.jboss.portal.core.model.instance.InstanceContainer</service-class>
<service-ref>:container=Instance</service-ref>
how can i get the InstanceContainer object ?
i tried with a lookup but without succes
thanks very much
regards -
5. Re: portletpreferences per user
cpage Apr 27, 2007 5:18 AM (in response to cpage)i use that: and it works:
InstanceContainer container = (InstanceContainer)getPortletContext().getAttribute("InstanceContainer");
i had to inject the service InstanceContainer in the portlet context and use transaction to get my instance preferences.
works fine !
ty