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:
PollsVoteServiceFactory, PollsVoteServiceUtil

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

Method Detail

addPollsVote

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

dynamicQuery

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

dynamicQuery

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

updatePollsVote

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

addVote

public 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

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

getChoiceVotesCount

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

getVote

public 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

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

getQuestionVotesCount

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