Interface SuggestionProvider

All Known Implementing Classes:
OpenAlexPublicationLoader, PublicationLoader, SolrSuggestionProvider

public interface SuggestionProvider
Interface for suggestion management like finding and counting.
Author:
Francesco Bacchelli (francesco.bacchelli at 4science.com)
See Also:
  • Method Details

    • findAllTargets

      List<SuggestionTarget> findAllTargets(Context context, int pageSize, long offset)
      find all suggestion targets
      See Also:
    • countAllTargets

      long countAllTargets(Context context)
      count all suggestion targets
    • findTarget

      SuggestionTarget findTarget(Context context, UUID target)
      find a suggestion target by UUID
    • findAllUnprocessedSuggestions

      List<Suggestion> findAllUnprocessedSuggestions(Context context, UUID target, int pageSize, long offset, boolean ascending)
      find unprocessed suggestions (paged) by target UUID
      See Also:
    • countUnprocessedSuggestionByTarget

      long countUnprocessedSuggestionByTarget(Context context, UUID target)
      find unprocessed suggestions by target UUID
    • findUnprocessedSuggestion

      Suggestion findUnprocessedSuggestion(Context context, UUID target, String id)
      find an unprocessed suggestion by target UUID and suggestion id
    • rejectSuggestion

      void rejectSuggestion(Context context, UUID target, String idPart)
      reject a specific suggestion by target @param target and by suggestion id @param idPart
    • flagRelatedSuggestionsAsProcessed

      void flagRelatedSuggestionsAsProcessed(Context context, ExternalDataObject externalDataObject)
      flag a suggestion as processed