Interface PatchHandler

All Known Implementing Classes:
DefaultPatchHandler

public interface PatchHandler
A PatchHandler applies PatchOperations to a ScimResource. PatchOperations are a payload in a PATCH REST request.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends ScimResource>
    T
    apply(T original, List<PatchOperation> patchOperations)
    Applies patch operations to a ScimResource.
  • Method Details

    • apply

      <T extends ScimResource> T apply(T original, List<PatchOperation> patchOperations)
      Applies patch operations to a ScimResource.
      Type Parameters:
      T - The type of ScimResource.
      Parameters:
      original - The source ScimResource to apply patches to.
      patchOperations - The list of patch operations to apply.
      Returns:
      An updated ScimResource with all patches applied
      Throws:
      UnsupportedFilterException - if the patch operations are invalid.
      MutabilityException - if an attribute is not allowed to be updated.