Class BitstreamMetadataValuePathUtils

java.lang.Object
org.dspace.app.rest.utils.BitstreamMetadataValuePathUtils

public class BitstreamMetadataValuePathUtils extends Object
Utils class offering methods to validate patch operations for bitstream metadata in the submission
Author:
Mykhaylo Boychuk (mykhaylo.boychuk at 4science.it)
  • Method Details

    • validate

      public void validate(String stepId, String absolutePath) throws DCInputsReaderException
      Method to verify that the path included in the patch operation is supported by the submission configuration of the upload section
      Parameters:
      stepId - the name of the upload configuration
      absolutePath - the path in the json patch operation
      Throws:
      DCInputsReaderException - if an error occurs reading the submission configuration
      UnprocessableEntityException - if the path is invalid