Class OrcidTokenServiceImpl

java.lang.Object
org.dspace.orcid.service.impl.OrcidTokenServiceImpl
All Implemented Interfaces:
OrcidTokenService

public class OrcidTokenServiceImpl extends Object implements OrcidTokenService
Implementation of OrcidTokenService.
Author:
Luca Giamminonni (luca.giamminonni at 4science.it)
  • Constructor Details

    • OrcidTokenServiceImpl

      public OrcidTokenServiceImpl()
  • Method Details

    • create

      public OrcidToken create(Context context, EPerson ePerson, String accessToken)
      Description copied from interface: OrcidTokenService
      Creates a new OrcidToken entity for the given ePerson and accessToken.
      Specified by:
      create in interface OrcidTokenService
      Parameters:
      context - the DSpace context
      ePerson - the EPerson
      accessToken - the access token
      Returns:
      the created entity instance
    • create

      public OrcidToken create(Context context, EPerson ePerson, Item profileItem, String accessToken)
      Description copied from interface: OrcidTokenService
      Creates a new OrcidToken entity for the given ePerson and accessToken.
      Specified by:
      create in interface OrcidTokenService
      Parameters:
      context - the DSpace context
      ePerson - the EPerson
      profileItem - the profile item
      accessToken - the access token
      Returns:
      the created entity instance
    • findByEPerson

      public OrcidToken findByEPerson(Context context, EPerson ePerson)
      Description copied from interface: OrcidTokenService
      Find an OrcidToken by ePerson.
      Specified by:
      findByEPerson in interface OrcidTokenService
      Parameters:
      context - the DSpace context
      ePerson - the ePerson to search for
      Returns:
      the Orcid token, if any
    • findByProfileItem

      public OrcidToken findByProfileItem(Context context, Item profileItem)
      Description copied from interface: OrcidTokenService
      Find an OrcidToken by profileItem.
      Specified by:
      findByProfileItem in interface OrcidTokenService
      Parameters:
      context - the DSpace context
      profileItem - the profile item to search for
      Returns:
      the Orcid token, if any
    • delete

      public void delete(Context context, OrcidToken orcidToken)
      Description copied from interface: OrcidTokenService
      Delete the given ORCID token entity.
      Specified by:
      delete in interface OrcidTokenService
      Parameters:
      context - the DSpace context
      orcidToken - the ORCID token entity to delete
    • deleteAll

      public void deleteAll(Context context)
      Description copied from interface: OrcidTokenService
      Delete all the ORCID token entities.
      Specified by:
      deleteAll in interface OrcidTokenService
      Parameters:
      context - the DSpace context
    • deleteByEPerson

      public void deleteByEPerson(Context context, EPerson ePerson)
      Description copied from interface: OrcidTokenService
      Deletes the ORCID token entity related to the given EPerson.
      Specified by:
      deleteByEPerson in interface OrcidTokenService
      Parameters:
      context - the DSpace context
      ePerson - the ePerson for the deletion
    • deleteByProfileItem

      public void deleteByProfileItem(Context context, Item profileItem)
      Description copied from interface: OrcidTokenService
      Deletes the ORCID token entity related to the given profile item.
      Specified by:
      deleteByProfileItem in interface OrcidTokenService
      Parameters:
      context - the DSpace context
      profileItem - the item for the deletion