Class RegistrationController
- java.lang.Object
-
- com.broadleafcommerce.auth.user.web.endpoint.RegistrationController
-
@FrameworkRestController @FrameworkMapping("/register") public class RegistrationController extends Object
REST controller for supporting embedded registration.- Author:
- Phillip Verheyden (phillipuniverse), Nathan Moore (nathandmoore)
- See Also:
for handling Universal Login
-
-
Constructor Summary
Constructors Constructor Description RegistrationController(UserRegistrationService<User> registrationService, UserLoginProperties properties, UserLoginService loginService, EmbeddedLoginProperties embeddedLoginProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected EmbeddedLoginProperties
getEmbeddedLoginProperties()
protected UserLoginService
getLoginService()
protected UserLoginProperties
getProperties()
protected UserRegistrationService<User>
getRegistrationService()
User
registerUser(UserRegistration user, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Deprecated.in favor of the approach inRegistrationFormController
.User
registerUser(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, UserRegistration userRegistration, String clientId)
-
-
-
Constructor Detail
-
RegistrationController
public RegistrationController(UserRegistrationService<User> registrationService, UserLoginProperties properties, UserLoginService loginService, EmbeddedLoginProperties embeddedLoginProperties)
-
-
Method Detail
-
registerUser
@Deprecated @FrameworkPostMapping public User registerUser(@RequestBody UserRegistration user, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Deprecated.in favor of the approach inRegistrationFormController
.
-
registerUser
@FrameworkPostMapping(path="/embedded/submit", consumes="application/json") public User registerUser(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @RequestBody UserRegistration userRegistration, @RequestParam("client_id") String clientId)
-
getRegistrationService
protected UserRegistrationService<User> getRegistrationService()
-
getProperties
protected UserLoginProperties getProperties()
-
getLoginService
protected UserLoginService getLoginService()
-
getEmbeddedLoginProperties
protected EmbeddedLoginProperties getEmbeddedLoginProperties()
-
-