Class NotifyServiceLowerIpReplaceOperation

java.lang.Object
org.dspace.app.rest.repository.patch.operation.PatchOperation<NotifyServiceEntity>
org.dspace.app.rest.repository.patch.operation.ldn.NotifyServiceLowerIpReplaceOperation

@Component public class NotifyServiceLowerIpReplaceOperation extends PatchOperation<NotifyServiceEntity>
Implementation for NotifyService lowerIp Replace patches. Example: curl -X PATCH http://${dspace.server.url}/api/ldn/ldnservices/<:id-notifyService> -H " Content-Type: application/json" -d ' [{ "op": "replace", "path": "/lowerIp", "value": "lowerIp value" }]'
  • Constructor Details

    • NotifyServiceLowerIpReplaceOperation

      public NotifyServiceLowerIpReplaceOperation()
  • Method Details

    • perform

      public NotifyServiceEntity perform(Context context, NotifyServiceEntity notifyServiceEntity, Operation operation) throws SQLException
      Description copied from class: PatchOperation
      Updates the rest model by applying the patch operation.
      Specified by:
      perform in class PatchOperation<NotifyServiceEntity>
      Parameters:
      context - context of patch operation
      notifyServiceEntity - the dso.
      operation - the patch operation.
      Returns:
      the patched dso
      Throws:
      SQLException
    • supports

      public boolean supports(Object objectToMatch, Operation operation)
      Description copied from class: PatchOperation
      Determines whether or not this Patch Operation can do this patch (Object of operation and path gets checked)
      Specified by:
      supports in class PatchOperation<NotifyServiceEntity>
      Parameters:
      objectToMatch - Object whose class must be instance of type object for which this PatchOperation was created
      operation - Operation of the patch, should match this type of Patch Operation
      Returns:
      True if this PatchOperation class can do the patch for this given dso type and Path