Package org.dspace.orcid.service.impl
Class OrcidTokenServiceImpl
- java.lang.Object
-
- org.dspace.orcid.service.impl.OrcidTokenServiceImpl
-
- All Implemented Interfaces:
OrcidTokenService
public class OrcidTokenServiceImpl extends Object implements OrcidTokenService
Implementation ofOrcidTokenService.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
-
Constructor Summary
Constructors Constructor Description OrcidTokenServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete 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
public OrcidToken create(Context context, EPerson ePerson, String accessToken)
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
public OrcidToken create(Context context, EPerson ePerson, Item profileItem, String accessToken)
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
public OrcidToken findByEPerson(Context context, EPerson ePerson)
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
public OrcidToken findByProfileItem(Context context, Item profileItem)
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
public void delete(Context context, OrcidToken orcidToken)
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
public void deleteAll(Context context)
Description copied from interface:OrcidTokenServiceDelete all the ORCID token entities.- Specified by:
deleteAllin interfaceOrcidTokenService- Parameters:
context- the DSpace context
-
deleteByEPerson
public void deleteByEPerson(Context context, EPerson ePerson)
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
public void deleteByProfileItem(Context context, Item profileItem)
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
-
-