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 classThe classVoteSummaryTocontains the transport object for the vote resource in the summary list.static classThe classVoteTocontains the transport object for the vote. -
Constructor Summary
ConstructorsConstructorDescriptionVoteService(@NonNull VoteStore voteStore) This is the constructor forVoteService. -
Method Summary
Modifier and TypeMethodDescriptionThe methodfindprovides means to retrieve the votes for a package.The methodfindprovides 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 methodfindprovides 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 methodfindprovides 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
-