Package org.dspace.orcid.service
Interface OrcidTokenService
- All Known Implementing Classes:
OrcidTokenServiceImpl
public interface OrcidTokenService
Service that handle
OrcidToken entities.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new OrcidToken entity for the given ePerson and accessToken.Creates a new OrcidToken entity for the given ePerson and accessToken.voiddelete(Context context, OrcidToken orcidToken) Delete the given ORCID token entity.voidDelete all the ORCID token entities.voiddeleteByEPerson(Context context, EPerson ePerson) Deletes the ORCID token entity related to the given EPerson.voiddeleteByProfileItem(Context context, Item profileItem) Deletes the ORCID token entity related to the given profile item.findByEPerson(Context context, EPerson ePerson) Find an OrcidToken by ePerson.findByProfileItem(Context context, Item profileItem) Find an OrcidToken by profileItem.
-
Method Details
-
create
Creates a new OrcidToken entity for the given ePerson and accessToken.- Parameters:
context- the DSpace contextePerson- the EPersonaccessToken- the access token- Returns:
- the created entity instance
-
create
Creates a new OrcidToken entity for the given ePerson and accessToken.- Parameters:
context- the DSpace contextePerson- the EPersonprofileItem- the profile itemaccessToken- the access token- Returns:
- the created entity instance
-
findByEPerson
Find an OrcidToken by ePerson.- Parameters:
context- the DSpace contextePerson- the ePerson to search for- Returns:
- the Orcid token, if any
-
findByProfileItem
Find an OrcidToken by profileItem.- Parameters:
context- the DSpace contextprofileItem- the profile item to search for- Returns:
- the Orcid token, if any
-
delete
Delete the given ORCID token entity.- Parameters:
context- the DSpace contextorcidToken- the ORCID token entity to delete
-
deleteAll
Delete all the ORCID token entities.- Parameters:
context- the DSpace context
-
deleteByEPerson
Deletes the ORCID token entity related to the given EPerson.- Parameters:
context- the DSpace contextePerson- the ePerson for the deletion
-
deleteByProfileItem
Deletes the ORCID token entity related to the given profile item.- Parameters:
context- the DSpace contextprofileItem- the item for the deletion
-