Package be.personify.iam.scim.rest
Class SchemaController
java.lang.Object
be.personify.iam.scim.rest.Controller
be.personify.iam.scim.rest.SchemaController
Schema controller for the SCIM server implementation
- Author:
- wouter
-
Field Summary
Fields inherited from class be.personify.iam.scim.rest.Controller
env, schemaReader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>DELETEs the entityget(String endpoint, String id, String attributes, String excludedAttributes, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) GETs the entitypatch(String endpoint, String id, Map<String, Object> entity, String attributes, String excludedAttributes, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) PATCH a entitypost(String endpoint, Map<String, Object> entity, String attributes, String excludedAttributes, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) POST of a entityput(String endpoint, String id, Map<String, Object> entity, String attributes, String excludedAttributes, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) PUT of a entitysearch(String endpoint, Integer startIndex, Integer count, String filter, String sortBy, String sortOrder, String attributes, String excludedAttributes, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Searches the entityMethods inherited from class be.personify.iam.scim.rest.Controller
composeError, createId, createMeta, createVersion, delete, filterAttributes, get, getListFromString, invalidSchemaForEndpoint, invalidSchemaForResource, missingRequiredSchemaForResource, patch, patch, post, put, search, search, showError, showError
-
Constructor Details
-
SchemaController
public SchemaController()
-
-
Method Details
-
post
@PostMapping(path="/scim/v2/{endpoint}", produces={"application/scim+json","application/json"}) public org.springframework.http.ResponseEntity<Map<String,Object>> post(@PathVariable String endpoint, @RequestBody Map<String, Object> entity, @RequestParam(required=false,name="attributes") String attributes, @RequestParam(required=false,name="excludedAttributes") String excludedAttributes, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) POST of a entity- Parameters:
endpoint- the endpoint for which to POSTentity- the entity to postattributes- the attributes to be included from the responseexcludedAttributes- the attributes to be excluded from the responserequest- the HttpServletRequestresponse- the HttpServletResponse- Returns:
- the map as a ResponseEntity
-
put
@PutMapping(path="/scim/v2/{endpoint}/{id}", produces={"application/scim+json","application/json"}) public org.springframework.http.ResponseEntity<Map<String,Object>> put(@PathVariable String endpoint, @PathVariable String id, @RequestBody Map<String, Object> entity, @RequestParam(required=false,name="attributes") String attributes, @RequestParam(required=false,name="excludedAttributes") String excludedAttributes, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) PUT of a entity- Parameters:
endpoint- the endpoint of the entity to PUTid- the id of the entity of the given resourcetypeentity- the entity itself as a mapattributes- the attributes to be included from the responseexcludedAttributes- the attributes to be excluded from the responserequest- the HttpServletRequestresponse- the HttpServletResponse- Returns:
- the map as a ResponseEntity
-
patch
@PatchMapping(path="/scim/v2/{endpoint}/{id}", produces={"application/scim+json","application/json"}) public org.springframework.http.ResponseEntity<Map<String,Object>> patch(@PathVariable String endpoint, @PathVariable String id, @RequestBody Map<String, Object> entity, @RequestParam(required=false,name="attributes") String attributes, @RequestParam(required=false,name="excludedAttributes") String excludedAttributes, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) PATCH a entity- Parameters:
endpoint- the endpoint of the entity to PATCHid- the id of the entityentity- the entityattributes- the attributes to be included from the responseexcludedAttributes- the attributes to be excluded from the responserequest- the HttpServletRequestresponse- the HttpServletResponse- Returns:
- the map as a ResponseEntity
-
get
@GetMapping(path="/scim/v2/{endpoint}/{id}", produces={"application/scim+json","application/json"}) public org.springframework.http.ResponseEntity<Map<String,Object>> get(@PathVariable String endpoint, @PathVariable String id, @RequestParam(required=false,name="attributes") String attributes, @RequestParam(required=false,name="excludedAttributes") String excludedAttributes, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) GETs the entity- Parameters:
endpoint- the endpoint of the entityid- the id of the entityattributes- the attributes to be included from the responseexcludedAttributes- the attributes to be excluded from the responserequest- the HttpServletRequestresponse- the HttpServletResponse- Returns:
- the map containing the entity
-
search
@GetMapping(path="/scim/v2/{endpoint}", produces={"application/scim+json","application/json"}) public org.springframework.http.ResponseEntity<Map<String,Object>> search(@PathVariable String endpoint, @RequestParam(required=false,name="startIndex",defaultValue="1") Integer startIndex, @RequestParam(required=false,name="count",defaultValue="${scim.searchresult.defaultCount}") Integer count, @RequestParam(required=false,name="filter") String filter, @RequestParam(required=false,name="sortBy") String sortBy, @RequestParam(required=false,name="sortOrder") String sortOrder, @RequestParam(required=false,name="attributes") String attributes, @RequestParam(required=false,name="excludedAttributes") String excludedAttributes, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Searches the entity- Parameters:
endpoint- the endpointstartIndex- the index to start fromcount- the number of records to returnfilter- the filter to applysortBy- the sortby attributesortOrder- the sortorderattributes- the attributes to be included from the responseexcludedAttributes- the attributes to be excluded from the responserequest- the HttpServletRequestresponse- the HttpServletResponse- Returns:
- the response entity
-
delete
@DeleteMapping(path="/scim/v2/{endpoint}/{id}") public org.springframework.http.ResponseEntity<?> delete(@PathVariable String endpoint, @PathVariable String id) DELETEs the entity- Parameters:
endpoint- the endpoint of the entity to be deletedid- the id of the entity to be deleted- Returns:
- the entity deleted
-