This content has been marked as final.
Show 1 reply
-
1. Re: Handling user creation
toomtooms Oct 28, 2011 10:11 AM (in response to dornier_wal)Hello,
yes you are on the right way.
Extend the org.exoplatform.services.organization.UserEventListener class (as org.exoplatform.services.organization.impl.NewUserEventListener does), then declare this listener in the configuration :
{code}
<external-component-plugins>
<target-component>org.exoplatform.services.organization.OrganizationService</target-component>
<component-plugin>
<name>new.user.event.listener</name>
<set-method>addListenerPlugin</set-method>
<type>my.package.MyUserEventListener</type>
<description>this listener is called when an user is created/updated/deleted</description>
</component-plugin>
</external-component-plugins>
{code}
You can now add your code before or after an user is created.