Package org.dspace.authority.orcid
Class Orcidv3SolrAuthorityImpl
java.lang.Object
org.dspace.authority.orcid.Orcidv3SolrAuthorityImpl
- All Implemented Interfaces:
SolrAuthorityInterface
This class contains all methods for retrieving "Person" objects calling the ORCID (version 3) endpoints.
Additionally, this can also create AuthorityValues based on these returned Person objects
- Author:
- Jonas Van Goolen (jonas at atmire dot com), Andrea Bollini (andrea.bollini at 4science.it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.orcid.jaxb.model.v3.release.record.PersonRetrieve a Person object based on a given orcid identifiervoidinit()Initialize the accessToken that is required for all subsequent calls to ORCIDvoidqueryAuthorities(String text, int max) Makes an instance of the AuthorityValue with the given information.Create an AuthorityValue from a Person retrieved using the given orcid identifier.List<org.orcid.jaxb.model.v3.release.record.Person>Retrieve a list of Person objects.List<org.orcid.jaxb.model.v3.release.record.Person>Retrieve a list of Person objects.voidsetAccessToken(String accessToken) voidsetClientId(String clientId) voidsetClientSecret(String clientSecret) voidsetOAUTHUrl(String oAUTHUrl) voidsetOrcidRestConnector(OrcidRestConnector orcidRestConnector)
-
Constructor Details
-
Orcidv3SolrAuthorityImpl
public Orcidv3SolrAuthorityImpl()
-
-
Method Details
-
setOAUTHUrl
-
setClientId
-
setClientSecret
-
getAccessToken
-
setAccessToken
-
init
public void init()Initialize the accessToken that is required for all subsequent calls to ORCID -
initializeAccessToken
public void initializeAccessToken() -
setOrcidRestConnector
-
queryAuthorities
Makes an instance of the AuthorityValue with the given information.- Specified by:
queryAuthoritiesin interfaceSolrAuthorityInterface- Parameters:
text- search string- Returns:
- List
-
queryAuthorityID
Create an AuthorityValue from a Person retrieved using the given orcid identifier.- Specified by:
queryAuthorityIDin interfaceSolrAuthorityInterface- Parameters:
id- orcid identifier- Returns:
- AuthorityValue
-
getBio
Retrieve a Person object based on a given orcid identifier- Parameters:
id- orcid identifier- Returns:
- Person
-
queryBio
public List<org.orcid.jaxb.model.v3.release.record.Person> queryBio(String text, int start, int rows) Retrieve a list of Person objects.- Parameters:
text- search stringstart- offset to userows- how many rows to return- Returns:
- List
-
queryBio
Retrieve a list of Person objects.- Parameters:
text- search stringmax- how many rows to return- Returns:
- List
-