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 TypeMethodDescriptionbooleanisValidOperation(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.ResourceRegistryExceptionReturns whether the operation is valid given the set of affected instances.- Parameters:
affectedInstances- map of affected instances during the operation- Returns:
trueif the operation is valid,falseotherwise- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- if validation fails or runs into database error
-