Class ResearcherProfileReplaceOrcidSyncPreferencesOperation

java.lang.Object
org.dspace.app.rest.repository.patch.operation.PatchOperation<ResearcherProfile>
org.dspace.app.rest.repository.patch.operation.ResearcherProfileReplaceOrcidSyncPreferencesOperation

@Component public class ResearcherProfileReplaceOrcidSyncPreferencesOperation extends PatchOperation<ResearcherProfile>
Implementation for ResearcherProfile ORCID synchronization preferences patches. Example: curl -X PATCH http://${dspace.server.url}/api/eperson/profiles/<:id-eperson> -H " Content-Type: application/json" -d '[{ "op": "replace", "path": "/orcid/publications", "value": "ALL" }]'
  • Constructor Details

    • ResearcherProfileReplaceOrcidSyncPreferencesOperation

      public ResearcherProfileReplaceOrcidSyncPreferencesOperation()
  • Method Details

    • perform

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