Interface SuggestionService

All Known Implementing Classes:
SuggestionServiceImpl

public interface SuggestionService
Service that handles Suggestion.
Author:
Andrea Bollini (andrea.bollini at 4science.it)
  • Method Details

    • find

      SuggestionTarget find(Context context, String source, UUID id)
      find a SuggestionTarget by source name and suggestion id
    • countAll

      long countAll(Context context, String source)
      count all suggestion targets by suggestion source
    • findAllTargets

      List<SuggestionTarget> findAllTargets(Context context, String source, int pageSize, long offset)
      find all suggestion targets by source (paged)
    • countAllByTarget

      long countAllByTarget(Context context, UUID target)
      count all (unprocessed) suggestions by the given target uuid
    • findByTarget

      List<SuggestionTarget> findByTarget(Context context, UUID target, int pageSize, long offset)
      find suggestion target by targeted item (paged)
    • findSource

      SuggestionSource findSource(Context context, String source)
      find suggestion source by source name
    • countSources

      long countSources(Context context)
      count all suggestion sources
    • findAllSources

      List<SuggestionSource> findAllSources(Context context, int pageSize, long offset)
      find all suggestion sources (paged)
    • findUnprocessedSuggestion

      Suggestion findUnprocessedSuggestion(Context context, String id)
      find unprocessed suggestion by id
    • rejectSuggestion

      void rejectSuggestion(Context context, String id)
      reject a specific suggestion by its id
    • findByTargetAndSource

      List<Suggestion> findByTargetAndSource(Context context, UUID target, String source, int pageSize, long offset, boolean ascending)
      find all suggestions by targeted item and external source
    • countAllByTargetAndSource

      long countAllByTargetAndSource(Context context, String source, UUID target)
      count all suggestions by targeted item id and source name
    • getSuggestionProviders

      List<SuggestionProvider> getSuggestionProviders()
      returns all suggestion providers