Mu Baosen,
1) CODE:
admin = (PortalAdministration)
getPortletContext().getAttribute(
CommonPortletServices.CPS_PORTAL_ADMINISTRATION);
userManager = (UserManager)
getPortletContext().getAttribute(
"cps:UserManager");
roleManager = (PortalAdministration)
getPortletContext().getAttribute(
CommonPortletServices.CPS_ROLE_MANAGER_COMPONENT);
2) CONFIG
--- David Sean Taylor <[EMAIL PROTECTED]> wrote:
> Pham Tuan Minh wrote:
> >
> > When I run the portlet, userManager = null.
> > What is the wrong ?
> > How to update user infomation ? Which functions
> must I use ?
> >
> In your portlet application war, add a
> jetspeed-portlet.xml.
> Here is an example from the j2-admin portlet
> application:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <portlet-app id="j2-admin" version="1.0"
>
>
xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
> xmlns:js="http://portals.apache.org/jetspeed"
> xmlns:dc="http://www.purl.org/dc">
>
> ....
> <js:services>
> <js:service
> name='ApplicationServerManager'/>
> <js:service name='DeploymentManager'/>
> <js:service name='EntityAccessor'/>
> <js:service name='GroupManager'/>
> <js:service name='PageManager'/>
> <js:service name='PermissionManager'/>
> <js:service name='PortalAdministration'/>
> <js:service name='PortletFactory'/>
> <js:service name='PortalAdministration'/>
> <js:service
> name='PortletRegistryComponent'/>
> <js:service name='PortalStatistics'/>
> <js:service name="Profiler" />
> <js:service name='RoleManager'/>
> <js:service name='SearchComponent'/>
> <js:service name="SSO" />
> <js:service name='UserManager'/>
> </js:services>
>
> </portlet-app>
>
--- mu baosen <[EMAIL PROTECTED]> wrote:
> I have read the source of UserRegistrationPortlet
> and ChangePasswordPortlet.
>
> How to get the current password of a user? How to
> get the
> PortalAdministration or UserManager and RoleManager
> instance in login
> module?
>
> Thanks
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]