Class TmaUsersController
- java.lang.Object
-
- de.hybris.platform.b2ctelcooccaddon.controllers.BaseController
-
- de.hybris.platform.b2ctelcooccaddon.controllers.TmaUsersController
-
@Controller @RequestMapping("/{baseSiteId}/users") public class TmaUsersController extends BaseControllerController for user related requests such as create/update a user.- Since:
- 1911
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.b2ctelcooccaddon.controllers.BaseController
DEFAULT_FIELD_SET, FULL_FIELD_SET
-
-
Constructor Summary
Constructors Constructor Description TmaUsersController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserWsDTOcreateUser(UserSignUpWsDTO user, java.lang.String fields, javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse)protected java.lang.StringgetAbsoluteLocationURL(javax.servlet.http.HttpServletRequest httpRequest, java.lang.String uid)protected CustomerDatagetCustomerData(RegisterData registerData, boolean userExists, java.lang.String userId)voidinitBinder(org.springframework.web.bind.WebDataBinder binder)voidreplaceUser(UserWsDTO user)protected java.lang.Stringsanitize(java.lang.String input)voidupdateUser(UserWsDTO user)-
Methods inherited from class de.hybris.platform.b2ctelcooccaddon.controllers.BaseController
getDataMapper, getI18nService, getMessageSource, handleErrorInternal, handleModelNotFoundException, setDataMapper, setI18nService, setMessageSource, validate
-
-
-
-
Method Detail
-
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") java.lang.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, java.lang.String userId)
-
getAbsoluteLocationURL
protected java.lang.String getAbsoluteLocationURL(javax.servlet.http.HttpServletRequest httpRequest, java.lang.String uid)
-
sanitize
protected java.lang.String sanitize(java.lang.String input)
- Overrides:
sanitizein classBaseController
-
initBinder
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
-
-