Package org.dspace.app.suggestion
Interface SuggestionService
- All Known Implementing Classes:
SuggestionServiceImpl
public interface SuggestionService
Service that handles
Suggestion.- Author:
- Andrea Bollini (andrea.bollini at 4science.it)
-
Method Summary
Modifier and TypeMethodDescriptionlongcount all suggestion targets by suggestion sourcelongcountAllByTarget(Context context, UUID target) count all (unprocessed) suggestions by the given target uuidlongcountAllByTargetAndSource(Context context, String source, UUID target) count all suggestions by targeted item id and source namelongcountSources(Context context) count all suggestion sourcesfind aSuggestionTargetby source name and suggestion idfindAllSources(Context context, int pageSize, long offset) find all suggestion sources (paged)findAllTargets(Context context, String source, int pageSize, long offset) find all suggestion targets by source (paged)findByTarget(Context context, UUID target, int pageSize, long offset) find suggestion target by targeted item (paged)findByTargetAndSource(Context context, UUID target, String source, int pageSize, long offset, boolean ascending) find all suggestions by targeted item and external sourcefindSource(Context context, String source) find suggestion source by source namefindUnprocessedSuggestion(Context context, String id) find unprocessed suggestion by idreturns all suggestion providersvoidrejectSuggestion(Context context, String id) reject a specific suggestion by its id
-
Method Details
-
find
find aSuggestionTargetby source name and suggestion id -
countAll
count all suggestion targets by suggestion source -
findAllTargets
find all suggestion targets by source (paged) -
countAllByTarget
count all (unprocessed) suggestions by the given target uuid -
findByTarget
find suggestion target by targeted item (paged) -
findSource
find suggestion source by source name -
countSources
count all suggestion sources -
findAllSources
find all suggestion sources (paged) -
findUnprocessedSuggestion
find unprocessed suggestion by id -
rejectSuggestion
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
count all suggestions by targeted item id and source name -
getSuggestionProviders
List<SuggestionProvider> getSuggestionProviders()returns all suggestion providers
-