[jboss-user] [JBoss Portal] - Re: Apply a role policy access to a portlet

manui do-not-reply at jboss.com
Thu Oct 26 05:55:09 EDT 2006


"sohil.shah at jboss.com" wrote : Manui-
  | 
  | Are your roles specified in the portlet.xml and correspondingly available in the  roles table in the portal.
  | 
  | 
  | Can u post your portlet.xml and jboss-portlet.xml as well.
  | 
  | 
  | Thanks
  | Sohil
Hi Sohil in the admin panel I've inserted the role and I can view in the DB.
my portlet.xml is:
<portlet-app version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/portlet"
  xmlns="http://java.sun.com/xml/ns/portlet">
  
    <portlet-name>I18nPortlet</portlet-name>
    <portlet-class>org.eu.myheart.portlets.I18nPortlet</portlet-class>
    <portlet-info>
       I18nPortlet
    </portlet-info>
    
      <mime-type>text/html</mime-type>
      <portlet-mode>VIEW</portlet-mode>
       
  
   <user-attribute>
      user.name.nickName
   </user-attribute>
   <user-attribute>
      user.business-info.online.email
   </user-attribute>
   <user-attribute>
      user.name.given
   </user-attribute>
   <user-attribute>
      user.name.family
   </user-attribute>
   <user-attribute>
      portal.user.locale
   </user-attribute>
   <user-attribute>
      portal.user.signature
   </user-attribute>
   <user-attribute>
      portal.user.last-login-date
   </user-attribute>
   </portlet-app>
and my jboss-portlet.xml 
<portlet-app>
    
         <portlet-name>I18nPortlet</portlet-name>
    
     
      <service-name>UserModule</service-name>
      <service-class>org.jboss.portal.identity.UserModule</service-class>
      <service-ref>:service=Module,type=User</service-ref>
   
</portlet-app>     
Question:
1. there is a user attribute tag to obtain the role of the user??
2. I've also declared the use of the Usermodule, how I can get the role...?
thanks very much manuel

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980955#3980955

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980955



More information about the jboss-user mailing list