Package org.dspace.app.suggestion
Class SuggestionServiceImpl
java.lang.Object
org.dspace.app.suggestion.SuggestionServiceImpl
- All Implemented Interfaces:
SuggestionService
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
SuggestionServiceImpl
public SuggestionServiceImpl()
-
-
Method Details
-
getSuggestionProviders
Description copied from interface:SuggestionServicereturns all suggestion providers- Specified by:
getSuggestionProvidersin interfaceSuggestionService
-
find
Description copied from interface:SuggestionServicefind aSuggestionTargetby source name and suggestion id- Specified by:
findin interfaceSuggestionService
-
countAll
Description copied from interface:SuggestionServicecount all suggestion targets by suggestion source- Specified by:
countAllin interfaceSuggestionService
-
findAllTargets
public List<SuggestionTarget> findAllTargets(Context context, String source, int pageSize, long offset) Description copied from interface:SuggestionServicefind all suggestion targets by source (paged)- Specified by:
findAllTargetsin interfaceSuggestionService
-
countAllByTarget
Description copied from interface:SuggestionServicecount all (unprocessed) suggestions by the given target uuid- Specified by:
countAllByTargetin interfaceSuggestionService
-
findByTarget
Description copied from interface:SuggestionServicefind suggestion target by targeted item (paged)- Specified by:
findByTargetin interfaceSuggestionService
-
countSources
Description copied from interface:SuggestionServicecount all suggestion sources- Specified by:
countSourcesin interfaceSuggestionService
-
findSource
Description copied from interface:SuggestionServicefind suggestion source by source name- Specified by:
findSourcein interfaceSuggestionService
-
findAllSources
Description copied from interface:SuggestionServicefind all suggestion sources (paged)- Specified by:
findAllSourcesin interfaceSuggestionService
-
countAllByTargetAndSource
Description copied from interface:SuggestionServicecount all suggestions by targeted item id and source name- Specified by:
countAllByTargetAndSourcein interfaceSuggestionService
-
findByTargetAndSource
public List<Suggestion> findByTargetAndSource(Context context, UUID target, String source, int pageSize, long offset, boolean ascending) Description copied from interface:SuggestionServicefind all suggestions by targeted item and external source- Specified by:
findByTargetAndSourcein interfaceSuggestionService
-
findUnprocessedSuggestion
Description copied from interface:SuggestionServicefind unprocessed suggestion by id- Specified by:
findUnprocessedSuggestionin interfaceSuggestionService
-
rejectSuggestion
Description copied from interface:SuggestionServicereject a specific suggestion by its id- Specified by:
rejectSuggestionin interfaceSuggestionService
-