1
14
15 package com.liferay.portlet.polls.service;
16
17 import com.liferay.portal.PortalException;
18 import com.liferay.portal.SystemException;
19 import com.liferay.portal.kernel.annotation.Isolation;
20 import com.liferay.portal.kernel.annotation.Propagation;
21 import com.liferay.portal.kernel.annotation.Transactional;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface PollsQuestionLocalService {
50 public com.liferay.portlet.polls.model.PollsQuestion addPollsQuestion(
51 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
52 throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.polls.model.PollsQuestion createPollsQuestion(
55 long questionId);
56
57 public void deletePollsQuestion(long questionId)
58 throws com.liferay.portal.PortalException,
59 com.liferay.portal.SystemException;
60
61 public void deletePollsQuestion(
62 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
63 throws com.liferay.portal.SystemException;
64
65 @SuppressWarnings("rawtypes")
66 public java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException;
69
70 @SuppressWarnings("rawtypes")
71 public java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.SystemException;
74
75 @SuppressWarnings("rawtypes")
76 public java.util.List dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end,
79 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80 throws com.liferay.portal.SystemException;
81
82 public int dynamicQueryCount(
83 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84 throws com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestion(
88 long questionId)
89 throws com.liferay.portal.PortalException,
90 com.liferay.portal.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestionByUuidAndGroupId(
94 java.lang.String uuid, long groupId)
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.PollsQuestion> getPollsQuestions(
100 int start, int end) throws com.liferay.portal.SystemException;
101
102 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103 public int getPollsQuestionsCount()
104 throws com.liferay.portal.SystemException;
105
106 public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
107 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
108 throws com.liferay.portal.SystemException;
109
110 public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
111 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
112 boolean merge) throws com.liferay.portal.SystemException;
113
114 public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
115 long userId, java.lang.String title, java.lang.String description,
116 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
117 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
118 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
119 com.liferay.portal.service.ServiceContext serviceContext)
120 throws com.liferay.portal.PortalException,
121 com.liferay.portal.SystemException;
122
123 public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
124 java.lang.String uuid, long userId, java.lang.String title,
125 java.lang.String description, int expirationDateMonth,
126 int expirationDateDay, int expirationDateYear, int expirationDateHour,
127 int expirationDateMinute, boolean neverExpire,
128 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
129 com.liferay.portal.service.ServiceContext serviceContext)
130 throws com.liferay.portal.PortalException,
131 com.liferay.portal.SystemException;
132
133 public void addQuestionResources(long questionId,
134 boolean addCommunityPermissions, boolean addGuestPermissions)
135 throws com.liferay.portal.PortalException,
136 com.liferay.portal.SystemException;
137
138 public void addQuestionResources(long questionId,
139 java.lang.String[] communityPermissions,
140 java.lang.String[] guestPermissions)
141 throws com.liferay.portal.PortalException,
142 com.liferay.portal.SystemException;
143
144 public void addQuestionResources(
145 com.liferay.portlet.polls.model.PollsQuestion question,
146 boolean addCommunityPermissions, boolean addGuestPermissions)
147 throws com.liferay.portal.PortalException,
148 com.liferay.portal.SystemException;
149
150 public void addQuestionResources(
151 com.liferay.portlet.polls.model.PollsQuestion question,
152 java.lang.String[] communityPermissions,
153 java.lang.String[] guestPermissions)
154 throws com.liferay.portal.PortalException,
155 com.liferay.portal.SystemException;
156
157 public void deleteQuestion(long questionId)
158 throws com.liferay.portal.PortalException,
159 com.liferay.portal.SystemException;
160
161 public void deleteQuestion(
162 com.liferay.portlet.polls.model.PollsQuestion question)
163 throws com.liferay.portal.PortalException,
164 com.liferay.portal.SystemException;
165
166 public void deleteQuestions(long groupId)
167 throws com.liferay.portal.PortalException,
168 com.liferay.portal.SystemException;
169
170 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171 public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
172 long questionId)
173 throws com.liferay.portal.PortalException,
174 com.liferay.portal.SystemException;
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
178 long groupId) throws com.liferay.portal.SystemException;
179
180 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
182 long groupId, int start, int end)
183 throws com.liferay.portal.SystemException;
184
185 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186 public int getQuestionsCount(long groupId)
187 throws com.liferay.portal.SystemException;
188
189 public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
190 long userId, long questionId, java.lang.String title,
191 java.lang.String description, int expirationDateMonth,
192 int expirationDateDay, int expirationDateYear, int expirationDateHour,
193 int expirationDateMinute, boolean neverExpire)
194 throws com.liferay.portal.PortalException,
195 com.liferay.portal.SystemException;
196
197 public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
198 long userId, long questionId, java.lang.String title,
199 java.lang.String description, int expirationDateMonth,
200 int expirationDateDay, int expirationDateYear, int expirationDateHour,
201 int expirationDateMinute, boolean neverExpire,
202 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
203 com.liferay.portal.service.ServiceContext serviceContext)
204 throws com.liferay.portal.PortalException,
205 com.liferay.portal.SystemException;
206 }