Class ResearcherProfileAddOrcidOperation


  • @Component
    public class ResearcherProfileAddOrcidOperation
    extends PatchOperation<ResearcherProfile>
    Implementation of the PATCH operation used to establish the ORCID connection. Example:
    curl -X PATCH http://${dspace.server.url}/api/eperson/profiles/<:id-eperson> -H " Content-Type: application/json" -d '[{ "op": "add", "path": "/orcid", value: "code" }]'

    The value to be provided is the authorization code for an ORCID iD and 3-legged access token.
    • Constructor Detail

      • ResearcherProfileAddOrcidOperation

        public ResearcherProfileAddOrcidOperation()
    • Method Detail

      • 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
      • setOrcidClient

        public void setOrcidClient​(OrcidClient orcidClient)