All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dspace.orcid.dao.OrcidTokenDAO Maven / Gradle / Ivy

The newest version!
/**
 * The contents of this file are subject to the license and copyright
 * detailed in the LICENSE and NOTICE files at the root of the source
 * tree and available online at
 *
 * http://www.dspace.org/license/
 */
package org.dspace.orcid.dao;

import org.dspace.content.Item;
import org.dspace.core.Context;
import org.dspace.core.GenericDAO;
import org.dspace.eperson.EPerson;
import org.dspace.orcid.OrcidToken;

/**
 * Database Access Object interface class for the OrcidToken object. The
 * implementation of this class is responsible for all database calls for the
 * OrcidToken object and is autowired by spring. This class should only be
 * accessed from a single service and should never be exposed outside of the API
 *
 * @author Luca Giamminonni (luca.giamminonni at 4science.it)
 *
 */
public interface OrcidTokenDAO extends GenericDAO {

    /**
     * Find an OrcidToken by ePerson.
     *
     * @param  context the DSpace context
     * @param  ePerson the ePerson to search for
     * @return         the Orcid token, if any
     */
    public OrcidToken findByEPerson(Context context, EPerson ePerson);

    /**
     * Find an OrcidToken by profileItem.
     *
     * @param  context     the DSpace context
     * @param  profileItem the profile item to search for
     * @return             the Orcid token, if any
     */
    public OrcidToken findByProfileItem(Context context, Item profileItem);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy