Class VoterServiceImpl
java.lang.Object
info.ejava.examples.svc.docker.votes.services.VoterServiceImpl
- All Implemented Interfaces:
VoterService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongorg.springframework.data.domain.Page<VoteDTO> getVotes(int offset, int limit) protected org.springframework.data.domain.PageabletoPageable(int offset, int limit, org.springframework.data.domain.Sort sort)
-
Field Details
-
voterRepository
-
-
Constructor Details
-
VoterServiceImpl
public VoterServiceImpl()
-
-
Method Details
-
castVote
- Specified by:
castVotein interfaceVoterService
-
getTotalVotes
public long getTotalVotes()- Specified by:
getTotalVotesin interfaceVoterService
-
getVotes
- Specified by:
getVotesin interfaceVoterService
-
toPageable
protected org.springframework.data.domain.Pageable toPageable(int offset, int limit, org.springframework.data.domain.Sort sort)
-