Package io.meeds.poll.service
Class PollServiceImpl
- java.lang.Object
-
- io.meeds.poll.service.PollServiceImpl
-
- All Implemented Interfaces:
io.meeds.poll.service.PollService
public class PollServiceImpl extends Object implements io.meeds.poll.service.PollService
-
-
Constructor Summary
Constructors Constructor Description PollServiceImpl(PollStorage pollStorage, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.manager.ActivityManager activityManager, org.exoplatform.portal.config.UserACL userACL)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.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)io.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)
-
-
-
Constructor Detail
-
PollServiceImpl
public PollServiceImpl(PollStorage pollStorage, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.manager.ActivityManager activityManager, org.exoplatform.portal.config.UserACL userACL)
-
-
Method Detail
-
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) 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
-
-