Package be.personify.iam.scim.rest
Class Controller
java.lang.Object
be.personify.iam.scim.rest.Controller
- Direct Known Subclasses:
BulkController,DiscoveryController,MeController,SchemaController,TokenController
Main controller class for the SCIM operations
- Author:
- vanderw
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.core.env.Environmentprotected SchemaReader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomposeError(int status, String detail, ScimErrorType scimType) protected Stringprotected voidprotected StringcreateVersion(Date date) protected org.springframework.http.ResponseEntity<?>filterAttributes(Schema schema, Map<String, Object> entity, List<String> includeList, String excludedAttributes) get(String id, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Schema schema, String attributes, String excludedAttributes) getListFromString(String attributes) invalidSchemaForEndpoint(List<String> schemas, String resourceType) invalidSchemaForResource(String resourceType, String requiredSchema) missingRequiredSchemaForResource(SchemaResourceType resourceType, String requiredSchema) patch(String id, Map<String, Object> patchRequest, Schema mainSchema, String location, Map<String, Object> existingEntity) patch(String id, Map<String, Object> patchRequest, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, SchemaResourceType resourceType, String attributes, String excludedAttributes) post(Map<String, Object> entity, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, SchemaResourceType resourceType, String attributes, String excludedAttributes) put(String id, Map<String, Object> entity, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, SchemaResourceType resourceType, String attributes, String excludedAttributes) search(Integer startIndex, Integer count, Schema schema, String filter, String sortBy, String sortOrder, String attributes, String excludedAttributes) Search entitiesshowError(int status, String detail, ScimErrorType scimType)
-
Field Details
-
schemaReader
-
env
@Autowired protected org.springframework.core.env.Environment env
-
-
Constructor Details
-
Controller
public Controller()
-
-
Method Details
-
post
-
put
-
patch
-
patch
protected org.springframework.http.ResponseEntity<Map<String,Object>> patch(String id, Map<String, Object> patchRequest, Schema mainSchema, String location, Map<String, throws ConstraintViolationExceptionObject> existingEntity) - Throws:
ConstraintViolationException
-
get
-
search
-
search
protected org.springframework.http.ResponseEntity<Map<String,Object>> search(Integer startIndex, Integer count, Schema schema, String filter, String sortBy, String sortOrder, String attributes, String excludedAttributes) Search entities- Parameters:
startIndex- the start indexcount- the countschema- the schemafilter- the filtersortBy- sortbysortOrder- the orderattributes- the attributesexcludedAttributes- the excluded attributes- Returns:
- a response entity
-
delete
-
createMeta
-
createVersion
-
showError
-
showError
protected org.springframework.http.ResponseEntity<Map<String,Object>> showError(int status, String detail, ScimErrorType scimType) -
composeError
-
filterAttributes
-
getListFromString
-
createId
-
invalidSchemaForEndpoint
-
invalidSchemaForResource
-
missingRequiredSchemaForResource
protected org.springframework.http.ResponseEntity<Map<String,Object>> missingRequiredSchemaForResource(SchemaResourceType resourceType, String requiredSchema)
-