Package org.dspace.orcid.service.impl
Class OrcidTokenServiceImpl
java.lang.Object
org.dspace.orcid.service.impl.OrcidTokenServiceImpl
- All Implemented Interfaces:
OrcidTokenService
Implementation of
OrcidTokenService.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
OrcidTokenServiceImpl
public OrcidTokenServiceImpl()
-
-
Method Details
-
create
Description copied from interface:OrcidTokenServiceCreates a new OrcidToken entity for the given ePerson and accessToken.- Specified by:
createin interfaceOrcidTokenService- Parameters:
context- the DSpace contextePerson- the EPersonaccessToken- the access token- Returns:
- the created entity instance
-
create
Description copied from interface:OrcidTokenServiceCreates a new OrcidToken entity for the given ePerson and accessToken.- Specified by:
createin interfaceOrcidTokenService- Parameters:
context- the DSpace contextePerson- the EPersonprofileItem- the profile itemaccessToken- the access token- Returns:
- the created entity instance
-
findByEPerson
Description copied from interface:OrcidTokenServiceFind an OrcidToken by ePerson.- Specified by:
findByEPersonin interfaceOrcidTokenService- Parameters:
context- the DSpace contextePerson- the ePerson to search for- Returns:
- the Orcid token, if any
-
findByProfileItem
Description copied from interface:OrcidTokenServiceFind an OrcidToken by profileItem.- Specified by:
findByProfileItemin interfaceOrcidTokenService- Parameters:
context- the DSpace contextprofileItem- the profile item to search for- Returns:
- the Orcid token, if any
-
delete
Description copied from interface:OrcidTokenServiceDelete the given ORCID token entity.- Specified by:
deletein interfaceOrcidTokenService- Parameters:
context- the DSpace contextorcidToken- the ORCID token entity to delete
-
deleteAll
Description copied from interface:OrcidTokenServiceDelete all the ORCID token entities.- Specified by:
deleteAllin interfaceOrcidTokenService- Parameters:
context- the DSpace context
-
deleteByEPerson
Description copied from interface:OrcidTokenServiceDeletes the ORCID token entity related to the given EPerson.- Specified by:
deleteByEPersonin interfaceOrcidTokenService- Parameters:
context- the DSpace contextePerson- the ePerson for the deletion
-
deleteByProfileItem
Description copied from interface:OrcidTokenServiceDeletes the ORCID token entity related to the given profile item.- Specified by:
deleteByProfileItemin interfaceOrcidTokenService- Parameters:
context- the DSpace contextprofileItem- the item for the deletion
-