UserInfo Services
uPortal UserInfoServices provide user attributes to portlets through the UserInfo map. Services bundled with uPortal offer the ability to add person directory attributes, CAS proxy tickets, and cached credentials to portlets. Adopters who wish to provide the UserInfo map with additional information may use this API to add more attributes.
To create a new UserInfoService, create an implementation of org.apache.pluto.spi.optional.UserInfoService. A good example UserInfoService might be the CachedPasswordUserInfoService. This service adds a cached user password to the UserInfo map.
Once your new service is created, wire it into uportal-impl/src/main/resources/properties/contexts/portletContainerContext.xml. You will need to create a bean definition for the new service, then add it to the "userInfoService" bean's list of services to be merged.
<bean id="userInfoService" class="org.jasig.portal.portlet.container.services.MergingUserInfoService"> <property name="userInfoServices"> <list> <ref bean="personDirectoryUserInfoService"/> <ref bean="casTicketUserInfoService"/> <ref bean="myNewUserInfoService"/> </list> </property> </bean> <bean id="myNewUserInfoService" class="org.jasig.portal.portlet.container.services.MyNewUserInfoService"> <property name="portletWindowRegistry" ref="portletWindowRegistry" /> <property name="portletEntityRegistry" ref="portletEntityRegistry" /> <property name="portletDefinitionRegistry" ref="portletDefinitionRegistry" /> <property name="portalRequestUtils" ref="portalRequestUtils" /> <!-- Additional Spring resources required by your service --> </bean>