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