Hi,
I would like to use UserModule into a portlet that allow administrator to create new user.
In my portlet I have tested this:
UserModule userModule = (UserModule)getPortletContext().getAttribute("UserModule");
User user = userModule.createUser('toto','toto','toto@test.com');
In descriptor jboss-portlet I have put:
<portlet> <portlet-name>UserAdminPortlet</portlet-name> <transaction> <trans-attribute>Required</trans-attribute> <transaction> <portlet> <service> <service-name>UserModule</service-name> <service-class>org.jboss.portal.identity.UserModule</service-class> <service-ref>:service=Module,type=User</service-ref> </service>
Hi,
I know the entry is very old. But did you solve the problem? I need support for exactly the same problem.
Greetings