Class ServiceProviderHandler
- java.lang.Object
-
- de.captaingoldfish.scim.sdk.server.endpoints.ResourceHandler<ServiceProvider>
-
- de.captaingoldfish.scim.sdk.server.endpoints.handler.ServiceProviderHandler
-
public class ServiceProviderHandler extends ResourceHandler<ServiceProvider>
author Pascal Knueppel
created at: 18.10.2019 - 09:38
the service provider configuration endpoint implementation
-
-
Constructor Summary
Constructors Constructor Description ServiceProviderHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceProvidercreateResource(ServiceProvider resource, Authorization authorization)creating of service provider configurations not supportedvoiddeleteResource(String id, Authorization authorization)deleting of service provider configurations not supportedServiceProvidergetResource(String id, Authorization authorization)gets the one and only service provider configuration for this endpoint definitionPartialListResponselistResources(long startIndex, int count, FilterNode filter, SchemaAttribute sortBy, SortOrder sortOrder, List<SchemaAttribute> attributes, List<SchemaAttribute> excludedAttributes, Authorization authorization)listing of service provider configurations not supportedServiceProviderupdateResource(ServiceProvider resourceToUpdate, Authorization authorization)updating of service provider configurations not supported
-
-
-
Method Detail
-
createResource
public ServiceProvider createResource(ServiceProvider resource, Authorization authorization)
creating of service provider configurations not supported- Specified by:
createResourcein classResourceHandler<ServiceProvider>- Parameters:
resource- the resource to storeauthorization- should return the roles of an user and may contain arbitrary data needed in the handler implementation- Returns:
- the stored resource with additional meta information as id, created, lastModified timestamps etc.
-
getResource
public ServiceProvider getResource(String id, Authorization authorization)
gets the one and only service provider configuration for this endpoint definition- Specified by:
getResourcein classResourceHandler<ServiceProvider>- Parameters:
id- the id is obsolete here should be nullauthorization-- Returns:
- the one and only service provider configuration
-
listResources
public PartialListResponse listResources(long startIndex, int count, FilterNode filter, SchemaAttribute sortBy, SortOrder sortOrder, List<SchemaAttribute> attributes, List<SchemaAttribute> excludedAttributes, Authorization authorization)
listing of service provider configurations not supported- Specified by:
listResourcesin classResourceHandler<ServiceProvider>- Parameters:
startIndex- the start index that has a minimum value of 1. So the given startIndex here will never be lower than 1count- the number of entries that should be returned to the client. The minimum value of this value is 0.filter- the parsed filter expression if the client has given a filtersortBy- the attribute value that should be used for sortingsortOrder- the sort orderattributes- the attributes that should be returned to the client. If the client send this parameter the evaluation of these parameters might help to improve database performance by omitting unnecessary table joinsexcludedAttributes- the attributes that should NOT be returned to the client. If the client send this parameter the evaluation of these parameters might help to improve database performance by omitting unnecessary table joinsauthorization- should return the roles of an user and may contain arbitrary data needed in the handler implementation- Returns:
- a list of several resources and a total results value. You may choose to leave the totalResults value blank but this might lead to erroneous results on the client side
-
updateResource
public ServiceProvider updateResource(ServiceProvider resourceToUpdate, Authorization authorization)
updating of service provider configurations not supported- Specified by:
updateResourcein classResourceHandler<ServiceProvider>- Parameters:
resourceToUpdate- the resource that should override an existing oneauthorization- should return the roles of an user and may contain arbitrary data needed in the handler implementation- Returns:
- the updated resource with the values changed and a new lastModified value
-
deleteResource
public void deleteResource(String id, Authorization authorization)
deleting of service provider configurations not supported- Specified by:
deleteResourcein classResourceHandler<ServiceProvider>- Parameters:
id- the id of the resource to deleteauthorization- should return the roles of an user and may contain arbitrary data needed in the handler implementation
-
-