Package be.personify.iam.scim.rest
Class SchemaController
- java.lang.Object
-
- be.personify.iam.scim.rest.Controller
-
- be.personify.iam.scim.rest.SchemaController
-
@RestController public class SchemaController extends Controller
Schema controller for the SCIM server implementation- Author:
- wouter
-
-
Constructor Summary
Constructors Constructor Description SchemaController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<?>delete(String resourceType, String id)DELETEs the entityorg.springframework.http.ResponseEntity<Map<String,Object>>get(String resourceType, String id, String attributes, String excludedAttributes, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)GETs the entityorg.springframework.http.ResponseEntity<Map<String,Object>>patch(String resourceType, String id, Map<String,Object> entity, String attributes, String excludedAttributes, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)PATCH a entityorg.springframework.http.ResponseEntity<Map<String,Object>>post(String resourceType, Map<String,Object> entity, String attributes, String excludedAttributes, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)POST of a entityorg.springframework.http.ResponseEntity<Map<String,Object>>put(String resourceType, String id, Map<String,Object> entity, String attributes, String excludedAttributes, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)PUT of a entityorg.springframework.http.ResponseEntity<Map<String,Object>>search(String resourceType, Integer startIndex, Integer count, String filter, String sortBy, String sortOrder, String attributes, String excludedAttributes, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Searches the entity-
Methods inherited from class be.personify.iam.scim.rest.Controller
createId, createMeta, createVersion, delete, extractSchemas, filterAttributes, get, getListFromString, invalidSchemaForResource, invalidSchemaForResource, patch, post, put, search, search, showError, showError
-
-
-
-
Method Detail
-
post
@PostMapping(path="/scim/v2/{resourceType}s", produces={"application/scim+json","application/json"}) public org.springframework.http.ResponseEntity<Map<String,Object>> post(@PathVariable String resourceType, @RequestBody Map<String,Object> entity, @RequestParam(required=false,name="attributes") String attributes, @RequestParam(required=false,name="excludedAttributes") String excludedAttributes, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)POST of a entity- Parameters:
resourceType- the resourcetype 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/{resourceType}s/{id}", produces={"application/scim+json","application/json"}) public org.springframework.http.ResponseEntity<Map<String,Object>> put(@PathVariable String resourceType, @PathVariable String id, @RequestBody Map<String,Object> entity, @RequestParam(required=false,name="attributes") String attributes, @RequestParam(required=false,name="excludedAttributes") String excludedAttributes, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)PUT of a entity- Parameters:
resourceType- the resourcetype 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/{resourceType}s/{id}", produces={"application/scim+json","application/json"}) public org.springframework.http.ResponseEntity<Map<String,Object>> patch(@PathVariable String resourceType, @PathVariable String id, @RequestBody Map<String,Object> entity, @RequestParam(required=false,name="attributes") String attributes, @RequestParam(required=false,name="excludedAttributes") String excludedAttributes, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)PATCH a entity- Parameters:
resourceType- the resourcetype 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/{resourceType}s/{id}", produces={"application/scim+json","application/json"}) public org.springframework.http.ResponseEntity<Map<String,Object>> get(@PathVariable String resourceType, @PathVariable String id, @RequestParam(required=false,name="attributes") String attributes, @RequestParam(required=false,name="excludedAttributes") String excludedAttributes, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)GETs the entity- Parameters:
resourceType- the resourceType 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/{resourceType}s", produces={"application/scim+json","application/json"}) public org.springframework.http.ResponseEntity<Map<String,Object>> search(@PathVariable String resourceType, @RequestParam(required=false,name="startIndex",defaultValue="1") Integer startIndex, @RequestParam(required=false,name="count",defaultValue="200") 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, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Searches the entity- Parameters:
resourceType- the resource typestartIndex- 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/{resourceType}s/{id}") public org.springframework.http.ResponseEntity<?> delete(@PathVariable String resourceType, @PathVariable String id)DELETEs the entity- Parameters:
resourceType- the resourcetype of the entity to be deletedid- the id of the entity to be deleted- Returns:
- the entity deleted
-
-