Interface OrcidHistoryDAO

All Superinterfaces:
GenericDAO<OrcidHistory>
All Known Implementing Classes:
OrcidHistoryDAOImpl

public interface OrcidHistoryDAO extends GenericDAO<OrcidHistory>
Database Access Object interface class for the OrcidHistory object. The implementation of this class is responsible for all database calls for the OrcidHistory 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)
  • Method Details

    • findByProfileItemAndEntity

      List<OrcidHistory> findByProfileItemAndEntity(Context context, UUID profileItemId, UUID entityId) throws SQLException
      Find all the ORCID history records by the given profileItem and entity uuids.
      Parameters:
      context - the DSpace context
      profileItemId - the profileItem item uuid
      entityId - the entity item uuid
      Returns:
      the records list
      Throws:
      SQLException - if an SQL error occurs
    • findByProfileItemOrEntity

      List<OrcidHistory> findByProfileItemOrEntity(Context context, Item item) throws SQLException
      Get the OrcidHistory records where the given item is the profileItem or the entity
      Parameters:
      context - DSpace context object
      item - the item to search for
      Returns:
      the found OrcidHistory entities
      Throws:
      SQLException - if database error
    • findByEntity

      List<OrcidHistory> findByEntity(Context context, Item entity) throws SQLException
      Find the OrcidHistory records related to the given entity item.
      Parameters:
      context - DSpace context object
      entity - the entity item
      Returns:
      the found put codes
      Throws:
      SQLException - if database error
    • findSuccessfullyRecordsByEntityAndType

      List<OrcidHistory> findSuccessfullyRecordsByEntityAndType(Context context, Item entity, String recordType) throws SQLException
      Find all the successfully Orcid history records with the given record type related to the given entity. An history record is considered successful if the status is between 200 and 300.
      Parameters:
      context - DSpace context object
      entity - the entity item
      recordType - the record type
      Returns:
      the found orcid history records
      Throws:
      SQLException - if database error