Package org.ctan.site.services.catalogue
Class VoteService
java.lang.Object
org.ctan.site.services.catalogue.VoteService
This service deals with votes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The classVoteSummaryTo
contains the transport object for the vote resource in the summary list.static class
The classVoteTo
contains the transport object for the vote. -
Constructor Summary
ConstructorsConstructorDescriptionVoteService
(@NonNull VoteStore voteStore) This is the constructor forVoteService
. -
Method Summary
Modifier and TypeMethodDescriptionThe methodfind
provides means to retrieve the votes for a package.The methodfind
provides means to retrieve the votes for a user.
-
Constructor Details
-
VoteService
This is the constructor forVoteService
.- Parameters:
voteStore
- the vote store
-
-
Method Details
-
find
The methodfind
provides means to retrieve the votes for a user.- Parameters:
pkg
- the userpage
- the current page to retrievesize
- the page size- Returns:
- the list and rating summary
-
find
The methodfind
provides means to retrieve the votes for a package.- Parameters:
user
- the packagepage
- the current page to retrievesize
- the page size- Returns:
- the list and rating summary
-