com.liferay.portlet.polls.service
Interface PollsVoteLocalService


public interface PollsVoteLocalService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portlet.polls.service.impl.PollsVoteLocalServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
PollsVoteLocalServiceFactory, PollsVoteLocalServiceUtil

Method Summary
 PollsVote addPollsVote(PollsVote pollsVote)
           
 PollsVote addVote(long userId, long questionId, long choiceId)
           
 void deletePollsVote(long voteId)
           
 void deletePollsVote(PollsVote pollsVote)
           
 java.util.List<PollsVote> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List<PollsVote> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 java.util.List<PollsVote> getChoiceVotes(long choiceId, int begin, int end)
           
 int getChoiceVotesCount(long choiceId)
           
 java.util.List<PollsVote> getQuestionVotes(long questionId, int begin, int end)
           
 int getQuestionVotesCount(long questionId)
           
 PollsVote getVote(long questionId, long userId)
           
 PollsVote updatePollsVote(PollsVote pollsVote)
           
 

Method Detail

addPollsVote

PollsVote addPollsVote(PollsVote pollsVote)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deletePollsVote

void deletePollsVote(long voteId)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deletePollsVote

void deletePollsVote(PollsVote pollsVote)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

dynamicQuery

java.util.List<PollsVote> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<PollsVote> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                       int begin,
                                       int end)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updatePollsVote

PollsVote updatePollsVote(PollsVote pollsVote)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addVote

PollsVote addVote(long userId,
                  long questionId,
                  long choiceId)
                  throws com.liferay.portal.SystemException,
                         com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getChoiceVotes

java.util.List<PollsVote> getChoiceVotes(long choiceId,
                                         int begin,
                                         int end)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getChoiceVotesCount

int getChoiceVotesCount(long choiceId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getVote

PollsVote getVote(long questionId,
                  long userId)
                  throws com.liferay.portal.SystemException,
                         com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getQuestionVotes

java.util.List<PollsVote> getQuestionVotes(long questionId,
                                           int begin,
                                           int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getQuestionVotesCount

int getQuestionVotesCount(long questionId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException