Class OrcidTokenServiceImpl

    • Constructor Detail

      • OrcidTokenServiceImpl

        public OrcidTokenServiceImpl()
    • Method Detail

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