Class TmaUsersController
java.lang.Object
de.hybris.platform.b2ctelcoocc.controllers.BaseController
de.hybris.platform.b2ctelcoocc.controllers.TmaUsersController
@Controller
@RequestMapping("/{baseSiteId}/users")
public class TmaUsersController
extends BaseController
Controller for user related requests such as create/update a user.
- Since:
- 1911
-
Field Summary
Fields inherited from class de.hybris.platform.b2ctelcoocc.controllers.BaseController
DEFAULT_FIELD_SET, FULL_FIELD_SET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateUser(UserSignUpWsDTO user, String fields, javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse) protected StringgetAbsoluteLocationURL(javax.servlet.http.HttpServletRequest httpRequest, String uid) protected CustomerDatagetCustomerData(RegisterData registerData, boolean userExists, String userId) voidinitBinder(org.springframework.web.bind.WebDataBinder binder) voidreplaceUser(UserWsDTO user) voidupdateUser(UserWsDTO user) Methods inherited from class de.hybris.platform.b2ctelcoocc.controllers.BaseController
getDataMapper, getI18nService, getMessageSource, handleErrorInternal, handleModelNotFoundException, sanitize, setDataMapper, setI18nService, setMessageSource, validate
-
Constructor Details
-
TmaUsersController
public TmaUsersController()
-
-
Method Details
-
createUser
@Secured({"ROLE_CLIENT","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(method=POST, consumes={"application/json","application/xml"}) @ResponseStatus(CREATED) @ResponseBody public UserWsDTO createUser(@RequestBody UserSignUpWsDTO user, @RequestParam(defaultValue="DEFAULT") String fields, javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse) -
replaceUser
@Secured({"ROLE_CUSTOMERGROUP","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(value="/{userId}", method=PUT, consumes={"application/json","application/xml"}) @ResponseStatus(OK) public void replaceUser(@RequestBody UserWsDTO user) throws de.hybris.platform.commerceservices.customer.DuplicateUidException - Throws:
de.hybris.platform.commerceservices.customer.DuplicateUidException
-
updateUser
@Secured({"ROLE_CUSTOMERGROUP","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(value="/{userId}", method=PATCH, consumes={"application/json","application/xml"}) @ResponseStatus(OK) public void updateUser(@RequestBody UserWsDTO user) throws de.hybris.platform.commerceservices.customer.DuplicateUidException - Throws:
de.hybris.platform.commerceservices.customer.DuplicateUidException
-
getCustomerData
protected CustomerData getCustomerData(RegisterData registerData, boolean userExists, String userId) -
getAbsoluteLocationURL
-
initBinder
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
-