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 TypeMethodDescriptionlong
org.springframework.data.domain.Page
<VoteDTO> getVotes
(int offset, int limit) protected org.springframework.data.domain.Pageable
toPageable
(int offset, int limit, org.springframework.data.domain.Sort sort)
-
Field Details
-
voterRepository
-
-
Constructor Details
-
VoterServiceImpl
public VoterServiceImpl()
-
-
Method Details
-
castVote
- Specified by:
castVote
in interfaceVoterService
-
getTotalVotes
public long getTotalVotes()- Specified by:
getTotalVotes
in interfaceVoterService
-
getVotes
- Specified by:
getVotes
in interfaceVoterService
-
toPageable
protected org.springframework.data.domain.Pageable toPageable(int offset, int limit, org.springframework.data.domain.Sort sort)
-