Class PatchOperation<M>

    • Constructor Detail

      • PatchOperation

        public PatchOperation()
    • Method Detail

      • perform

        public abstract M perform​(Context context,
                                  M resource,
                                  Operation operation)
                           throws SQLException
        Updates the rest model by applying the patch operation.
        Parameters:
        context - context of patch operation
        resource - the dso.
        operation - the patch operation.
        Returns:
        the patched dso
        Throws:
        DSpaceBadRequestException
        SQLException
      • checkOperationValue

        public void checkOperationValue​(Object value)
        Throws PatchBadRequestException for missing operation value.
        Parameters:
        value - the value to test
      • supports

        public abstract boolean supports​(Object objectToMatch,
                                         Operation operation)
        Determines whether or not this Patch Operation can do this patch (Object of operation and path gets checked)
        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