RE: How to set Security for Portlets ?
Thanks Shiva kumar, It's working. Regards, Sunil P S. Off: 5010261 (extn :2261) Res: 3329038 -Original Message- From: Shiva Kumar T [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 1:45 PM To: Jetspeed Users List Subject: RE: How to set Security for Portlets ? In the security.xreg you can define one more access element as below for role2. Still you will have the same name role1-Only in your portlets.xreg. role1-only Full access to user with the manager role. http://www.w3.org/2001/XMLSchema-instance"; xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/> http://www.w3.org/2001/XMLSchema-instance"; xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/> Regards shiva -Original Message- From: sunil_ps(INT) Sent: Thursday, January 30, 2003 1:34 PM To: 'Jetspeed Users List' Subject: RE: How to set Security for Portlets ? But if i have to give both role1 and role2 to a single portlet how to set that? Regards, Sunil P S. Off: 5010261 (extn :2261) Res: 3329038 -Original Message- From: Shiva Kumar T [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 1:13 PM To: Jetspeed Users List Subject: RE: How to set Security for Portlets ? Add a security reference for Portlets (someportlet.xreg)with the parent as the reference defined in security.xreg . Please find the example below. Say for portlet1 only role1 and admin have got all the rights and others does n't have any rights. This is for portlet1 done in portlets.xreg Weather Current weather conditions for a city org.apache.jetspeed.portal.portlets.CustomizerVelocityPortlet weather In security.xreg define the security reference as below. role1-only Full access to user with the manager role. http://www.w3.org/2001/XMLSchema-instance"; xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/> http://www.w3.org/2001/XMLSchema-instance"; xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/> So role1 will have all the access to portlet1. In the same way you can do for all other portlets by modifying your security.xreg and portlet.xreg. Thanx Shiva -Original Message- From: sunil_ps(INT) Sent: Thursday, January 30, 2003 12:30 PM To: 'Jetspeed Users List' 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to set Security for Portlets ?
In the security.xreg you can define one more access element as below for role2. Still you will have the same name role1-Only in your portlets.xreg. role1-only Full access to user with the manager role. http://www.w3.org/2001/XMLSchema-instance"; xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/> http://www.w3.org/2001/XMLSchema-instance"; xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/> Regards shiva -Original Message- From: sunil_ps(INT) Sent: Thursday, January 30, 2003 1:34 PM To: 'Jetspeed Users List' Subject: RE: How to set Security for Portlets ? But if i have to give both role1 and role2 to a single portlet how to set that? Regards, Sunil P S. Off: 5010261 (extn :2261) Res: 3329038 -Original Message- From: Shiva Kumar T [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 1:13 PM To: Jetspeed Users List Subject: RE: How to set Security for Portlets ? Add a security reference for Portlets (someportlet.xreg)with the parent as the reference defined in security.xreg . Please find the example below. Say for portlet1 only role1 and admin have got all the rights and others does n't have any rights. This is for portlet1 done in portlets.xreg Weather Current weather conditions for a city org.apache.jetspeed.portal.portlets.CustomizerVelocityPortlet weather In security.xreg define the security reference as below. role1-only Full access to user with the manager role. http://www.w3.org/2001/XMLSchema-instance"; xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/> http://www.w3.org/2001/XMLSchema-instance"; xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/> So role1 will have all the access to portlet1. In the same way you can do for all other portlets by modifying your security.xreg and portlet.xreg. Thanx Shiva -Original Message- From: sunil_ps(INT) Sent: Thursday, January 30, 2003 12:30 PM To: 'Jetspeed Users List' 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to set Security for Portlets ?
But if i have to give both role1 and role2 to a single portlet how to set that? Regards, Sunil P S. Off: 5010261 (extn :2261) Res: 3329038 -Original Message- From: Shiva Kumar T [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 1:13 PM To: Jetspeed Users List Subject: RE: How to set Security for Portlets ? Add a security reference for Portlets (someportlet.xreg)with the parent as the reference defined in security.xreg . Please find the example below. Say for portlet1 only role1 and admin have got all the rights and others does n't have any rights. This is for portlet1 done in portlets.xreg Weather Current weather conditions for a city org.apache.jetspeed.portal.portlets.CustomizerVelocityPortlet weather In security.xreg define the security reference as below. role1-only Full access to user with the manager role. http://www.w3.org/2001/XMLSchema-instance"; xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/> http://www.w3.org/2001/XMLSchema-instance"; xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/> So role1 will have all the access to portlet1. In the same way you can do for all other portlets by modifying your security.xreg and portlet.xreg. Thanx Shiva -Original Message- From: sunil_ps(INT) Sent: Thursday, January 30, 2003 12:30 PM To: 'Jetspeed Users List' 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to set Security for Portlets ?
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]
RE: How to set Security for Portlets ?
Add a security reference for Portlets (someportlet.xreg)with the parent as the reference defined in security.xreg . Please find the example below. Say for portlet1 only role1 and admin have got all the rights and others does n't have any rights. This is for portlet1 done in portlets.xreg Weather Current weather conditions for a city org.apache.jetspeed.portal.portlets.CustomizerVelocityPortlet weather In security.xreg define the security reference as below. role1-only Full access to user with the manager role. http://www.w3.org/2001/XMLSchema-instance"; xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/> http://www.w3.org/2001/XMLSchema-instance"; xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/> So role1 will have all the access to portlet1. In the same way you can do for all other portlets by modifying your security.xreg and portlet.xreg. Thanx Shiva -Original Message- From: sunil_ps(INT) Sent: Thursday, January 30, 2003 12:30 PM To: 'Jetspeed Users List' 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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]