Since I am quite a jetspeed newbie I do not know whether this is a good 
solution, but it should work:

-  define your group like "mygroup"
-  define a psml under WEB-INF/psml/group/mygroup/html/defaul.psml with 
portlets 1 and 2
-  define your roles like "role1" and "role2"
-  define  a psml under WEB-INF/psml/role/role2/html/defaul.psml with 
portlets 3 and 4
-  define  a psml under WEB-INF/psml/role/role1/html/defaul.psml with 
nothing (see next step)
-  use a "psml locator" 
[http://jakarta.apache.org/jetspeed/site/psml.html] to include portlets 1 
and 2 in the psml of role 2
-  use a "psml locator" 
[http://jakarta.apache.org/jetspeed/site/psml.html] to include portlets 1 
and 2 in the psml of role 1

- If you use the profiler mechanism which automatically checks the 
browsers language, you probably need to
change the path from e.g. WEB-INF/psml/group/mygroup/html/defaul.psml
WEB-INF/psml/group/mygroup/html/DE/CH/defaul.psml (for switzerland). Or 
simply switch the profiler off in
turbine.properties for the first try-outs.

- tell me, whats the effect if a user has both roles? Does he have portlet 
1 and 2 twice?

HTH,
Kris

jetspeed-gurus: Is this a proper solution?







"Sunil Sheshadri" <[EMAIL PROTECTED]>
30.01.2003 08:00
Please respond to "Jetspeed Users List"

 
        To:     "'Jetspeed Users List'" <[EMAIL PROTECTED]>
        cc: 
        Subject:        How to set Security for Portlets ?


Hi,
I have two new roles defined in my application. role1 and role2

I have 4 portlets.
role1 has to access only 1 and 2 portlets.
but role2 has to have access to all 1,2,3,4 portlets. How to sent the 
roles
for the portlets ?


Regards,
Sunil P S.
Off: 5010261 (extn :2261)
Res: 3329038


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to