Interface OperationValidator


public interface OperationValidator
Callback hook for validating an in-progress write operation against the full set of instances it affects, once that set is fully known (e.g. after an Avalanche Effect propagation has resolved every instance touched by a create/update/delete).
Author:
Luca Frosini (ISTI - CNR)
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isValidOperation(Map<UUID,org.gcube.com.fasterxml.jackson.databind.JsonNode> affectedInstances)
    Returns whether the operation is valid given the set of affected instances.
  • Method Details

    • isValidOperation

      boolean isValidOperation(Map<UUID,org.gcube.com.fasterxml.jackson.databind.JsonNode> affectedInstances) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      Returns whether the operation is valid given the set of affected instances.
      Parameters:
      affectedInstances - map of affected instances during the operation
      Returns:
      true if the operation is valid, false otherwise
      Throws:
      org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException - if validation fails or runs into database error