Class OrganizationResource
- java.lang.Object
-
- io.jans.configapi.core.rest.BaseResource
-
- io.jans.configapi.rest.resource.auth.ConfigBaseResource
-
- io.jans.configapi.rest.resource.auth.OrganizationResource
-
@Path("/org") @Consumes("application/json") @Produces("application/json") public class OrganizationResource extends ConfigBaseResource
-
-
Constructor Summary
Constructors Constructor Description OrganizationResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.ResponsegetOrganization()Retrieve the current organization configuration.jakarta.ws.rs.core.ResponsepatchOrganization(@NotNull String pathString)Apply a JSON Patch to the stored organization configuration.-
Methods inherited from class io.jans.configapi.rest.resource.auth.ConfigBaseResource
getMaxCount
-
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, getUriInfo, throwBadRequestException, throwBadRequestException, throwBadRequestException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwMissingAttributeError, throwNotFoundException, throwNotFoundException
-
-
-
-
Method Detail
-
getOrganization
@GET public jakarta.ws.rs.core.Response getOrganization()
Retrieve the current organization configuration.- Returns:
- a Response containing the current
GluuOrganizationrepresentation
-
patchOrganization
@PATCH @Consumes("application/json-patch+json") public jakarta.ws.rs.core.Response patchOrganization(@NotNull @NotNull String pathString) throws com.github.fge.jsonpatch.JsonPatchException, IOExceptionApply a JSON Patch to the stored organization configuration. Applies the provided JSON Patch to the current organization configuration, persists the changes, and returns the updated organization in the response.- Parameters:
pathString- a JSON Patch document as a string- Returns:
- a Response containing the updated GluuOrganization
- Throws:
com.github.fge.jsonpatch.JsonPatchException- if the patch is invalid or cannot be applied to the organizationIOException- if an I/O error occurs while processing the patch
-
-