001
014
015 package com.liferay.portlet.polls.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface PollsVoteLocalService {
043 public com.liferay.portlet.polls.model.PollsVote addPollsVote(
044 com.liferay.portlet.polls.model.PollsVote pollsVote)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.polls.model.PollsVote createPollsVote(
048 long voteId);
049
050 public void deletePollsVote(long voteId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deletePollsVote(
055 com.liferay.portlet.polls.model.PollsVote pollsVote)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058 @SuppressWarnings("unchecked")
059 public java.util.List dynamicQuery(
060 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063 @SuppressWarnings("unchecked")
064 public java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException;
067
068 @SuppressWarnings("unchecked")
069 public java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException;
074
075 public long dynamicQueryCount(
076 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077 throws com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public com.liferay.portlet.polls.model.PollsVote getPollsVote(long voteId)
081 throws com.liferay.portal.kernel.exception.PortalException,
082 com.liferay.portal.kernel.exception.SystemException;
083
084 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
085 public java.util.List<com.liferay.portlet.polls.model.PollsVote> getPollsVotes(
086 int start, int end)
087 throws com.liferay.portal.kernel.exception.SystemException;
088
089 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
090 public int getPollsVotesCount()
091 throws com.liferay.portal.kernel.exception.SystemException;
092
093 public com.liferay.portlet.polls.model.PollsVote updatePollsVote(
094 com.liferay.portlet.polls.model.PollsVote pollsVote)
095 throws com.liferay.portal.kernel.exception.SystemException;
096
097 public com.liferay.portlet.polls.model.PollsVote updatePollsVote(
098 com.liferay.portlet.polls.model.PollsVote pollsVote, boolean merge)
099 throws com.liferay.portal.kernel.exception.SystemException;
100
101 public com.liferay.portlet.polls.model.PollsVote addVote(long userId,
102 long questionId, long choiceId,
103 com.liferay.portal.service.ServiceContext serviceContext)
104 throws com.liferay.portal.kernel.exception.PortalException,
105 com.liferay.portal.kernel.exception.SystemException;
106
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public java.util.List<com.liferay.portlet.polls.model.PollsVote> getChoiceVotes(
109 long choiceId, int start, int end)
110 throws com.liferay.portal.kernel.exception.SystemException;
111
112 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
113 public int getChoiceVotesCount(long choiceId)
114 throws com.liferay.portal.kernel.exception.SystemException;
115
116 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117 public java.util.List<com.liferay.portlet.polls.model.PollsVote> getQuestionVotes(
118 long questionId, int start, int end)
119 throws com.liferay.portal.kernel.exception.SystemException;
120
121 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
122 public int getQuestionVotesCount(long questionId)
123 throws com.liferay.portal.kernel.exception.SystemException;
124
125 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126 public com.liferay.portlet.polls.model.PollsVote getVote(long questionId,
127 long userId)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException;
130 }