2012-02-12 02:55:42 -03:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
|
|
|
|
|
|
|
<beans>
|
|
|
|
|
2012-06-16 17:03:17 -03:00
|
|
|
<bean id="userValidator" class="com.wisemapping.validator.UserValidator">
|
2012-02-12 02:55:42 -03:00
|
|
|
<property name="userService" ref="userService"/>
|
2012-03-21 23:30:07 -03:00
|
|
|
<property name="captchaService" ref="reCaptcha"/>
|
2012-02-12 02:55:42 -03:00
|
|
|
</bean>
|
|
|
|
|
2012-03-21 23:30:07 -03:00
|
|
|
<bean id="userController" class="com.wisemapping.controller.UserRegistrationController">
|
2012-02-12 02:55:42 -03:00
|
|
|
<property name="sessionForm" value="false"/>
|
|
|
|
<property name="commandName" value="user"/>
|
|
|
|
<property name="commandClass" value="com.wisemapping.view.UserBean"/>
|
|
|
|
<property name="validator" ref="userValidator"/>
|
|
|
|
<property name="formView" value="userRegistration"/>
|
|
|
|
<property name="successView" value="userRegistrationConfirmation"/>
|
|
|
|
<property name="userService" ref="userService"/>
|
2012-03-21 23:30:07 -03:00
|
|
|
<property name="emailConfirmEnabled" value="${registration.email.enabled}"/>
|
|
|
|
<property name="captchaEnabled" value="${registration.recaptcha.enabled}"/>
|
|
|
|
<property name="captchaService" ref="reCaptcha"/>
|
2012-02-12 02:55:42 -03:00
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="settingResolver" class="org.springframework.web.servlet.mvc.multiaction.PropertiesMethodNameResolver">
|
|
|
|
<property name="mappings">
|
|
|
|
<props>
|
2012-06-03 11:16:38 -03:00
|
|
|
<prop key="settings">settings</prop>
|
2012-02-12 02:55:42 -03:00
|
|
|
</props>
|
|
|
|
</property>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="settingsController" class="com.wisemapping.controller.SettingsController">
|
|
|
|
<property name="methodNameResolver" ref="settingResolver"/>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="changePasswordValidator" class="com.wisemapping.validator.ChangePasswordValidator"/>
|
|
|
|
<bean id="changePasswordController" class="com.wisemapping.controller.ChangePasswordController">
|
|
|
|
<property name="sessionForm" value="false"/>
|
|
|
|
<property name="commandName" value="changePassword"/>
|
|
|
|
<property name="commandClass" value="com.wisemapping.view.ChangePasswordBean"/>
|
|
|
|
<property name="validator" ref="changePasswordValidator"/>
|
|
|
|
<property name="formView" value="changePassword"/>
|
|
|
|
<property name="successView" value="closeDialog"/>
|
|
|
|
<property name="userService" ref="userService"/>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="editProfileValidator" class="com.wisemapping.validator.EditProfileValidator">
|
|
|
|
<property name="userService" ref="userService"/>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="editProfileController" class="com.wisemapping.controller.EditProfileController">
|
|
|
|
<property name="sessionForm" value="false"/>
|
|
|
|
<property name="commandName" value="editProfile"/>
|
|
|
|
<property name="commandClass" value="com.wisemapping.view.UserBean"/>
|
|
|
|
<property name="validator" ref="editProfileValidator"/>
|
|
|
|
<property name="formView" value="editProfile"/>
|
|
|
|
<property name="successView" value="closeDialog"/>
|
|
|
|
<property name="userService" ref="userService"/>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="activationController" class="com.wisemapping.controller.ActivationController">
|
|
|
|
<property name="userService" ref="userService"/>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
|
|
|
|
<property name="interceptors">
|
|
|
|
<list>
|
|
|
|
<ref bean="browserSupportInterceptor"/>
|
|
|
|
<ref bean="localeChangeInterceptor"/>
|
|
|
|
</list>
|
|
|
|
</property>
|
|
|
|
<property name="mappings">
|
|
|
|
<props>
|
2012-05-25 12:31:09 -03:00
|
|
|
<!-- Forms based -->
|
2012-06-16 15:59:59 -03:00
|
|
|
<prop key="userRegistration">usersController</prop>
|
2012-06-03 11:16:38 -03:00
|
|
|
<prop key="login">loginController</prop>
|
|
|
|
<prop key="activation">activationController</prop>
|
|
|
|
<prop key="changePassword">changePasswordController</prop>
|
|
|
|
<prop key="settings">settingsController</prop>
|
|
|
|
<prop key="editProfile">editProfileController</prop>
|
2012-02-12 02:55:42 -03:00
|
|
|
</props>
|
|
|
|
</property>
|
|
|
|
</bean>
|
2009-06-07 18:59:43 +00:00
|
|
|
</beans>
|