1
14
15 package com.liferay.portlet.calendar.service.base;
16
17 import com.liferay.counter.service.CounterLocalService;
18 import com.liferay.counter.service.CounterService;
19
20 import com.liferay.mail.service.MailService;
21
22 import com.liferay.portal.kernel.annotation.BeanReference;
23 import com.liferay.portal.kernel.dao.db.DB;
24 import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
25 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
26 import com.liferay.portal.kernel.exception.PortalException;
27 import com.liferay.portal.kernel.exception.SystemException;
28 import com.liferay.portal.service.CompanyLocalService;
29 import com.liferay.portal.service.CompanyService;
30 import com.liferay.portal.service.GroupLocalService;
31 import com.liferay.portal.service.GroupService;
32 import com.liferay.portal.service.PortletPreferencesLocalService;
33 import com.liferay.portal.service.PortletPreferencesService;
34 import com.liferay.portal.service.ResourceLocalService;
35 import com.liferay.portal.service.ResourceService;
36 import com.liferay.portal.service.UserLocalService;
37 import com.liferay.portal.service.UserService;
38 import com.liferay.portal.service.persistence.CompanyPersistence;
39 import com.liferay.portal.service.persistence.GroupFinder;
40 import com.liferay.portal.service.persistence.GroupPersistence;
41 import com.liferay.portal.service.persistence.PortletPreferencesFinder;
42 import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
43 import com.liferay.portal.service.persistence.ResourceFinder;
44 import com.liferay.portal.service.persistence.ResourcePersistence;
45 import com.liferay.portal.service.persistence.UserFinder;
46 import com.liferay.portal.service.persistence.UserPersistence;
47
48 import com.liferay.portlet.asset.service.AssetEntryLocalService;
49 import com.liferay.portlet.asset.service.AssetEntryService;
50 import com.liferay.portlet.asset.service.AssetTagLocalService;
51 import com.liferay.portlet.asset.service.AssetTagService;
52 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
53 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
54 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
55 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
56 import com.liferay.portlet.calendar.model.CalEvent;
57 import com.liferay.portlet.calendar.service.CalEventLocalService;
58 import com.liferay.portlet.calendar.service.CalEventService;
59 import com.liferay.portlet.calendar.service.persistence.CalEventFinder;
60 import com.liferay.portlet.calendar.service.persistence.CalEventPersistence;
61 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
62 import com.liferay.portlet.expando.service.ExpandoValueService;
63 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
64 import com.liferay.portlet.social.service.SocialActivityLocalService;
65 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
66 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
67
68 import java.util.List;
69
70
76 public abstract class CalEventLocalServiceBaseImpl
77 implements CalEventLocalService {
78 public CalEvent addCalEvent(CalEvent calEvent) throws SystemException {
79 calEvent.setNew(true);
80
81 return calEventPersistence.update(calEvent, false);
82 }
83
84 public CalEvent createCalEvent(long eventId) {
85 return calEventPersistence.create(eventId);
86 }
87
88 public void deleteCalEvent(long eventId)
89 throws PortalException, SystemException {
90 calEventPersistence.remove(eventId);
91 }
92
93 public void deleteCalEvent(CalEvent calEvent) throws SystemException {
94 calEventPersistence.remove(calEvent);
95 }
96
97 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
98 throws SystemException {
99 return calEventPersistence.findWithDynamicQuery(dynamicQuery);
100 }
101
102 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
103 int end) throws SystemException {
104 return calEventPersistence.findWithDynamicQuery(dynamicQuery, start, end);
105 }
106
107 public CalEvent getCalEvent(long eventId)
108 throws PortalException, SystemException {
109 return calEventPersistence.findByPrimaryKey(eventId);
110 }
111
112 public List<CalEvent> getCalEvents(int start, int end)
113 throws SystemException {
114 return calEventPersistence.findAll(start, end);
115 }
116
117 public int getCalEventsCount() throws SystemException {
118 return calEventPersistence.countAll();
119 }
120
121 public CalEvent updateCalEvent(CalEvent calEvent) throws SystemException {
122 calEvent.setNew(false);
123
124 return calEventPersistence.update(calEvent, true);
125 }
126
127 public CalEvent updateCalEvent(CalEvent calEvent, boolean merge)
128 throws SystemException {
129 calEvent.setNew(false);
130
131 return calEventPersistence.update(calEvent, merge);
132 }
133
134 public CalEventLocalService getCalEventLocalService() {
135 return calEventLocalService;
136 }
137
138 public void setCalEventLocalService(
139 CalEventLocalService calEventLocalService) {
140 this.calEventLocalService = calEventLocalService;
141 }
142
143 public CalEventService getCalEventService() {
144 return calEventService;
145 }
146
147 public void setCalEventService(CalEventService calEventService) {
148 this.calEventService = calEventService;
149 }
150
151 public CalEventPersistence getCalEventPersistence() {
152 return calEventPersistence;
153 }
154
155 public void setCalEventPersistence(CalEventPersistence calEventPersistence) {
156 this.calEventPersistence = calEventPersistence;
157 }
158
159 public CalEventFinder getCalEventFinder() {
160 return calEventFinder;
161 }
162
163 public void setCalEventFinder(CalEventFinder calEventFinder) {
164 this.calEventFinder = calEventFinder;
165 }
166
167 public CounterLocalService getCounterLocalService() {
168 return counterLocalService;
169 }
170
171 public void setCounterLocalService(CounterLocalService counterLocalService) {
172 this.counterLocalService = counterLocalService;
173 }
174
175 public CounterService getCounterService() {
176 return counterService;
177 }
178
179 public void setCounterService(CounterService counterService) {
180 this.counterService = counterService;
181 }
182
183 public MailService getMailService() {
184 return mailService;
185 }
186
187 public void setMailService(MailService mailService) {
188 this.mailService = mailService;
189 }
190
191 public CompanyLocalService getCompanyLocalService() {
192 return companyLocalService;
193 }
194
195 public void setCompanyLocalService(CompanyLocalService companyLocalService) {
196 this.companyLocalService = companyLocalService;
197 }
198
199 public CompanyService getCompanyService() {
200 return companyService;
201 }
202
203 public void setCompanyService(CompanyService companyService) {
204 this.companyService = companyService;
205 }
206
207 public CompanyPersistence getCompanyPersistence() {
208 return companyPersistence;
209 }
210
211 public void setCompanyPersistence(CompanyPersistence companyPersistence) {
212 this.companyPersistence = companyPersistence;
213 }
214
215 public GroupLocalService getGroupLocalService() {
216 return groupLocalService;
217 }
218
219 public void setGroupLocalService(GroupLocalService groupLocalService) {
220 this.groupLocalService = groupLocalService;
221 }
222
223 public GroupService getGroupService() {
224 return groupService;
225 }
226
227 public void setGroupService(GroupService groupService) {
228 this.groupService = groupService;
229 }
230
231 public GroupPersistence getGroupPersistence() {
232 return groupPersistence;
233 }
234
235 public void setGroupPersistence(GroupPersistence groupPersistence) {
236 this.groupPersistence = groupPersistence;
237 }
238
239 public GroupFinder getGroupFinder() {
240 return groupFinder;
241 }
242
243 public void setGroupFinder(GroupFinder groupFinder) {
244 this.groupFinder = groupFinder;
245 }
246
247 public PortletPreferencesLocalService getPortletPreferencesLocalService() {
248 return portletPreferencesLocalService;
249 }
250
251 public void setPortletPreferencesLocalService(
252 PortletPreferencesLocalService portletPreferencesLocalService) {
253 this.portletPreferencesLocalService = portletPreferencesLocalService;
254 }
255
256 public PortletPreferencesService getPortletPreferencesService() {
257 return portletPreferencesService;
258 }
259
260 public void setPortletPreferencesService(
261 PortletPreferencesService portletPreferencesService) {
262 this.portletPreferencesService = portletPreferencesService;
263 }
264
265 public PortletPreferencesPersistence getPortletPreferencesPersistence() {
266 return portletPreferencesPersistence;
267 }
268
269 public void setPortletPreferencesPersistence(
270 PortletPreferencesPersistence portletPreferencesPersistence) {
271 this.portletPreferencesPersistence = portletPreferencesPersistence;
272 }
273
274 public PortletPreferencesFinder getPortletPreferencesFinder() {
275 return portletPreferencesFinder;
276 }
277
278 public void setPortletPreferencesFinder(
279 PortletPreferencesFinder portletPreferencesFinder) {
280 this.portletPreferencesFinder = portletPreferencesFinder;
281 }
282
283 public ResourceLocalService getResourceLocalService() {
284 return resourceLocalService;
285 }
286
287 public void setResourceLocalService(
288 ResourceLocalService resourceLocalService) {
289 this.resourceLocalService = resourceLocalService;
290 }
291
292 public ResourceService getResourceService() {
293 return resourceService;
294 }
295
296 public void setResourceService(ResourceService resourceService) {
297 this.resourceService = resourceService;
298 }
299
300 public ResourcePersistence getResourcePersistence() {
301 return resourcePersistence;
302 }
303
304 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
305 this.resourcePersistence = resourcePersistence;
306 }
307
308 public ResourceFinder getResourceFinder() {
309 return resourceFinder;
310 }
311
312 public void setResourceFinder(ResourceFinder resourceFinder) {
313 this.resourceFinder = resourceFinder;
314 }
315
316 public UserLocalService getUserLocalService() {
317 return userLocalService;
318 }
319
320 public void setUserLocalService(UserLocalService userLocalService) {
321 this.userLocalService = userLocalService;
322 }
323
324 public UserService getUserService() {
325 return userService;
326 }
327
328 public void setUserService(UserService userService) {
329 this.userService = userService;
330 }
331
332 public UserPersistence getUserPersistence() {
333 return userPersistence;
334 }
335
336 public void setUserPersistence(UserPersistence userPersistence) {
337 this.userPersistence = userPersistence;
338 }
339
340 public UserFinder getUserFinder() {
341 return userFinder;
342 }
343
344 public void setUserFinder(UserFinder userFinder) {
345 this.userFinder = userFinder;
346 }
347
348 public AssetEntryLocalService getAssetEntryLocalService() {
349 return assetEntryLocalService;
350 }
351
352 public void setAssetEntryLocalService(
353 AssetEntryLocalService assetEntryLocalService) {
354 this.assetEntryLocalService = assetEntryLocalService;
355 }
356
357 public AssetEntryService getAssetEntryService() {
358 return assetEntryService;
359 }
360
361 public void setAssetEntryService(AssetEntryService assetEntryService) {
362 this.assetEntryService = assetEntryService;
363 }
364
365 public AssetEntryPersistence getAssetEntryPersistence() {
366 return assetEntryPersistence;
367 }
368
369 public void setAssetEntryPersistence(
370 AssetEntryPersistence assetEntryPersistence) {
371 this.assetEntryPersistence = assetEntryPersistence;
372 }
373
374 public AssetEntryFinder getAssetEntryFinder() {
375 return assetEntryFinder;
376 }
377
378 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
379 this.assetEntryFinder = assetEntryFinder;
380 }
381
382 public AssetTagLocalService getAssetTagLocalService() {
383 return assetTagLocalService;
384 }
385
386 public void setAssetTagLocalService(
387 AssetTagLocalService assetTagLocalService) {
388 this.assetTagLocalService = assetTagLocalService;
389 }
390
391 public AssetTagService getAssetTagService() {
392 return assetTagService;
393 }
394
395 public void setAssetTagService(AssetTagService assetTagService) {
396 this.assetTagService = assetTagService;
397 }
398
399 public AssetTagPersistence getAssetTagPersistence() {
400 return assetTagPersistence;
401 }
402
403 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
404 this.assetTagPersistence = assetTagPersistence;
405 }
406
407 public AssetTagFinder getAssetTagFinder() {
408 return assetTagFinder;
409 }
410
411 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
412 this.assetTagFinder = assetTagFinder;
413 }
414
415 public ExpandoValueLocalService getExpandoValueLocalService() {
416 return expandoValueLocalService;
417 }
418
419 public void setExpandoValueLocalService(
420 ExpandoValueLocalService expandoValueLocalService) {
421 this.expandoValueLocalService = expandoValueLocalService;
422 }
423
424 public ExpandoValueService getExpandoValueService() {
425 return expandoValueService;
426 }
427
428 public void setExpandoValueService(ExpandoValueService expandoValueService) {
429 this.expandoValueService = expandoValueService;
430 }
431
432 public ExpandoValuePersistence getExpandoValuePersistence() {
433 return expandoValuePersistence;
434 }
435
436 public void setExpandoValuePersistence(
437 ExpandoValuePersistence expandoValuePersistence) {
438 this.expandoValuePersistence = expandoValuePersistence;
439 }
440
441 public SocialActivityLocalService getSocialActivityLocalService() {
442 return socialActivityLocalService;
443 }
444
445 public void setSocialActivityLocalService(
446 SocialActivityLocalService socialActivityLocalService) {
447 this.socialActivityLocalService = socialActivityLocalService;
448 }
449
450 public SocialActivityPersistence getSocialActivityPersistence() {
451 return socialActivityPersistence;
452 }
453
454 public void setSocialActivityPersistence(
455 SocialActivityPersistence socialActivityPersistence) {
456 this.socialActivityPersistence = socialActivityPersistence;
457 }
458
459 public SocialActivityFinder getSocialActivityFinder() {
460 return socialActivityFinder;
461 }
462
463 public void setSocialActivityFinder(
464 SocialActivityFinder socialActivityFinder) {
465 this.socialActivityFinder = socialActivityFinder;
466 }
467
468 protected void runSQL(String sql) throws SystemException {
469 try {
470 DB db = DBFactoryUtil.getDB();
471
472 db.runSQL(sql);
473 }
474 catch (Exception e) {
475 throw new SystemException(e);
476 }
477 }
478
479 @BeanReference(name = "com.liferay.portlet.calendar.service.CalEventLocalService")
480 protected CalEventLocalService calEventLocalService;
481 @BeanReference(name = "com.liferay.portlet.calendar.service.CalEventService")
482 protected CalEventService calEventService;
483 @BeanReference(name = "com.liferay.portlet.calendar.service.persistence.CalEventPersistence")
484 protected CalEventPersistence calEventPersistence;
485 @BeanReference(name = "com.liferay.portlet.calendar.service.persistence.CalEventFinder")
486 protected CalEventFinder calEventFinder;
487 @BeanReference(name = "com.liferay.counter.service.CounterLocalService")
488 protected CounterLocalService counterLocalService;
489 @BeanReference(name = "com.liferay.counter.service.CounterService")
490 protected CounterService counterService;
491 @BeanReference(name = "com.liferay.mail.service.MailService")
492 protected MailService mailService;
493 @BeanReference(name = "com.liferay.portal.service.CompanyLocalService")
494 protected CompanyLocalService companyLocalService;
495 @BeanReference(name = "com.liferay.portal.service.CompanyService")
496 protected CompanyService companyService;
497 @BeanReference(name = "com.liferay.portal.service.persistence.CompanyPersistence")
498 protected CompanyPersistence companyPersistence;
499 @BeanReference(name = "com.liferay.portal.service.GroupLocalService")
500 protected GroupLocalService groupLocalService;
501 @BeanReference(name = "com.liferay.portal.service.GroupService")
502 protected GroupService groupService;
503 @BeanReference(name = "com.liferay.portal.service.persistence.GroupPersistence")
504 protected GroupPersistence groupPersistence;
505 @BeanReference(name = "com.liferay.portal.service.persistence.GroupFinder")
506 protected GroupFinder groupFinder;
507 @BeanReference(name = "com.liferay.portal.service.PortletPreferencesLocalService")
508 protected PortletPreferencesLocalService portletPreferencesLocalService;
509 @BeanReference(name = "com.liferay.portal.service.PortletPreferencesService")
510 protected PortletPreferencesService portletPreferencesService;
511 @BeanReference(name = "com.liferay.portal.service.persistence.PortletPreferencesPersistence")
512 protected PortletPreferencesPersistence portletPreferencesPersistence;
513 @BeanReference(name = "com.liferay.portal.service.persistence.PortletPreferencesFinder")
514 protected PortletPreferencesFinder portletPreferencesFinder;
515 @BeanReference(name = "com.liferay.portal.service.ResourceLocalService")
516 protected ResourceLocalService resourceLocalService;
517 @BeanReference(name = "com.liferay.portal.service.ResourceService")
518 protected ResourceService resourceService;
519 @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence")
520 protected ResourcePersistence resourcePersistence;
521 @BeanReference(name = "com.liferay.portal.service.persistence.ResourceFinder")
522 protected ResourceFinder resourceFinder;
523 @BeanReference(name = "com.liferay.portal.service.UserLocalService")
524 protected UserLocalService userLocalService;
525 @BeanReference(name = "com.liferay.portal.service.UserService")
526 protected UserService userService;
527 @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence")
528 protected UserPersistence userPersistence;
529 @BeanReference(name = "com.liferay.portal.service.persistence.UserFinder")
530 protected UserFinder userFinder;
531 @BeanReference(name = "com.liferay.portlet.asset.service.AssetEntryLocalService")
532 protected AssetEntryLocalService assetEntryLocalService;
533 @BeanReference(name = "com.liferay.portlet.asset.service.AssetEntryService")
534 protected AssetEntryService assetEntryService;
535 @BeanReference(name = "com.liferay.portlet.asset.service.persistence.AssetEntryPersistence")
536 protected AssetEntryPersistence assetEntryPersistence;
537 @BeanReference(name = "com.liferay.portlet.asset.service.persistence.AssetEntryFinder")
538 protected AssetEntryFinder assetEntryFinder;
539 @BeanReference(name = "com.liferay.portlet.asset.service.AssetTagLocalService")
540 protected AssetTagLocalService assetTagLocalService;
541 @BeanReference(name = "com.liferay.portlet.asset.service.AssetTagService")
542 protected AssetTagService assetTagService;
543 @BeanReference(name = "com.liferay.portlet.asset.service.persistence.AssetTagPersistence")
544 protected AssetTagPersistence assetTagPersistence;
545 @BeanReference(name = "com.liferay.portlet.asset.service.persistence.AssetTagFinder")
546 protected AssetTagFinder assetTagFinder;
547 @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoValueLocalService")
548 protected ExpandoValueLocalService expandoValueLocalService;
549 @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoValueService")
550 protected ExpandoValueService expandoValueService;
551 @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence")
552 protected ExpandoValuePersistence expandoValuePersistence;
553 @BeanReference(name = "com.liferay.portlet.social.service.SocialActivityLocalService")
554 protected SocialActivityLocalService socialActivityLocalService;
555 @BeanReference(name = "com.liferay.portlet.social.service.persistence.SocialActivityPersistence")
556 protected SocialActivityPersistence socialActivityPersistence;
557 @BeanReference(name = "com.liferay.portlet.social.service.persistence.SocialActivityFinder")
558 protected SocialActivityFinder socialActivityFinder;
559 }