Class OrganizationResource


  • @Path("/org")
    @Consumes("application/json")
    @Produces("application/json")
    public class OrganizationResource
    extends ConfigBaseResource
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      jakarta.ws.rs.core.Response getOrganization()
      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.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
    • Constructor Detail

      • OrganizationResource

        public OrganizationResource()
    • Method Detail

      • 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