Class ScimGroupsController
- java.lang.Object
-
- de.hybris.platform.scimwebservices.v2.controllers.ScimGroupsController
-
@RestController @RequestMapping("/Groups") public class ScimGroupsController extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ScimGroupsController()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ScimGroupcreateGroup(ScimGroup scimGroup)voiddeleteGroup(java.lang.String groupId)ScimGroupgetGroup(java.lang.String groupId)ScimGroupListgetGroups(int startIndex, int count, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)ScimGrouppatchGroup(java.lang.String groupId, ScimGroup scimGroup)protected static java.lang.Stringsanitize(java.lang.String input)Method to sanitize the input stringScimGroupupdateGroup(java.lang.String groupId, ScimGroup scimGroup)protected voidvalidate(java.lang.String id)Validates the object by using the passed validator
-
-
-
Method Detail
-
createGroup
@PostMapping(produces="application/json", consumes="application/json") public ScimGroup createGroup(@RequestBody ScimGroup scimGroup)
-
updateGroup
@PutMapping(value="/{groupId}", produces="application/json", consumes="application/json") public ScimGroup updateGroup(@PathVariable java.lang.String groupId, @RequestBody ScimGroup scimGroup)
-
getGroup
@GetMapping(value="/{groupId}", produces="application/json") public ScimGroup getGroup(@PathVariable java.lang.String groupId)
-
getGroups
@GetMapping(produces="application/json") public ScimGroupList getGroups(@RequestParam(value="startIndex",defaultValue="1") int startIndex, @RequestParam(value="count",defaultValue="0") int count, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
deleteGroup
@ResponseStatus(OK) @RequestMapping(value="/{groupId}", method=DELETE) public void deleteGroup(@PathVariable java.lang.String groupId)
-
patchGroup
@ResponseStatus(OK) @RequestMapping(value="/{groupId}", method=PATCH, produces="application/json", consumes="application/json") public ScimGroup patchGroup(@PathVariable java.lang.String groupId, @RequestBody ScimGroup scimGroup)
-
validate
protected void validate(java.lang.String id)
Validates the object by using the passed validator- Parameters:
object- the object to be validatedobjectName- the object namevalidator- validator which will validate the object
-
sanitize
protected static java.lang.String sanitize(java.lang.String input)
Method to sanitize the input string- Parameters:
input- the input string- Returns:
- String sanitized string
-
-