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 PollsQuestionService {
50 public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
51 java.lang.String title, java.lang.String description,
52 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
53 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
54 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
55 com.liferay.portal.service.ServiceContext serviceContext)
56 throws com.liferay.portal.PortalException,
57 com.liferay.portal.SystemException;
58
59 public void deleteQuestion(long questionId)
60 throws com.liferay.portal.PortalException,
61 com.liferay.portal.SystemException;
62
63 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
64 public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
65 long questionId)
66 throws com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException;
68
69 public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
70 long questionId, java.lang.String title, java.lang.String description,
71 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
72 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
73 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
74 com.liferay.portal.service.ServiceContext serviceContext)
75 throws com.liferay.portal.PortalException,
76 com.liferay.portal.SystemException;
77 }