Class DefaultPatchHandler

java.lang.Object
org.apache.directory.scim.core.repository.DefaultPatchHandler
All Implemented Interfaces:
PatchHandler

@ApplicationScoped public class DefaultPatchHandler extends Object implements PatchHandler
The default implementation of a PatchHandler that applies PatchOperations by walking a map equivalent of ScimResource.
  • Field Details

  • Constructor Details

    • DefaultPatchHandler

      @Inject public DefaultPatchHandler(SchemaRegistry schemaRegistry)
    • DefaultPatchHandler

      protected DefaultPatchHandler()
  • Method Details

    • apply

      public <T extends ScimResource> T apply(T original, List<PatchOperation> patchOperations)
      Description copied from interface: PatchHandler
      Applies patch operations to a ScimResource.
      Specified by:
      apply in interface PatchHandler
      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
    • valuePathExpression

      public static ValuePathExpression valuePathExpression(PatchOperation operation)
    • attributeReference

      public static AttributeReference attributeReference(ValuePathExpression expression)