1
22
23 package com.liferay.portlet.polls.service;
24
25
26
46 public class PollsQuestionLocalServiceUtil {
47 public static com.liferay.portlet.polls.model.PollsQuestion addPollsQuestion(
48 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
49 throws com.liferay.portal.SystemException {
50 return getService().addPollsQuestion(pollsQuestion);
51 }
52
53 public static com.liferay.portlet.polls.model.PollsQuestion createPollsQuestion(
54 long questionId) {
55 return getService().createPollsQuestion(questionId);
56 }
57
58 public static void deletePollsQuestion(long questionId)
59 throws com.liferay.portal.PortalException,
60 com.liferay.portal.SystemException {
61 getService().deletePollsQuestion(questionId);
62 }
63
64 public static void deletePollsQuestion(
65 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
66 throws com.liferay.portal.SystemException {
67 getService().deletePollsQuestion(pollsQuestion);
68 }
69
70 public static java.util.List<Object> dynamicQuery(
71 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72 throws com.liferay.portal.SystemException {
73 return getService().dynamicQuery(dynamicQuery);
74 }
75
76 public static java.util.List<Object> dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end) throws com.liferay.portal.SystemException {
79 return getService().dynamicQuery(dynamicQuery, start, end);
80 }
81
82 public static com.liferay.portlet.polls.model.PollsQuestion getPollsQuestion(
83 long questionId)
84 throws com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException {
86 return getService().getPollsQuestion(questionId);
87 }
88
89 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getPollsQuestions(
90 int start, int end) throws com.liferay.portal.SystemException {
91 return getService().getPollsQuestions(start, end);
92 }
93
94 public static int getPollsQuestionsCount()
95 throws com.liferay.portal.SystemException {
96 return getService().getPollsQuestionsCount();
97 }
98
99 public static com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
100 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
101 throws com.liferay.portal.SystemException {
102 return getService().updatePollsQuestion(pollsQuestion);
103 }
104
105 public static com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
106 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
107 boolean merge) throws com.liferay.portal.SystemException {
108 return getService().updatePollsQuestion(pollsQuestion, merge);
109 }
110
111 public static com.liferay.portlet.polls.model.PollsQuestion addQuestion(
112 long userId, java.lang.String title, java.lang.String description,
113 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
114 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
115 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
116 com.liferay.portal.service.ServiceContext serviceContext)
117 throws com.liferay.portal.PortalException,
118 com.liferay.portal.SystemException {
119 return getService()
120 .addQuestion(userId, title, description,
121 expirationDateMonth, expirationDateDay, expirationDateYear,
122 expirationDateHour, expirationDateMinute, neverExpire, choices,
123 serviceContext);
124 }
125
126 public static com.liferay.portlet.polls.model.PollsQuestion addQuestion(
127 java.lang.String uuid, long userId, java.lang.String title,
128 java.lang.String description, int expirationDateMonth,
129 int expirationDateDay, int expirationDateYear, int expirationDateHour,
130 int expirationDateMinute, boolean neverExpire,
131 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
132 com.liferay.portal.service.ServiceContext serviceContext)
133 throws com.liferay.portal.PortalException,
134 com.liferay.portal.SystemException {
135 return getService()
136 .addQuestion(uuid, userId, title, description,
137 expirationDateMonth, expirationDateDay, expirationDateYear,
138 expirationDateHour, expirationDateMinute, neverExpire, choices,
139 serviceContext);
140 }
141
142 public static void addQuestionResources(long questionId,
143 boolean addCommunityPermissions, boolean addGuestPermissions)
144 throws com.liferay.portal.PortalException,
145 com.liferay.portal.SystemException {
146 getService()
147 .addQuestionResources(questionId, addCommunityPermissions,
148 addGuestPermissions);
149 }
150
151 public static void addQuestionResources(
152 com.liferay.portlet.polls.model.PollsQuestion question,
153 boolean addCommunityPermissions, boolean addGuestPermissions)
154 throws com.liferay.portal.PortalException,
155 com.liferay.portal.SystemException {
156 getService()
157 .addQuestionResources(question, addCommunityPermissions,
158 addGuestPermissions);
159 }
160
161 public static void addQuestionResources(long questionId,
162 java.lang.String[] communityPermissions,
163 java.lang.String[] guestPermissions)
164 throws com.liferay.portal.PortalException,
165 com.liferay.portal.SystemException {
166 getService()
167 .addQuestionResources(questionId, communityPermissions,
168 guestPermissions);
169 }
170
171 public static void addQuestionResources(
172 com.liferay.portlet.polls.model.PollsQuestion question,
173 java.lang.String[] communityPermissions,
174 java.lang.String[] guestPermissions)
175 throws com.liferay.portal.PortalException,
176 com.liferay.portal.SystemException {
177 getService()
178 .addQuestionResources(question, communityPermissions,
179 guestPermissions);
180 }
181
182 public static void deleteQuestion(long questionId)
183 throws com.liferay.portal.PortalException,
184 com.liferay.portal.SystemException {
185 getService().deleteQuestion(questionId);
186 }
187
188 public static void deleteQuestion(
189 com.liferay.portlet.polls.model.PollsQuestion question)
190 throws com.liferay.portal.PortalException,
191 com.liferay.portal.SystemException {
192 getService().deleteQuestion(question);
193 }
194
195 public static void deleteQuestions(long groupId)
196 throws com.liferay.portal.PortalException,
197 com.liferay.portal.SystemException {
198 getService().deleteQuestions(groupId);
199 }
200
201 public static com.liferay.portlet.polls.model.PollsQuestion getQuestion(
202 long questionId)
203 throws com.liferay.portal.PortalException,
204 com.liferay.portal.SystemException {
205 return getService().getQuestion(questionId);
206 }
207
208 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
209 long groupId) throws com.liferay.portal.SystemException {
210 return getService().getQuestions(groupId);
211 }
212
213 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
214 long groupId, int start, int end)
215 throws com.liferay.portal.SystemException {
216 return getService().getQuestions(groupId, start, end);
217 }
218
219 public static int getQuestionsCount(long groupId)
220 throws com.liferay.portal.SystemException {
221 return getService().getQuestionsCount(groupId);
222 }
223
224 public static com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
225 long userId, long questionId, java.lang.String title,
226 java.lang.String description, int expirationDateMonth,
227 int expirationDateDay, int expirationDateYear, int expirationDateHour,
228 int expirationDateMinute, boolean neverExpire)
229 throws com.liferay.portal.PortalException,
230 com.liferay.portal.SystemException {
231 return getService()
232 .updateQuestion(userId, questionId, title, description,
233 expirationDateMonth, expirationDateDay, expirationDateYear,
234 expirationDateHour, expirationDateMinute, neverExpire);
235 }
236
237 public static com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
238 long userId, long questionId, java.lang.String title,
239 java.lang.String description, int expirationDateMonth,
240 int expirationDateDay, int expirationDateYear, int expirationDateHour,
241 int expirationDateMinute, boolean neverExpire,
242 java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
243 com.liferay.portal.service.ServiceContext serviceContext)
244 throws com.liferay.portal.PortalException,
245 com.liferay.portal.SystemException {
246 return getService()
247 .updateQuestion(userId, questionId, title, description,
248 expirationDateMonth, expirationDateDay, expirationDateYear,
249 expirationDateHour, expirationDateMinute, neverExpire, choices,
250 serviceContext);
251 }
252
253 public static PollsQuestionLocalService getService() {
254 if (_service == null) {
255 throw new RuntimeException("PollsQuestionLocalService is not set");
256 }
257
258 return _service;
259 }
260
261 public void setService(PollsQuestionLocalService service) {
262 _service = service;
263 }
264
265 private static PollsQuestionLocalService _service;
266 }