1
19
20 package com.liferay.portlet.polls.service;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Propagation;
25 import com.liferay.portal.kernel.annotation.Transactional;
26
27
51 @Transactional(rollbackFor = {
52 PortalException.class, SystemException.class})
53 public interface PollsVoteLocalService {
54 public com.liferay.portlet.polls.model.PollsVote addPollsVote(
55 com.liferay.portlet.polls.model.PollsVote pollsVote)
56 throws com.liferay.portal.SystemException;
57
58 public com.liferay.portlet.polls.model.PollsVote createPollsVote(
59 long voteId);
60
61 public void deletePollsVote(long voteId)
62 throws com.liferay.portal.SystemException,
63 com.liferay.portal.PortalException;
64
65 public void deletePollsVote(
66 com.liferay.portlet.polls.model.PollsVote pollsVote)
67 throws com.liferay.portal.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
71 throws com.liferay.portal.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public com.liferay.portlet.polls.model.PollsVote getPollsVote(long voteId)
79 throws com.liferay.portal.SystemException,
80 com.liferay.portal.PortalException;
81
82 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
83 public java.util.List<com.liferay.portlet.polls.model.PollsVote> getPollsVotes(
84 int start, int end) throws com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public int getPollsVotesCount() throws com.liferay.portal.SystemException;
88
89 public com.liferay.portlet.polls.model.PollsVote updatePollsVote(
90 com.liferay.portlet.polls.model.PollsVote pollsVote)
91 throws com.liferay.portal.SystemException;
92
93 public com.liferay.portlet.polls.model.PollsVote addVote(long userId,
94 long questionId, long choiceId)
95 throws com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException;
97
98 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99 public java.util.List<com.liferay.portlet.polls.model.PollsVote> getChoiceVotes(
100 long choiceId, int start, int end)
101 throws com.liferay.portal.SystemException;
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public int getChoiceVotesCount(long choiceId)
105 throws com.liferay.portal.SystemException;
106
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public com.liferay.portlet.polls.model.PollsVote getVote(long questionId,
109 long userId)
110 throws com.liferay.portal.PortalException,
111 com.liferay.portal.SystemException;
112
113 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114 public java.util.List<com.liferay.portlet.polls.model.PollsVote> getQuestionVotes(
115 long questionId, int start, int end)
116 throws com.liferay.portal.SystemException;
117
118 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
119 public int getQuestionVotesCount(long questionId)
120 throws com.liferay.portal.SystemException;
121 }