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 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.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.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.SystemException;
78
79 public int dynamicQueryCount(
80 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81 throws com.liferay.portal.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestion(
85 long questionId)
86 throws com.liferay.portal.PortalException,
87 com.liferay.portal.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getPollsQuestions(
91 int start, int end) throws com.liferay.portal.SystemException;
92
93 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94 public int getPollsQuestionsCount()
95 throws com.liferay.portal.SystemException;
96
97 public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
98 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
99 throws com.liferay.portal.SystemException;
100
101 public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
102 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
103 boolean merge) throws com.liferay.portal.SystemException;
104
105 public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
106 long userId, java.lang.String title, java.lang.String description,
107 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
108 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
109 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
110 com.liferay.portal.service.ServiceContext serviceContext)
111 throws com.liferay.portal.PortalException,
112 com.liferay.portal.SystemException;
113
114 public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
115 java.lang.String uuid, long userId, java.lang.String title,
116 java.lang.String description, int expirationDateMonth,
117 int expirationDateDay, int expirationDateYear, int expirationDateHour,
118 int expirationDateMinute, boolean neverExpire,
119 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
120 com.liferay.portal.service.ServiceContext serviceContext)
121 throws com.liferay.portal.PortalException,
122 com.liferay.portal.SystemException;
123
124 public void addQuestionResources(long questionId,
125 boolean addCommunityPermissions, boolean addGuestPermissions)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException;
128
129 public void addQuestionResources(long questionId,
130 java.lang.String[] communityPermissions,
131 java.lang.String[] guestPermissions)
132 throws com.liferay.portal.PortalException,
133 com.liferay.portal.SystemException;
134
135 public void addQuestionResources(
136 com.liferay.portlet.polls.model.PollsQuestion question,
137 boolean addCommunityPermissions, boolean addGuestPermissions)
138 throws com.liferay.portal.PortalException,
139 com.liferay.portal.SystemException;
140
141 public void addQuestionResources(
142 com.liferay.portlet.polls.model.PollsQuestion question,
143 java.lang.String[] communityPermissions,
144 java.lang.String[] guestPermissions)
145 throws com.liferay.portal.PortalException,
146 com.liferay.portal.SystemException;
147
148 public void deleteQuestion(long questionId)
149 throws com.liferay.portal.PortalException,
150 com.liferay.portal.SystemException;
151
152 public void deleteQuestion(
153 com.liferay.portlet.polls.model.PollsQuestion question)
154 throws com.liferay.portal.PortalException,
155 com.liferay.portal.SystemException;
156
157 public void deleteQuestions(long groupId)
158 throws com.liferay.portal.PortalException,
159 com.liferay.portal.SystemException;
160
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
163 long questionId)
164 throws com.liferay.portal.PortalException,
165 com.liferay.portal.SystemException;
166
167 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
169 long groupId) throws com.liferay.portal.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
173 long groupId, int start, int end)
174 throws com.liferay.portal.SystemException;
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public int getQuestionsCount(long groupId)
178 throws com.liferay.portal.SystemException;
179
180 public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
181 long userId, long questionId, java.lang.String title,
182 java.lang.String description, int expirationDateMonth,
183 int expirationDateDay, int expirationDateYear, int expirationDateHour,
184 int expirationDateMinute, boolean neverExpire)
185 throws com.liferay.portal.PortalException,
186 com.liferay.portal.SystemException;
187
188 public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
189 long userId, long questionId, java.lang.String title,
190 java.lang.String description, int expirationDateMonth,
191 int expirationDateDay, int expirationDateYear, int expirationDateHour,
192 int expirationDateMinute, boolean neverExpire,
193 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
194 com.liferay.portal.service.ServiceContext serviceContext)
195 throws com.liferay.portal.PortalException,
196 com.liferay.portal.SystemException;
197 }