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
public class Controller extends Object
Main controller class for the SCIM operations- Author:
- vanderw
-
-
Constructor Summary
Constructors Constructor Description Controller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringcreateId(Map<String,Object> object)protected voidcreateMeta(Date date, String id, Map<String,Object> user, String resourceType, String location)protected StringcreateVersion(Date date)protected org.springframework.http.ResponseEntity<?>delete(String id, Schema schema)protected List<String>extractSchemas(Map<String,Object> user)protected Map<String,Object>filterAttributes(Schema schema, Map<String,Object> entity, List<String> includeList, String excludedAttributes)protected org.springframework.http.ResponseEntity<Map<String,Object>>get(String id, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Schema schema, String attributes, String excludedAttributes)protected List<String>getListFromString(String attributes)protected org.springframework.http.ResponseEntity<Map<String,Object>>invalidSchemaForResource(String resourceType, String requiredSchema)protected org.springframework.http.ResponseEntity<Map<String,Object>>invalidSchemaForResource(List<String> schemas, String resourceType)protected org.springframework.http.ResponseEntity<Map<String,Object>>patch(String id, Map<String,Object> patchRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Schema schema, String attributes, String excludedAttributes)protected org.springframework.http.ResponseEntity<Map<String,Object>>post(Map<String,Object> entity, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Schema schema, String attributes, String excludedAttributes)protected org.springframework.http.ResponseEntity<Map<String,Object>>put(String id, Map<String,Object> entity, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Schema schema, String attributes, String excludedAttributes)protected org.springframework.http.ResponseEntity<Map<String,Object>>search(Integer startIndex, Integer count, Schema schema, String filter)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 entitiesprotected org.springframework.http.ResponseEntity<Map<String,Object>>showError(int status, String detail)protected org.springframework.http.ResponseEntity<Map<String,Object>>showError(int status, String detail, ScimErrorType scimType)
-
-
-
Method Detail
-
post
protected org.springframework.http.ResponseEntity<Map<String,Object>> post(Map<String,Object> entity, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Schema schema, String attributes, String excludedAttributes)
-
put
protected org.springframework.http.ResponseEntity<Map<String,Object>> put(String id, Map<String,Object> entity, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Schema schema, String attributes, String excludedAttributes)
-
patch
protected org.springframework.http.ResponseEntity<Map<String,Object>> patch(String id, Map<String,Object> patchRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Schema schema, String attributes, String excludedAttributes)
-
get
protected org.springframework.http.ResponseEntity<Map<String,Object>> get(String id, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Schema schema, String attributes, String excludedAttributes)
-
search
protected org.springframework.http.ResponseEntity<Map<String,Object>> search(Integer startIndex, Integer count, Schema schema, String filter)
-
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
-
createMeta
protected void createMeta(Date date, String id, Map<String,Object> user, String resourceType, String location)
-
showError
protected org.springframework.http.ResponseEntity<Map<String,Object>> showError(int status, String detail)
-
showError
protected org.springframework.http.ResponseEntity<Map<String,Object>> showError(int status, String detail, ScimErrorType scimType)
-
filterAttributes
protected Map<String,Object> filterAttributes(Schema schema, Map<String,Object> entity, List<String> includeList, String excludedAttributes)
-
invalidSchemaForResource
protected org.springframework.http.ResponseEntity<Map<String,Object>> invalidSchemaForResource(List<String> schemas, String resourceType)
-
-