Class BaseScimClient<T extends ScimResource>
java.lang.Object
org.apache.directory.scim.client.rest.BaseScimClient<T>
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
ScimGroupClient
,ScimUserClient
public abstract class BaseScimClient<T extends ScimResource>
extends Object
implements AutoCloseable
-
Constructor Summary
ConstructorDescriptionBaseScimClient
(jakarta.ws.rs.client.Client client, String baseUrl, Class<T> scimResourceClass, jakarta.ws.rs.core.GenericType<ListResponse<T>> scimResourceListGenericType) BaseScimClient
(jakarta.ws.rs.client.Client client, String baseUrl, Class<T> scimResourceClass, jakarta.ws.rs.core.GenericType<ListResponse<T>> scimResourceListGenericType, RestCall invoke) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
create
(T resource, AttributeReferenceListWrapper attributes, AttributeReferenceListWrapper excludedAttributes) void
find
(SearchRequest searchRequest) getById
(String id, AttributeReferenceListWrapper attributes, AttributeReferenceListWrapper excludedAttributes) protected String
patch
(String id, PatchRequest patchRequest) patch
(String id, PatchRequest patchRequest, AttributeReferenceListWrapper attributes, AttributeReferenceListWrapper excludedAttributes) query
(AttributeReferenceListWrapper attributes, AttributeReferenceListWrapper excludedAttributes, Filter filter, AttributeReference sortBy, SortOrder sortOrder, Integer startIndex, Integer count) void
update
(String id, T resource, AttributeReferenceListWrapper attributes, AttributeReferenceListWrapper excludedAttributes)
-
Constructor Details
-
BaseScimClient
public BaseScimClient(jakarta.ws.rs.client.Client client, String baseUrl, Class<T> scimResourceClass, jakarta.ws.rs.core.GenericType<ListResponse<T>> scimResourceListGenericType) -
BaseScimClient
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getById
- Throws:
ScimException
-
getById
public Optional<T> getById(String id, AttributeReferenceListWrapper attributes, AttributeReferenceListWrapper excludedAttributes) throws ScimException - Throws:
ScimException
-
query
public ListResponse<T> query(AttributeReferenceListWrapper attributes, AttributeReferenceListWrapper excludedAttributes, Filter filter, AttributeReference sortBy, SortOrder sortOrder, Integer startIndex, Integer count) throws ScimException - Throws:
ScimException
-
create
- Throws:
ScimException
-
create
public T create(T resource, AttributeReferenceListWrapper attributes, AttributeReferenceListWrapper excludedAttributes) throws ScimException - Throws:
ScimException
-
find
- Throws:
ScimException
-
update
- Throws:
ScimException
-
update
public T update(String id, T resource, AttributeReferenceListWrapper attributes, AttributeReferenceListWrapper excludedAttributes) throws ScimException - Throws:
ScimException
-
patch
- Throws:
ScimException
-
patch
public T patch(String id, PatchRequest patchRequest, AttributeReferenceListWrapper attributes, AttributeReferenceListWrapper excludedAttributes) throws ScimException - Throws:
ScimException
-
delete
- Throws:
ScimException
-
getInvoke
-
setInvoke
-
getContentType
-