Package org.dspace.orcid.service
Interface OrcidTokenService
-
- All Known Implementing Classes:
OrcidTokenServiceImpl
public interface OrcidTokenServiceService that handleOrcidTokenentities.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OrcidTokencreate(Context context, EPerson ePerson, String accessToken)Creates a new OrcidToken entity for the given ePerson and accessToken.OrcidTokencreate(Context context, EPerson ePerson, Item profileItem, String accessToken)Creates a new OrcidToken entity for the given ePerson and accessToken.voiddelete(Context context, OrcidToken orcidToken)Delete the given ORCID token entity.voiddeleteAll(Context context)Delete 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.OrcidTokenfindByEPerson(Context context, EPerson ePerson)Find an OrcidToken by ePerson.OrcidTokenfindByProfileItem(Context context, Item profileItem)Find an OrcidToken by profileItem.
-
-
-
Method Detail
-
create
OrcidToken create(Context context, EPerson ePerson, String accessToken)
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
OrcidToken create(Context context, EPerson ePerson, Item profileItem, String accessToken)
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
OrcidToken findByEPerson(Context context, EPerson ePerson)
Find an OrcidToken by ePerson.- Parameters:
context- the DSpace contextePerson- the ePerson to search for- Returns:
- the Orcid token, if any
-
findByProfileItem
OrcidToken findByProfileItem(Context context, Item profileItem)
Find an OrcidToken by profileItem.- Parameters:
context- the DSpace contextprofileItem- the profile item to search for- Returns:
- the Orcid token, if any
-
delete
void delete(Context context, OrcidToken orcidToken)
Delete the given ORCID token entity.- Parameters:
context- the DSpace contextorcidToken- the ORCID token entity to delete
-
deleteAll
void deleteAll(Context context)
Delete all the ORCID token entities.- Parameters:
context- the DSpace context
-
deleteByEPerson
void deleteByEPerson(Context context, EPerson ePerson)
Deletes the ORCID token entity related to the given EPerson.- Parameters:
context- the DSpace contextePerson- the ePerson for the deletion
-
-