Class VoterServiceImpl

java.lang.Object
info.ejava.examples.svc.docker.votes.services.VoterServiceImpl
All Implemented Interfaces:
VoterService

@Service public class VoterServiceImpl extends Object implements VoterService
  • Field Details

  • Constructor Details

    • VoterServiceImpl

      public VoterServiceImpl()
  • Method Details

    • castVote

      public VoteDTO castVote(VoteDTO newVote)
      Specified by:
      castVote in interface VoterService
    • getTotalVotes

      public long getTotalVotes()
      Specified by:
      getTotalVotes in interface VoterService
    • getVotes

      public org.springframework.data.domain.Page<VoteDTO> getVotes(int offset, int limit)
      Specified by:
      getVotes in interface VoterService
    • toPageable

      protected org.springframework.data.domain.Pageable toPageable(int offset, int limit, org.springframework.data.domain.Sort sort)