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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.ws.rs.core.Response
    Retrieve the current organization configuration.
    jakarta.ws.rs.core.Response
    patchOrganization(@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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OrganizationResource

      public OrganizationResource()
  • Method Details

    • getOrganization

      @GET public jakarta.ws.rs.core.Response getOrganization()
      Retrieve the current organization configuration.
      Returns:
      a Response containing the current GluuOrganization representation
    • patchOrganization

      @PATCH @Consumes("application/json-patch+json") public jakarta.ws.rs.core.Response patchOrganization(@NotNull @NotNull String pathString) throws com.github.fge.jsonpatch.JsonPatchException, IOException
      Apply 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 organization
      IOException - if an I/O error occurs while processing the patch