Class ScimGroupsController

java.lang.Object
de.hybris.platform.scimwebservices.v2.controllers.ScimGroupsController

@RestController @RequestMapping("/Groups") public class ScimGroupsController extends Object
  • Constructor Details

    • ScimGroupsController

      public ScimGroupsController()
  • Method Details

    • 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 String groupId, @RequestBody ScimGroup scimGroup)
    • getGroup

      @GetMapping(value="/{groupId}", produces="application/json") public ScimGroup getGroup(@PathVariable 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 String groupId)
    • patchGroup

      @ResponseStatus(OK) @RequestMapping(value="/{groupId}", method=PATCH, produces="application/json", consumes="application/json") public ScimGroup patchGroup(@PathVariable String groupId, @RequestBody ScimGroup scimGroup)
    • validate

      protected void validate(String id)
      Validates the object by using the passed validator
      Parameters:
      object - the object to be validated
      objectName - the object name
      validator - validator which will validate the object
    • sanitize

      protected static String sanitize(String input)
      Method to sanitize the input string
      Parameters:
      input - the input string
      Returns:
      String sanitized string