Package io.meeds.poll.service
Class PollServiceImpl
java.lang.Object
io.meeds.poll.service.PollServiceImpl
- All Implemented Interfaces:
io.meeds.poll.service.PollService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.meeds.poll.model.PollcreatePoll(io.meeds.poll.model.Poll poll, List<io.meeds.poll.model.PollOption> pollOptions, String spaceId, String message, org.exoplatform.services.security.Identity currentIdentity, List<org.exoplatform.social.core.activity.model.ActivityFile> files, Long publicationStartTime) booleanio.meeds.poll.model.PollgetPollById(long pollId, org.exoplatform.services.security.Identity currentIdentity) io.meeds.poll.model.PollOptiongetPollOptionById(long pollOptionId, org.exoplatform.services.security.Identity currentIdentity) List<io.meeds.poll.model.PollOption> getPollOptionsByPollId(long pollId, org.exoplatform.services.security.Identity currentIdentity) intgetPollOptionsNumber(long pollId, org.exoplatform.services.security.Identity currentIdentity) intgetPollOptionTotalVotes(long pollOptionId, String spaceId, org.exoplatform.services.security.Identity currentIdentity) intgetPollTotalVotes(long pollId, org.exoplatform.services.security.Identity currentIdentity) booleanisPollOptionVoted(long pollOptionId, String spaceId, org.exoplatform.services.security.Identity currentIdentity) io.meeds.poll.model.PollVotevote(String pollOptionId, String spaceId, org.exoplatform.services.security.Identity currentIdentity) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.meeds.poll.service.PollService
createPoll
-
Constructor Details
-
PollServiceImpl
public PollServiceImpl()
-
-
Method Details
-
createPoll
public io.meeds.poll.model.Poll createPoll(io.meeds.poll.model.Poll poll, List<io.meeds.poll.model.PollOption> pollOptions, String spaceId, String message, org.exoplatform.services.security.Identity currentIdentity, List<org.exoplatform.social.core.activity.model.ActivityFile> files, Long publicationStartTime) throws IllegalAccessException - Specified by:
createPollin interfaceio.meeds.poll.service.PollService- Throws:
IllegalAccessException
-
getPollById
public io.meeds.poll.model.Poll getPollById(long pollId, org.exoplatform.services.security.Identity currentIdentity) throws IllegalAccessException - Specified by:
getPollByIdin interfaceio.meeds.poll.service.PollService- Throws:
IllegalAccessException
-
getPollOptionById
public io.meeds.poll.model.PollOption getPollOptionById(long pollOptionId, org.exoplatform.services.security.Identity currentIdentity) throws IllegalAccessException - Specified by:
getPollOptionByIdin interfaceio.meeds.poll.service.PollService- Throws:
IllegalAccessException
-
getPollOptionsByPollId
public List<io.meeds.poll.model.PollOption> getPollOptionsByPollId(long pollId, org.exoplatform.services.security.Identity currentIdentity) throws IllegalAccessException - Specified by:
getPollOptionsByPollIdin interfaceio.meeds.poll.service.PollService- Throws:
IllegalAccessException
-
vote
public io.meeds.poll.model.PollVote vote(String pollOptionId, String spaceId, org.exoplatform.services.security.Identity currentIdentity) throws IllegalAccessException - Specified by:
votein interfaceio.meeds.poll.service.PollService- Throws:
IllegalAccessException
-
getPollOptionTotalVotes
public int getPollOptionTotalVotes(long pollOptionId, String spaceId, org.exoplatform.services.security.Identity currentIdentity) throws IllegalAccessException - Specified by:
getPollOptionTotalVotesin interfaceio.meeds.poll.service.PollService- Throws:
IllegalAccessException
-
isPollOptionVoted
public boolean isPollOptionVoted(long pollOptionId, String spaceId, org.exoplatform.services.security.Identity currentIdentity) throws IllegalAccessException - Specified by:
isPollOptionVotedin interfaceio.meeds.poll.service.PollService- Throws:
IllegalAccessException
-
getPollOptionsNumber
public int getPollOptionsNumber(long pollId, org.exoplatform.services.security.Identity currentIdentity) throws IllegalAccessException - Specified by:
getPollOptionsNumberin interfaceio.meeds.poll.service.PollService- Throws:
IllegalAccessException
-
getPollTotalVotes
public int getPollTotalVotes(long pollId, org.exoplatform.services.security.Identity currentIdentity) throws IllegalAccessException - Specified by:
getPollTotalVotesin interfaceio.meeds.poll.service.PollService- Throws:
IllegalAccessException
-
didVote
- Specified by:
didVotein interfaceio.meeds.poll.service.PollService
-