Managing users using the user module consists in:
The following xml block is the standard configuration for the UserPortlet found in portal-core.war/WEB-INF/portlet.xml:
<portlet> <portlet-name>UserPortlet</portlet-name> <portlet-class>org.jboss.portal.core.portlet.user.UserPortlet</portlet-class> <supported-locale>en</supported-locale> <supported-locale>fr</supported-locale> <resource-bundle>Resource</resource-bundle> <supports> <mime-type>text/html</mime-type> <portlet-mode>VIEW</portlet-mode> </supports> <portlet-info> <title>User portlet</title> </portlet-info> <init-param> <description>Whether we should use ssl on login and throughout the Portal. 1=yes;0=no</description> <name>useSSL</name> <value>0</value> </init-param> <init-param> <description>Subscription mode</description> <name>subscriptionMode</name> <!-- <value>emailVerification</value>--> <value>automatic</value> </init-param> <init-param> <description>Domain of your website for email verification.</description> <name>emailDomain</name> <value>JBoss.com</value> </init-param> <init-param> <description>Email displayed in the TO field</description> <name>emailFrom</name> <value>jbossportal@example.com</value> </init-param> <init-param> <description>Default role of registered users</description> <name>defaultRole</name> <value>Users</value> </init-param> </portlet>
The following attributes can be modified in the xml descriptor:
Allows for user logins to be passed thru a SSL.
Set to zero to disable.
Set to 1 to enable. You must have SSL configured properly in tomcat for this to work.
The user can register and is automatically enabled
The user is disabled until he clicks on a link sent to his email address.
Your domain name or the name of your website for the email verification form text.
Email address that will appear in the "From" header when the email verification is sent.
Default role assigned to new users