Class ScimRequestBuilder
java.lang.Object
de.captaingoldfish.scim.sdk.client.ScimRequestBuilder
- All Implemented Interfaces:
AutoCloseable
author Pascal Knueppel
created at: 07.12.2019 - 23:08
this class can be used to build any type of request for SCIM
created at: 07.12.2019 - 23:08
this class can be used to build any type of request for SCIM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbulk()builds an bulk request builderbuilds an bulk request buildervoidclose()closes the underlying apache http client.<T extends ResourceNode>
CreateBuilder<T>builds a create builder class based on the given type<T extends ResourceNode>
CreateBuilder<T>builds a create builder class based on the given type<T extends ResourceNode>
DeleteBuilder<T>builds a delete builder class based on the given type used to delete a singleton entry at the provider<T extends ResourceNode>
DeleteBuilder<T>builds a delete builder class based on the given type<T extends ResourceNode>
DeleteBuilder<T>builds a delete builder class based on the given type<T extends ResourceNode>
GetBuilder<T>builds a get builder that is used to access a singleton resource from the provider<T extends ResourceNode>
GetBuilder<T>builds a get builder class based on the given type<T extends ResourceNode>
GetBuilder<T>builds a get builder class based on the given typethe configuration for the client that should be usedprotected ScimHttpClienta convenience implementation that wraps the apache http clientthe service provider configuration from the SCIM provider application<T extends ResourceNode>
ListBuilder<T>builds an update builder class based on the given type<T extends ResourceNode>
ListBuilder<T>builds an update builder class based on the given typewill try to load the complete data of the meta-endpoints from the configured SCIM providerloadMetaConfiguration(MetaConfigRequestDetails metaConfigLoaderDetails) will try to load the complete data of the meta-endpoints from the configured SCIM providertries to load the service provider configuration from the SCIM provider, but it will not cause any aborts if loading of the configuration does fail<T extends ResourceNode>
PatchBuilder<T>builds a patch request builder used to patch a singleton entry at the provider<T extends ResourceNode>
PatchBuilder<T>builds a patch request builder<T extends ResourceNode>
PatchBuilder<T>builds a patch request buildervoidsetServiceProvider(ServiceProvider serviceProvider) the service provider configuration from the SCIM provider application<T extends ResourceNode>
UpdateBuilder<T>builds an update builder class used to update a singleton entry at the provider<T extends ResourceNode>
UpdateBuilder<T>builds an update builder class based on the given type<T extends ResourceNode>
UpdateBuilder<T>builds an update builder class based on the given type
-
Constructor Details
-
ScimRequestBuilder
-
-
Method Details
-
loadServiceProviderConfiguration
tries to load the service provider configuration from the SCIM provider, but it will not cause any aborts if loading of the configuration does fail -
create
builds a create builder class based on the given type- Parameters:
type- the type that should be createdendpoint- the endpoint path to the resource e.g. "/Users" or "/Groups"- Returns:
- a create-request builder for the given resource type
-
create
builds a create builder class based on the given type- Parameters:
fullyQualifiedUrl- if the builder should not build the url on the baseUrl but use another fully qualified urltype- the type that should be created- Returns:
- a create-request builder for the given resource type
-
get
public <T extends ResourceNode> GetBuilder<T> get(Class<T> type, String endpoint, String resourceId) builds a get builder class based on the given type- Parameters:
type- the type that should be createdendpoint- the endpoint path to the resource e.g. "/Users" or "/Groups"resourceId- the id of the resource that should be returned (may be null if the endpoint path already contains the id)- Returns:
- a get-request builder for the given resource type
-
get
builds a get builder that is used to access a singleton resource from the provider- Parameters:
type- the type that should be createdendpoint- the endpoint path to the resource e.g. "/Users" or "/Groups"- Returns:
- a get-request builder for the given resource type
-
get
builds a get builder class based on the given type- Parameters:
fullyQualifiedUrl- if the builder should not build the url on the baseUrl but use another fully qualified urltype- the type that should be created- Returns:
- a get-request builder for the given resource type
-
delete
public <T extends ResourceNode> DeleteBuilder<T> delete(Class<T> type, String endpoint, String resourceId) builds a delete builder class based on the given type- Parameters:
type- the type that should be createdendpoint- the endpoint path to the resource e.g. "/Users" or "/Groups"resourceId- the id of the resource that should be returned (may be null if the endpoint path already contains the id)- Returns:
- a delete-request builder for the given resource type
-
delete
builds a delete builder class based on the given type used to delete a singleton entry at the provider- Parameters:
type- the type that should be createdendpoint- the endpoint path to the resource e.g. "/Users" or "/Groups"- Returns:
- a delete-request builder for the given resource type
-
delete
builds a delete builder class based on the given type- Parameters:
fullyQualifiedUrl- if the builder should not build the url on the baseUrl but use another fully qualified urltype- the type that should be created- Returns:
- a delete-request builder for the given resource type
-
update
public <T extends ResourceNode> UpdateBuilder<T> update(Class<T> type, String endpoint, String resourceId) builds an update builder class based on the given type- Parameters:
type- the type that should be createdendpoint- the endpoint path to the resource e.g. "/Users" or "/Groups"resourceId- the id of the resource that should be returned (may be null if the endpoint path already contains the id)- Returns:
- a update-request builder for the given resource type
-
update
builds an update builder class used to update a singleton entry at the provider- Parameters:
type- the type that should be createdendpoint- the endpoint path to the resource e.g. "/Users" or "/Groups"- Returns:
- a update-request builder for the given resource type
-
update
builds an update builder class based on the given type- Parameters:
fullyQualifiedUrl- if the builder should not build the url on the baseUrl but use another fully qualified urltype- the type that should be created- Returns:
- a update-request builder for the given resource type
-
list
builds an update builder class based on the given type- Parameters:
type- the type that should be createdendpoint- the endpoint path to the resource e.g. "/Users" or "/Groups"- Returns:
- a update-request builder for the given resource type
-
list
builds an update builder class based on the given type- Parameters:
fullyQualifiedUrl- if the builder should not build the url on the baseUrl but use another fully qualified urltype- the type that should be created- Returns:
- a update-request builder for the given resource type
-
bulk
builds an bulk request builder- Returns:
- a bulk-request builder
-
bulk
builds an bulk request builder- Parameters:
fullyQualifiedUrl- if the builder should not build the url on the baseUrl but use another fully qualified url- Returns:
- a bulk-request builder
-
patch
public <T extends ResourceNode> PatchBuilder<T> patch(Class<T> type, String endpoint, String resourceId) builds a patch request builder- Parameters:
type- the type that should be createdendpoint- the endpoint path to the resource e.g. "/Users" or "/Groups"resourceId- the id of the resource that should be returned (may be null if the endpoint path already contains the id)- Returns:
- a patch-request builder
-
patch
builds a patch request builder used to patch a singleton entry at the provider- Parameters:
type- the type that should be createdendpoint- the endpoint path to the resource e.g. "/Users" or "/Groups"- Returns:
- a patch-request builder
-
patch
builds a patch request builder- Parameters:
fullyQualifiedUrl- if the builder should not build the url on the baseUrl but use another fully qualified urltype- the type that should be created- Returns:
- a patch-request builder
-
loadMetaConfiguration
will try to load the complete data of the meta-endpoints from the configured SCIM provider- Returns:
- the meta configuration details from the SCIM provider
-
loadMetaConfiguration
public MetaConfigLoaderBuilder loadMetaConfiguration(MetaConfigRequestDetails metaConfigLoaderDetails) will try to load the complete data of the meta-endpoints from the configured SCIM provider- Returns:
- the meta configuration details from the SCIM provider
-
close
public void close()closes the underlying apache http client. If the http client is closed this request builder is still usable. The next request will simply be executed with a new http client instance- Specified by:
closein interfaceAutoCloseable
-
getScimClientConfig
the configuration for the client that should be used -
getScimHttpClient
a convenience implementation that wraps the apache http client -
getServiceProvider
the service provider configuration from the SCIM provider application -
setServiceProvider
the service provider configuration from the SCIM provider application
-