2012-02-12 06:55:42 +01: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 22:03:17 +02:00
|
|
|
<bean id="userValidator" class="com.wisemapping.validator.UserValidator">
|
2012-02-12 06:55:42 +01:00
|
|
|
<property name="userService" ref="userService"/>
|
2012-03-22 03:30:07 +01:00
|
|
|
<property name="captchaService" ref="reCaptcha"/>
|
2012-02-12 06:55:42 +01:00
|
|
|
</bean>
|
|
|
|
|
2012-03-22 03:30:07 +01:00
|
|
|
<bean id="userController" class="com.wisemapping.controller.UserRegistrationController">
|
2012-02-12 06:55:42 +01: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-22 03:30:07 +01:00
|
|
|
<property name="emailConfirmEnabled" value="${registration.email.enabled}"/>
|
|
|
|
<property name="captchaEnabled" value="${registration.recaptcha.enabled}"/>
|
|
|
|
<property name="captchaService" ref="reCaptcha"/>
|
2012-02-12 06:55:42 +01:00
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="settingResolver" class="org.springframework.web.servlet.mvc.multiaction.PropertiesMethodNameResolver">
|
|
|
|
<property name="mappings">
|
|
|
|
<props>
|
2012-06-03 16:16:38 +02:00
|
|
|
<prop key="settings">settings</prop>
|
2012-02-12 06:55:42 +01: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 17:31:09 +02:00
|
|
|
<!-- Forms based -->
|
2012-06-16 20:59:59 +02:00
|
|
|
<prop key="userRegistration">usersController</prop>
|
2012-06-03 16:16:38 +02: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 06:55:42 +01:00
|
|
|
</props>
|
|
|
|
</property>
|
|
|
|
</bean>
|
2009-06-07 20:59:43 +02:00
|
|
|
</beans>
|