Class VoteService

java.lang.Object
org.ctan.site.services.catalogue.VoteService

public final class VoteService extends Object
This service deals with votes.
  • Constructor Details

    • VoteService

      public VoteService(@NonNull @NonNull VoteStore voteStore)
      This is the constructor for VoteService.
      Parameters:
      voteStore - the vote store
  • Method Details

    • find

      public VoteService.VoteSummaryTo find(Pkg pkg, long page, long size)
      The method find provides means to retrieve the votes for a user.
      Parameters:
      pkg - the user
      page - the current page to retrieve
      size - the page size
      Returns:
      the list and rating summary
    • find

      public VoteService.VoteSummaryTo find(User user, long page, long size)
      The method find provides means to retrieve the votes for a package.
      Parameters:
      user - the package
      page - the current page to retrieve
      size - the page size
      Returns:
      the list and rating summary