Class CustomerGroupsController
java.lang.Object
de.hybris.platform.commercewebservices.core.v2.controller.BaseController
de.hybris.platform.commercewebservices.core.v2.controller.CustomerGroupsController
@Controller
@RequestMapping("/{baseSiteId}/customergroups")
public class CustomerGroupsController
extends BaseController
Controller for
CustomerGroupFacade-
Field Summary
Fields inherited from class de.hybris.platform.commercewebservices.core.v2.controller.BaseController
BASIC_FIELD_SET, DEFAULT_CURRENT_PAGE, DEFAULT_FIELD_SET, DEFAULT_PAGE_SIZE, HEADER_TOTAL_COUNT, INVALID_REQUEST_BODY_ERROR_MESSAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckIfAllUsersExist(Collection<String> ids, Function<String, String> messageSupport) protected voidcheckIfUserExist(String id, Function<String, String> messageSupport) voidcreateCustomerGroup(UserGroupWsDTO userGroup) voidcreateCustomerGroup(String groupId, String localizedName) Deprecated, for removal: This API element is subject to removal in a future version.since 2005.protected StringcreateOperationErrorMessage(String operationMessage, String groupId, String userId) getCustomerGroup(String groupId, String fields) getCustomerGroups(int currentPage, int pageSize, String fields) voidremoveUsersFromCustomerGroup(String groupId, String userId) voidreplaceUserListForCustomerGroup(String groupId, List<String> members) Deprecated, for removal: This API element is subject to removal in a future version.since 2005.voidreplaceUsersForCustomerGroup(String groupId, MemberListWsDTO members) protected voidsetUserListForCustomerGroupInternal(String groupId, List<String> members) protected StringvoidupdateCustomerGroupWithUsers(String groupId, MemberListWsDTO members) voidupdateCustomerGroupWithUsers(String groupId, List<String> members) Deprecated, for removal: This API element is subject to removal in a future version.since 2005.Methods inherited from class de.hybris.platform.commercewebservices.core.v2.controller.BaseController
addPaginationField, getDataMapper, handleDuplicateUidException, handleErrorInternal, handleHttpMessageNotReadableException, handleModelNotFoundException, logParam, logParam, logValue, sanitize, setDataMapper, setTotalCountHeader, setTotalCountHeader, validate
-
Constructor Details
-
CustomerGroupsController
public CustomerGroupsController()
-
-
Method Details
-
createCustomerGroup
@Deprecated(since="2005", forRemoval=true) @ResponseStatus(CREATED) @RequestMapping(method=POST) @Secured("ROLE_CUSTOMERMANAGERGROUP") public void createCustomerGroup(@RequestParam String groupId, @RequestParam(required=false) String localizedName) Deprecated, for removal: This API element is subject to removal in a future version.since 2005. Please usecreateCustomerGroup(UserGroupWsDTO)instead. -
createCustomerGroup
@ResponseStatus(CREATED) @RequestMapping(method=POST, consumes={"application/json","application/xml"}) @Secured("ROLE_CUSTOMERMANAGERGROUP") public void createCustomerGroup(@RequestBody UserGroupWsDTO userGroup) -
updateCustomerGroupWithUsers
@Deprecated(since="2005", forRemoval=true) @RequestMapping(value="/{groupId}/members", method=PATCH) @Secured("ROLE_CUSTOMERMANAGERGROUP") @ResponseStatus(OK) public void updateCustomerGroupWithUsers(@PathVariable String groupId, @RequestParam("members") List<String> members) Deprecated, for removal: This API element is subject to removal in a future version.since 2005. Please useupdateCustomerGroupWithUsers(String, MemberListWsDTO)instead. -
updateCustomerGroupWithUsers
@RequestMapping(value="/{groupId}/members", method=PATCH, consumes={"application/json","application/xml"}) @Secured("ROLE_CUSTOMERMANAGERGROUP") @ResponseStatus(OK) public void updateCustomerGroupWithUsers(@PathVariable String groupId, @RequestBody MemberListWsDTO members) -
replaceUserListForCustomerGroup
@Deprecated(since="2005", forRemoval=true) @RequestMapping(value="/{groupId}/members", method=PUT) @Secured("ROLE_CUSTOMERMANAGERGROUP") @ResponseStatus(OK) public void replaceUserListForCustomerGroup(@PathVariable String groupId, @RequestParam(required=false,value="members") List<String> members) Deprecated, for removal: This API element is subject to removal in a future version.since 2005. Please usereplaceUsersForCustomerGroup(String, MemberListWsDTO)instead. -
setUserListForCustomerGroupInternal
-
toUid
-
checkIfAllUsersExist
-
checkIfUserExist
-
replaceUsersForCustomerGroup
@RequestMapping(value="/{groupId}/members", method=PUT, consumes={"application/json","application/xml"}) @Secured("ROLE_CUSTOMERMANAGERGROUP") @ResponseStatus(OK) public void replaceUsersForCustomerGroup(@PathVariable String groupId, @RequestBody MemberListWsDTO members) -
removeUsersFromCustomerGroup
-
getCustomerGroups
@RequestMapping(method=GET) @Secured("ROLE_CUSTOMERMANAGERGROUP") @ResponseStatus(OK) @ResponseBody public UserGroupListWsDTO getCustomerGroups(@RequestParam(defaultValue="0") int currentPage, @RequestParam(defaultValue="20") int pageSize, @RequestParam(defaultValue="BASIC") String fields) -
getCustomerGroup
@RequestMapping(value="/{groupId}", method=GET) @Secured("ROLE_CUSTOMERMANAGERGROUP") @ResponseStatus(OK) @ResponseBody public UserGroupWsDTO getCustomerGroup(@PathVariable String groupId, @RequestParam(defaultValue="BASIC") String fields) -
createOperationErrorMessage
-