[jboss-dev-forums] [Design of JBoss Portal] - Re: Adding new attribute for a user.

apemberton do-not-reply at jboss.com
Wed Apr 1 09:40:52 EDT 2009


Benson: your answer depends a bit on your usage scenario.

If you're using the identity module for your security implementation, you can map user profile attributes to LDAP attributes or database columns in:

PS_HOME/server/default/deploy/jboss-portal.sar/conf/identity/profile-config.xml

You can then access these directly in your portlet views:

${requestScope['javax.portlet.userinfo']['user.name.given']}

By adding them to your portlet.xml:

<user-attribute> 
  |     <description>User Given Name</description> 
  |     <name>user.name.given</name>
  | </user-attribute>

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

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



More information about the jboss-dev-forums mailing list