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