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 PollsQuestionLocalService {
043
050 public com.liferay.portlet.polls.model.PollsQuestion addPollsQuestion(
051 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054
060 public com.liferay.portlet.polls.model.PollsQuestion createPollsQuestion(
061 long questionId);
062
063
070 public void deletePollsQuestion(long questionId)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074
080 public void deletePollsQuestion(
081 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084
091 @SuppressWarnings("rawtypes")
092 public java.util.List dynamicQuery(
093 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096
109 @SuppressWarnings("rawtypes")
110 public java.util.List dynamicQuery(
111 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112 int end) throws com.liferay.portal.kernel.exception.SystemException;
113
114
128 @SuppressWarnings("rawtypes")
129 public java.util.List dynamicQuery(
130 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131 int end,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135
142 public long dynamicQueryCount(
143 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestion(
156 long questionId)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException;
159
160
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestionByUuidAndGroupId(
171 java.lang.String uuid, long groupId)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getPollsQuestions(
189 int start, int end)
190 throws com.liferay.portal.kernel.exception.SystemException;
191
192
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public int getPollsQuestionsCount()
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202
209 public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
210 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
211 throws com.liferay.portal.kernel.exception.SystemException;
212
213
221 public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
222 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
223 boolean merge)
224 throws com.liferay.portal.kernel.exception.SystemException;
225
226 public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
227 long userId,
228 java.util.Map<java.util.Locale, java.lang.String> titleMap,
229 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
230 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
231 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
232 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
233 com.liferay.portal.service.ServiceContext serviceContext)
234 throws com.liferay.portal.kernel.exception.PortalException,
235 com.liferay.portal.kernel.exception.SystemException;
236
237 public void addQuestionResources(long questionId,
238 boolean addCommunityPermissions, boolean addGuestPermissions)
239 throws com.liferay.portal.kernel.exception.PortalException,
240 com.liferay.portal.kernel.exception.SystemException;
241
242 public void addQuestionResources(long questionId,
243 java.lang.String[] communityPermissions,
244 java.lang.String[] guestPermissions)
245 throws com.liferay.portal.kernel.exception.PortalException,
246 com.liferay.portal.kernel.exception.SystemException;
247
248 public void addQuestionResources(
249 com.liferay.portlet.polls.model.PollsQuestion question,
250 boolean addCommunityPermissions, boolean addGuestPermissions)
251 throws com.liferay.portal.kernel.exception.PortalException,
252 com.liferay.portal.kernel.exception.SystemException;
253
254 public void addQuestionResources(
255 com.liferay.portlet.polls.model.PollsQuestion question,
256 java.lang.String[] communityPermissions,
257 java.lang.String[] guestPermissions)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException;
260
261 public void deleteQuestion(long questionId)
262 throws com.liferay.portal.kernel.exception.PortalException,
263 com.liferay.portal.kernel.exception.SystemException;
264
265 public void deleteQuestion(
266 com.liferay.portlet.polls.model.PollsQuestion question)
267 throws com.liferay.portal.kernel.exception.PortalException,
268 com.liferay.portal.kernel.exception.SystemException;
269
270 public void deleteQuestions(long groupId)
271 throws com.liferay.portal.kernel.exception.PortalException,
272 com.liferay.portal.kernel.exception.SystemException;
273
274 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275 public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
276 long questionId)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException;
279
280 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
282 long groupId)
283 throws com.liferay.portal.kernel.exception.SystemException;
284
285 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
287 long groupId, int start, int end)
288 throws com.liferay.portal.kernel.exception.SystemException;
289
290 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
291 public int getQuestionsCount(long groupId)
292 throws com.liferay.portal.kernel.exception.SystemException;
293
294 public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
295 long userId, long questionId,
296 java.util.Map<java.util.Locale, java.lang.String> titleMap,
297 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
298 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
299 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
300 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
301 com.liferay.portal.service.ServiceContext serviceContext)
302 throws com.liferay.portal.kernel.exception.PortalException,
303 com.liferay.portal.kernel.exception.SystemException;
304 }