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