1
19
20 package com.liferay.portlet.calendar.service.base;
21
22 import com.liferay.counter.service.CounterLocalService;
23 import com.liferay.counter.service.CounterService;
24
25 import com.liferay.mail.service.MailService;
26
27 import com.liferay.portal.PortalException;
28 import com.liferay.portal.SystemException;
29 import com.liferay.portal.kernel.annotation.BeanReference;
30 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
31 import com.liferay.portal.service.CompanyLocalService;
32 import com.liferay.portal.service.CompanyService;
33 import com.liferay.portal.service.PortletPreferencesLocalService;
34 import com.liferay.portal.service.PortletPreferencesService;
35 import com.liferay.portal.service.ResourceLocalService;
36 import com.liferay.portal.service.ResourceService;
37 import com.liferay.portal.service.UserLocalService;
38 import com.liferay.portal.service.UserService;
39 import com.liferay.portal.service.persistence.CompanyPersistence;
40 import com.liferay.portal.service.persistence.PortletPreferencesFinder;
41 import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
42 import com.liferay.portal.service.persistence.ResourceFinder;
43 import com.liferay.portal.service.persistence.ResourcePersistence;
44 import com.liferay.portal.service.persistence.UserFinder;
45 import com.liferay.portal.service.persistence.UserPersistence;
46 import com.liferay.portal.util.PortalUtil;
47
48 import com.liferay.portlet.calendar.model.CalEvent;
49 import com.liferay.portlet.calendar.service.CalEventLocalService;
50 import com.liferay.portlet.calendar.service.CalEventService;
51 import com.liferay.portlet.calendar.service.persistence.CalEventFinder;
52 import com.liferay.portlet.calendar.service.persistence.CalEventPersistence;
53 import com.liferay.portlet.social.service.SocialActivityLocalService;
54 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
55 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
56
57 import java.util.List;
58
59
65 public abstract class CalEventLocalServiceBaseImpl
66 implements CalEventLocalService {
67 public CalEvent addCalEvent(CalEvent calEvent) throws SystemException {
68 calEvent.setNew(true);
69
70 return calEventPersistence.update(calEvent, false);
71 }
72
73 public CalEvent createCalEvent(long eventId) {
74 return calEventPersistence.create(eventId);
75 }
76
77 public void deleteCalEvent(long eventId)
78 throws PortalException, SystemException {
79 calEventPersistence.remove(eventId);
80 }
81
82 public void deleteCalEvent(CalEvent calEvent) throws SystemException {
83 calEventPersistence.remove(calEvent);
84 }
85
86 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
87 throws SystemException {
88 return calEventPersistence.findWithDynamicQuery(dynamicQuery);
89 }
90
91 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
92 int end) throws SystemException {
93 return calEventPersistence.findWithDynamicQuery(dynamicQuery, start, end);
94 }
95
96 public CalEvent getCalEvent(long eventId)
97 throws PortalException, SystemException {
98 return calEventPersistence.findByPrimaryKey(eventId);
99 }
100
101 public List<CalEvent> getCalEvents(int start, int end)
102 throws SystemException {
103 return calEventPersistence.findAll(start, end);
104 }
105
106 public int getCalEventsCount() throws SystemException {
107 return calEventPersistence.countAll();
108 }
109
110 public CalEvent updateCalEvent(CalEvent calEvent) throws SystemException {
111 calEvent.setNew(false);
112
113 return calEventPersistence.update(calEvent, true);
114 }
115
116 public CalEvent updateCalEvent(CalEvent calEvent, boolean merge)
117 throws SystemException {
118 calEvent.setNew(false);
119
120 return calEventPersistence.update(calEvent, merge);
121 }
122
123 public CalEventLocalService getCalEventLocalService() {
124 return calEventLocalService;
125 }
126
127 public void setCalEventLocalService(
128 CalEventLocalService calEventLocalService) {
129 this.calEventLocalService = calEventLocalService;
130 }
131
132 public CalEventService getCalEventService() {
133 return calEventService;
134 }
135
136 public void setCalEventService(CalEventService calEventService) {
137 this.calEventService = calEventService;
138 }
139
140 public CalEventPersistence getCalEventPersistence() {
141 return calEventPersistence;
142 }
143
144 public void setCalEventPersistence(CalEventPersistence calEventPersistence) {
145 this.calEventPersistence = calEventPersistence;
146 }
147
148 public CalEventFinder getCalEventFinder() {
149 return calEventFinder;
150 }
151
152 public void setCalEventFinder(CalEventFinder calEventFinder) {
153 this.calEventFinder = calEventFinder;
154 }
155
156 public CounterLocalService getCounterLocalService() {
157 return counterLocalService;
158 }
159
160 public void setCounterLocalService(CounterLocalService counterLocalService) {
161 this.counterLocalService = counterLocalService;
162 }
163
164 public CounterService getCounterService() {
165 return counterService;
166 }
167
168 public void setCounterService(CounterService counterService) {
169 this.counterService = counterService;
170 }
171
172 public MailService getMailService() {
173 return mailService;
174 }
175
176 public void setMailService(MailService mailService) {
177 this.mailService = mailService;
178 }
179
180 public CompanyLocalService getCompanyLocalService() {
181 return companyLocalService;
182 }
183
184 public void setCompanyLocalService(CompanyLocalService companyLocalService) {
185 this.companyLocalService = companyLocalService;
186 }
187
188 public CompanyService getCompanyService() {
189 return companyService;
190 }
191
192 public void setCompanyService(CompanyService companyService) {
193 this.companyService = companyService;
194 }
195
196 public CompanyPersistence getCompanyPersistence() {
197 return companyPersistence;
198 }
199
200 public void setCompanyPersistence(CompanyPersistence companyPersistence) {
201 this.companyPersistence = companyPersistence;
202 }
203
204 public PortletPreferencesLocalService getPortletPreferencesLocalService() {
205 return portletPreferencesLocalService;
206 }
207
208 public void setPortletPreferencesLocalService(
209 PortletPreferencesLocalService portletPreferencesLocalService) {
210 this.portletPreferencesLocalService = portletPreferencesLocalService;
211 }
212
213 public PortletPreferencesService getPortletPreferencesService() {
214 return portletPreferencesService;
215 }
216
217 public void setPortletPreferencesService(
218 PortletPreferencesService portletPreferencesService) {
219 this.portletPreferencesService = portletPreferencesService;
220 }
221
222 public PortletPreferencesPersistence getPortletPreferencesPersistence() {
223 return portletPreferencesPersistence;
224 }
225
226 public void setPortletPreferencesPersistence(
227 PortletPreferencesPersistence portletPreferencesPersistence) {
228 this.portletPreferencesPersistence = portletPreferencesPersistence;
229 }
230
231 public PortletPreferencesFinder getPortletPreferencesFinder() {
232 return portletPreferencesFinder;
233 }
234
235 public void setPortletPreferencesFinder(
236 PortletPreferencesFinder portletPreferencesFinder) {
237 this.portletPreferencesFinder = portletPreferencesFinder;
238 }
239
240 public ResourceLocalService getResourceLocalService() {
241 return resourceLocalService;
242 }
243
244 public void setResourceLocalService(
245 ResourceLocalService resourceLocalService) {
246 this.resourceLocalService = resourceLocalService;
247 }
248
249 public ResourceService getResourceService() {
250 return resourceService;
251 }
252
253 public void setResourceService(ResourceService resourceService) {
254 this.resourceService = resourceService;
255 }
256
257 public ResourcePersistence getResourcePersistence() {
258 return resourcePersistence;
259 }
260
261 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
262 this.resourcePersistence = resourcePersistence;
263 }
264
265 public ResourceFinder getResourceFinder() {
266 return resourceFinder;
267 }
268
269 public void setResourceFinder(ResourceFinder resourceFinder) {
270 this.resourceFinder = resourceFinder;
271 }
272
273 public SocialActivityLocalService getSocialActivityLocalService() {
274 return socialActivityLocalService;
275 }
276
277 public void setSocialActivityLocalService(
278 SocialActivityLocalService socialActivityLocalService) {
279 this.socialActivityLocalService = socialActivityLocalService;
280 }
281
282 public SocialActivityPersistence getSocialActivityPersistence() {
283 return socialActivityPersistence;
284 }
285
286 public void setSocialActivityPersistence(
287 SocialActivityPersistence socialActivityPersistence) {
288 this.socialActivityPersistence = socialActivityPersistence;
289 }
290
291 public SocialActivityFinder getSocialActivityFinder() {
292 return socialActivityFinder;
293 }
294
295 public void setSocialActivityFinder(
296 SocialActivityFinder socialActivityFinder) {
297 this.socialActivityFinder = socialActivityFinder;
298 }
299
300 public UserLocalService getUserLocalService() {
301 return userLocalService;
302 }
303
304 public void setUserLocalService(UserLocalService userLocalService) {
305 this.userLocalService = userLocalService;
306 }
307
308 public UserService getUserService() {
309 return userService;
310 }
311
312 public void setUserService(UserService userService) {
313 this.userService = userService;
314 }
315
316 public UserPersistence getUserPersistence() {
317 return userPersistence;
318 }
319
320 public void setUserPersistence(UserPersistence userPersistence) {
321 this.userPersistence = userPersistence;
322 }
323
324 public UserFinder getUserFinder() {
325 return userFinder;
326 }
327
328 public void setUserFinder(UserFinder userFinder) {
329 this.userFinder = userFinder;
330 }
331
332 protected void runSQL(String sql) throws SystemException {
333 try {
334 PortalUtil.runSQL(sql);
335 }
336 catch (Exception e) {
337 throw new SystemException(e);
338 }
339 }
340
341 @BeanReference(name = "com.liferay.portlet.calendar.service.CalEventLocalService.impl")
342 protected CalEventLocalService calEventLocalService;
343 @BeanReference(name = "com.liferay.portlet.calendar.service.CalEventService.impl")
344 protected CalEventService calEventService;
345 @BeanReference(name = "com.liferay.portlet.calendar.service.persistence.CalEventPersistence.impl")
346 protected CalEventPersistence calEventPersistence;
347 @BeanReference(name = "com.liferay.portlet.calendar.service.persistence.CalEventFinder.impl")
348 protected CalEventFinder calEventFinder;
349 @BeanReference(name = "com.liferay.counter.service.CounterLocalService.impl")
350 protected CounterLocalService counterLocalService;
351 @BeanReference(name = "com.liferay.counter.service.CounterService.impl")
352 protected CounterService counterService;
353 @BeanReference(name = "com.liferay.mail.service.MailService.impl")
354 protected MailService mailService;
355 @BeanReference(name = "com.liferay.portal.service.CompanyLocalService.impl")
356 protected CompanyLocalService companyLocalService;
357 @BeanReference(name = "com.liferay.portal.service.CompanyService.impl")
358 protected CompanyService companyService;
359 @BeanReference(name = "com.liferay.portal.service.persistence.CompanyPersistence.impl")
360 protected CompanyPersistence companyPersistence;
361 @BeanReference(name = "com.liferay.portal.service.PortletPreferencesLocalService.impl")
362 protected PortletPreferencesLocalService portletPreferencesLocalService;
363 @BeanReference(name = "com.liferay.portal.service.PortletPreferencesService.impl")
364 protected PortletPreferencesService portletPreferencesService;
365 @BeanReference(name = "com.liferay.portal.service.persistence.PortletPreferencesPersistence.impl")
366 protected PortletPreferencesPersistence portletPreferencesPersistence;
367 @BeanReference(name = "com.liferay.portal.service.persistence.PortletPreferencesFinder.impl")
368 protected PortletPreferencesFinder portletPreferencesFinder;
369 @BeanReference(name = "com.liferay.portal.service.ResourceLocalService.impl")
370 protected ResourceLocalService resourceLocalService;
371 @BeanReference(name = "com.liferay.portal.service.ResourceService.impl")
372 protected ResourceService resourceService;
373 @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence.impl")
374 protected ResourcePersistence resourcePersistence;
375 @BeanReference(name = "com.liferay.portal.service.persistence.ResourceFinder.impl")
376 protected ResourceFinder resourceFinder;
377 @BeanReference(name = "com.liferay.portlet.social.service.SocialActivityLocalService.impl")
378 protected SocialActivityLocalService socialActivityLocalService;
379 @BeanReference(name = "com.liferay.portlet.social.service.persistence.SocialActivityPersistence.impl")
380 protected SocialActivityPersistence socialActivityPersistence;
381 @BeanReference(name = "com.liferay.portlet.social.service.persistence.SocialActivityFinder.impl")
382 protected SocialActivityFinder socialActivityFinder;
383 @BeanReference(name = "com.liferay.portal.service.UserLocalService.impl")
384 protected UserLocalService userLocalService;
385 @BeanReference(name = "com.liferay.portal.service.UserService.impl")
386 protected UserService userService;
387 @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
388 protected UserPersistence userPersistence;
389 @BeanReference(name = "com.liferay.portal.service.persistence.UserFinder.impl")
390 protected UserFinder userFinder;
391 }