Class ScimConfigResource
java.lang.Object
io.jans.configapi.core.rest.BaseResource
io.jans.configapi.plugin.scim.rest.ScimConfigResource
@Path("/scim-config")
@Produces("application/json")
@Consumes("application/json")
public class ScimConfigResource
extends io.jans.configapi.core.rest.BaseResource
-
Field Summary
Fields inherited from class io.jans.configapi.core.rest.BaseResource
DEFAULT_SEARCH_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseRetrieve the current SCIM application configuration.jakarta.ws.rs.core.ResponsepatchAppConfigurationProperty(@NotNull String requestString) Apply a JSON Patch to the SCIM App configuration and persist the change.Methods inherited from class io.jans.configapi.core.rest.BaseResource
checkNotEmpty, checkNotEmpty, checkNotNull, checkNotNull, checkNotNull, checkResourceNotNull, createSearchRequest, findRootError, getBadRequestException, getBadRequestException, getBadRequestException, getHttpHeaders, getHttpRequest, getInternalServerException, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, getNotFoundError, getRegexPattern, getUriInfo, throwBadRequestException, throwBadRequestException, throwBadRequestException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwMissingAttributeError, throwNotFoundException, throwNotFoundException
-
Constructor Details
-
ScimConfigResource
public ScimConfigResource()
-
-
Method Details
-
getAppConfiguration
@GET public jakarta.ws.rs.core.Response getAppConfiguration()Retrieve the current SCIM application configuration.- Returns:
- a Response with the current AppConfiguration serialized as JSON (HTTP 200 on success)
-
patchAppConfigurationProperty
@PATCH @Consumes("application/json-patch+json") public jakarta.ws.rs.core.Response patchAppConfigurationProperty(@NotNull @NotNull String requestString) throws IOException, com.github.fge.jsonpatch.JsonPatchException Apply a JSON Patch to the SCIM App configuration and persist the change.- Parameters:
requestString- JSON Patch document (array of patch operations) as a string.- Returns:
- the updated AppConfiguration after the patch is applied.
- Throws:
IOException- if reading or writing the stored configuration fails.com.github.fge.jsonpatch.JsonPatchException- if the provided patch document cannot be applied.
-