Class QAEventStatusReplaceOperation

java.lang.Object
org.dspace.app.rest.repository.patch.operation.PatchOperation<QAEvent>
org.dspace.app.rest.repository.patch.operation.QAEventStatusReplaceOperation

@Component public class QAEventStatusReplaceOperation extends PatchOperation<QAEvent>
Replace operation related to the QAEvent status.
Author:
Andrea Bollini (andrea.bollini at 4science.it)
  • Constructor Details

    • QAEventStatusReplaceOperation

      public QAEventStatusReplaceOperation()
  • Method Details

    • perform

      public QAEvent perform(Context context, QAEvent qaevent, Operation operation) throws SQLException
      Description copied from class: PatchOperation
      Updates the rest model by applying the patch operation.
      Specified by:
      perform in class PatchOperation<QAEvent>
      Parameters:
      context - context of patch operation
      qaevent - 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<QAEvent>
      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