[Design of JBoss Portal] - Re: Portlet Instance configuration with nice GUI
by thomas.heute@jboss.com
"michaelchan" wrote : Thank you all for the reply.
|
| Actually, i have attempted a workaround solution but with no success. My approach is as follow:
|
| Use portlet admin mode in JBoss portal, and enable the admin mode for uncheck user role.
|
| It is possible to hide the admin mode from all users apart from admin, to do it, just simply hide all portlet decorations by using empty renderer or write a custom empty renderer.
|
hiding != securing
"michaelchan" wrote :
| However, even with admin mode, uncheck users could not change the perferences, this is because all perferences are set to read-only if the user role is uncheck. I tried specifying read-only to false in portlet.xml, but still not success.
|
I don't understand
"michaelchan" wrote : So julien do you mean that I could use EDIT_DEFAULT mode with JSF portlet bridge?? Anyway, i will give that a go.
No, he was talking about the JSF admin portlet.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164019#4164019
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164019
17 years, 9 months
[Design of JBoss Portal] - Re: Portlet Instance configuration with nice GUI
by thomas.heute@jboss.com
I think i see what you both mean, and i think you are slightly diverging.
Michael says that preferences are not stored per portlet instance but per user, that's only if you use the Portlet spec API.
The portlet spec API doesn't define an API to modify portlet instance preferences. It means that we would need to open that internal API to a public API.
Using this API, the first cheap solution would be to use the EDIT mode with that internal API (see portal-admin for how to do it).
(As of now you cannot secure a portlet mode for specific roles, so that would let anyone changing the preference for everybody, this is work in progress. You can then use isUserInRole to show part of the GUI for portlet-instance changes, but if your users will still see the edit button, then a blank screen (unless you let them override that preference with a user specific one for example))
To use Julien's (good) idea you would use the same API and create your GUI, you would then be able to change the portlet instance preference from the admin portlet (which can be secured) using the GUI defined by the portlet itself.
Overall i think it's a good idea that should go in Jira
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4163999#4163999
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4163999
17 years, 9 months