1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.calendar.service.base;
16  
17  import com.liferay.counter.service.CounterLocalService;
18  
19  import com.liferay.mail.service.MailService;
20  
21  import com.liferay.portal.kernel.annotation.BeanReference;
22  import com.liferay.portal.kernel.dao.db.DB;
23  import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
24  import com.liferay.portal.kernel.exception.SystemException;
25  import com.liferay.portal.service.CompanyLocalService;
26  import com.liferay.portal.service.CompanyService;
27  import com.liferay.portal.service.GroupLocalService;
28  import com.liferay.portal.service.GroupService;
29  import com.liferay.portal.service.PortletPreferencesLocalService;
30  import com.liferay.portal.service.PortletPreferencesService;
31  import com.liferay.portal.service.ResourceLocalService;
32  import com.liferay.portal.service.ResourceService;
33  import com.liferay.portal.service.UserLocalService;
34  import com.liferay.portal.service.UserService;
35  import com.liferay.portal.service.base.PrincipalBean;
36  import com.liferay.portal.service.persistence.CompanyPersistence;
37  import com.liferay.portal.service.persistence.GroupFinder;
38  import com.liferay.portal.service.persistence.GroupPersistence;
39  import com.liferay.portal.service.persistence.PortletPreferencesFinder;
40  import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
41  import com.liferay.portal.service.persistence.ResourceFinder;
42  import com.liferay.portal.service.persistence.ResourcePersistence;
43  import com.liferay.portal.service.persistence.UserFinder;
44  import com.liferay.portal.service.persistence.UserPersistence;
45  
46  import com.liferay.portlet.asset.service.AssetEntryLocalService;
47  import com.liferay.portlet.asset.service.AssetEntryService;
48  import com.liferay.portlet.asset.service.AssetTagLocalService;
49  import com.liferay.portlet.asset.service.AssetTagService;
50  import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
51  import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
52  import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
53  import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
54  import com.liferay.portlet.calendar.service.CalEventLocalService;
55  import com.liferay.portlet.calendar.service.CalEventService;
56  import com.liferay.portlet.calendar.service.persistence.CalEventFinder;
57  import com.liferay.portlet.calendar.service.persistence.CalEventPersistence;
58  import com.liferay.portlet.expando.service.ExpandoValueLocalService;
59  import com.liferay.portlet.expando.service.ExpandoValueService;
60  import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
61  import com.liferay.portlet.social.service.SocialActivityLocalService;
62  import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
63  import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
64  
65  /**
66   * <a href="CalEventServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
67   *
68   * @author Brian Wing Shun Chan
69   */
70  public abstract class CalEventServiceBaseImpl extends PrincipalBean
71      implements CalEventService {
72      public CalEventLocalService getCalEventLocalService() {
73          return calEventLocalService;
74      }
75  
76      public void setCalEventLocalService(
77          CalEventLocalService calEventLocalService) {
78          this.calEventLocalService = calEventLocalService;
79      }
80  
81      public CalEventService getCalEventService() {
82          return calEventService;
83      }
84  
85      public void setCalEventService(CalEventService calEventService) {
86          this.calEventService = calEventService;
87      }
88  
89      public CalEventPersistence getCalEventPersistence() {
90          return calEventPersistence;
91      }
92  
93      public void setCalEventPersistence(CalEventPersistence calEventPersistence) {
94          this.calEventPersistence = calEventPersistence;
95      }
96  
97      public CalEventFinder getCalEventFinder() {
98          return calEventFinder;
99      }
100 
101     public void setCalEventFinder(CalEventFinder calEventFinder) {
102         this.calEventFinder = calEventFinder;
103     }
104 
105     public CounterLocalService getCounterLocalService() {
106         return counterLocalService;
107     }
108 
109     public void setCounterLocalService(CounterLocalService counterLocalService) {
110         this.counterLocalService = counterLocalService;
111     }
112 
113     public MailService getMailService() {
114         return mailService;
115     }
116 
117     public void setMailService(MailService mailService) {
118         this.mailService = mailService;
119     }
120 
121     public CompanyLocalService getCompanyLocalService() {
122         return companyLocalService;
123     }
124 
125     public void setCompanyLocalService(CompanyLocalService companyLocalService) {
126         this.companyLocalService = companyLocalService;
127     }
128 
129     public CompanyService getCompanyService() {
130         return companyService;
131     }
132 
133     public void setCompanyService(CompanyService companyService) {
134         this.companyService = companyService;
135     }
136 
137     public CompanyPersistence getCompanyPersistence() {
138         return companyPersistence;
139     }
140 
141     public void setCompanyPersistence(CompanyPersistence companyPersistence) {
142         this.companyPersistence = companyPersistence;
143     }
144 
145     public GroupLocalService getGroupLocalService() {
146         return groupLocalService;
147     }
148 
149     public void setGroupLocalService(GroupLocalService groupLocalService) {
150         this.groupLocalService = groupLocalService;
151     }
152 
153     public GroupService getGroupService() {
154         return groupService;
155     }
156 
157     public void setGroupService(GroupService groupService) {
158         this.groupService = groupService;
159     }
160 
161     public GroupPersistence getGroupPersistence() {
162         return groupPersistence;
163     }
164 
165     public void setGroupPersistence(GroupPersistence groupPersistence) {
166         this.groupPersistence = groupPersistence;
167     }
168 
169     public GroupFinder getGroupFinder() {
170         return groupFinder;
171     }
172 
173     public void setGroupFinder(GroupFinder groupFinder) {
174         this.groupFinder = groupFinder;
175     }
176 
177     public PortletPreferencesLocalService getPortletPreferencesLocalService() {
178         return portletPreferencesLocalService;
179     }
180 
181     public void setPortletPreferencesLocalService(
182         PortletPreferencesLocalService portletPreferencesLocalService) {
183         this.portletPreferencesLocalService = portletPreferencesLocalService;
184     }
185 
186     public PortletPreferencesService getPortletPreferencesService() {
187         return portletPreferencesService;
188     }
189 
190     public void setPortletPreferencesService(
191         PortletPreferencesService portletPreferencesService) {
192         this.portletPreferencesService = portletPreferencesService;
193     }
194 
195     public PortletPreferencesPersistence getPortletPreferencesPersistence() {
196         return portletPreferencesPersistence;
197     }
198 
199     public void setPortletPreferencesPersistence(
200         PortletPreferencesPersistence portletPreferencesPersistence) {
201         this.portletPreferencesPersistence = portletPreferencesPersistence;
202     }
203 
204     public PortletPreferencesFinder getPortletPreferencesFinder() {
205         return portletPreferencesFinder;
206     }
207 
208     public void setPortletPreferencesFinder(
209         PortletPreferencesFinder portletPreferencesFinder) {
210         this.portletPreferencesFinder = portletPreferencesFinder;
211     }
212 
213     public ResourceLocalService getResourceLocalService() {
214         return resourceLocalService;
215     }
216 
217     public void setResourceLocalService(
218         ResourceLocalService resourceLocalService) {
219         this.resourceLocalService = resourceLocalService;
220     }
221 
222     public ResourceService getResourceService() {
223         return resourceService;
224     }
225 
226     public void setResourceService(ResourceService resourceService) {
227         this.resourceService = resourceService;
228     }
229 
230     public ResourcePersistence getResourcePersistence() {
231         return resourcePersistence;
232     }
233 
234     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
235         this.resourcePersistence = resourcePersistence;
236     }
237 
238     public ResourceFinder getResourceFinder() {
239         return resourceFinder;
240     }
241 
242     public void setResourceFinder(ResourceFinder resourceFinder) {
243         this.resourceFinder = resourceFinder;
244     }
245 
246     public UserLocalService getUserLocalService() {
247         return userLocalService;
248     }
249 
250     public void setUserLocalService(UserLocalService userLocalService) {
251         this.userLocalService = userLocalService;
252     }
253 
254     public UserService getUserService() {
255         return userService;
256     }
257 
258     public void setUserService(UserService userService) {
259         this.userService = userService;
260     }
261 
262     public UserPersistence getUserPersistence() {
263         return userPersistence;
264     }
265 
266     public void setUserPersistence(UserPersistence userPersistence) {
267         this.userPersistence = userPersistence;
268     }
269 
270     public UserFinder getUserFinder() {
271         return userFinder;
272     }
273 
274     public void setUserFinder(UserFinder userFinder) {
275         this.userFinder = userFinder;
276     }
277 
278     public AssetEntryLocalService getAssetEntryLocalService() {
279         return assetEntryLocalService;
280     }
281 
282     public void setAssetEntryLocalService(
283         AssetEntryLocalService assetEntryLocalService) {
284         this.assetEntryLocalService = assetEntryLocalService;
285     }
286 
287     public AssetEntryService getAssetEntryService() {
288         return assetEntryService;
289     }
290 
291     public void setAssetEntryService(AssetEntryService assetEntryService) {
292         this.assetEntryService = assetEntryService;
293     }
294 
295     public AssetEntryPersistence getAssetEntryPersistence() {
296         return assetEntryPersistence;
297     }
298 
299     public void setAssetEntryPersistence(
300         AssetEntryPersistence assetEntryPersistence) {
301         this.assetEntryPersistence = assetEntryPersistence;
302     }
303 
304     public AssetEntryFinder getAssetEntryFinder() {
305         return assetEntryFinder;
306     }
307 
308     public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
309         this.assetEntryFinder = assetEntryFinder;
310     }
311 
312     public AssetTagLocalService getAssetTagLocalService() {
313         return assetTagLocalService;
314     }
315 
316     public void setAssetTagLocalService(
317         AssetTagLocalService assetTagLocalService) {
318         this.assetTagLocalService = assetTagLocalService;
319     }
320 
321     public AssetTagService getAssetTagService() {
322         return assetTagService;
323     }
324 
325     public void setAssetTagService(AssetTagService assetTagService) {
326         this.assetTagService = assetTagService;
327     }
328 
329     public AssetTagPersistence getAssetTagPersistence() {
330         return assetTagPersistence;
331     }
332 
333     public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
334         this.assetTagPersistence = assetTagPersistence;
335     }
336 
337     public AssetTagFinder getAssetTagFinder() {
338         return assetTagFinder;
339     }
340 
341     public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
342         this.assetTagFinder = assetTagFinder;
343     }
344 
345     public ExpandoValueLocalService getExpandoValueLocalService() {
346         return expandoValueLocalService;
347     }
348 
349     public void setExpandoValueLocalService(
350         ExpandoValueLocalService expandoValueLocalService) {
351         this.expandoValueLocalService = expandoValueLocalService;
352     }
353 
354     public ExpandoValueService getExpandoValueService() {
355         return expandoValueService;
356     }
357 
358     public void setExpandoValueService(ExpandoValueService expandoValueService) {
359         this.expandoValueService = expandoValueService;
360     }
361 
362     public ExpandoValuePersistence getExpandoValuePersistence() {
363         return expandoValuePersistence;
364     }
365 
366     public void setExpandoValuePersistence(
367         ExpandoValuePersistence expandoValuePersistence) {
368         this.expandoValuePersistence = expandoValuePersistence;
369     }
370 
371     public SocialActivityLocalService getSocialActivityLocalService() {
372         return socialActivityLocalService;
373     }
374 
375     public void setSocialActivityLocalService(
376         SocialActivityLocalService socialActivityLocalService) {
377         this.socialActivityLocalService = socialActivityLocalService;
378     }
379 
380     public SocialActivityPersistence getSocialActivityPersistence() {
381         return socialActivityPersistence;
382     }
383 
384     public void setSocialActivityPersistence(
385         SocialActivityPersistence socialActivityPersistence) {
386         this.socialActivityPersistence = socialActivityPersistence;
387     }
388 
389     public SocialActivityFinder getSocialActivityFinder() {
390         return socialActivityFinder;
391     }
392 
393     public void setSocialActivityFinder(
394         SocialActivityFinder socialActivityFinder) {
395         this.socialActivityFinder = socialActivityFinder;
396     }
397 
398     protected void runSQL(String sql) throws SystemException {
399         try {
400             DB db = DBFactoryUtil.getDB();
401 
402             db.runSQL(sql);
403         }
404         catch (Exception e) {
405             throw new SystemException(e);
406         }
407     }
408 
409     @BeanReference(type = CalEventLocalService.class)
410     protected CalEventLocalService calEventLocalService;
411     @BeanReference(type = CalEventService.class)
412     protected CalEventService calEventService;
413     @BeanReference(type = CalEventPersistence.class)
414     protected CalEventPersistence calEventPersistence;
415     @BeanReference(type = CalEventFinder.class)
416     protected CalEventFinder calEventFinder;
417     @BeanReference(type = CounterLocalService.class)
418     protected CounterLocalService counterLocalService;
419     @BeanReference(type = MailService.class)
420     protected MailService mailService;
421     @BeanReference(type = CompanyLocalService.class)
422     protected CompanyLocalService companyLocalService;
423     @BeanReference(type = CompanyService.class)
424     protected CompanyService companyService;
425     @BeanReference(type = CompanyPersistence.class)
426     protected CompanyPersistence companyPersistence;
427     @BeanReference(type = GroupLocalService.class)
428     protected GroupLocalService groupLocalService;
429     @BeanReference(type = GroupService.class)
430     protected GroupService groupService;
431     @BeanReference(type = GroupPersistence.class)
432     protected GroupPersistence groupPersistence;
433     @BeanReference(type = GroupFinder.class)
434     protected GroupFinder groupFinder;
435     @BeanReference(type = PortletPreferencesLocalService.class)
436     protected PortletPreferencesLocalService portletPreferencesLocalService;
437     @BeanReference(type = PortletPreferencesService.class)
438     protected PortletPreferencesService portletPreferencesService;
439     @BeanReference(type = PortletPreferencesPersistence.class)
440     protected PortletPreferencesPersistence portletPreferencesPersistence;
441     @BeanReference(type = PortletPreferencesFinder.class)
442     protected PortletPreferencesFinder portletPreferencesFinder;
443     @BeanReference(type = ResourceLocalService.class)
444     protected ResourceLocalService resourceLocalService;
445     @BeanReference(type = ResourceService.class)
446     protected ResourceService resourceService;
447     @BeanReference(type = ResourcePersistence.class)
448     protected ResourcePersistence resourcePersistence;
449     @BeanReference(type = ResourceFinder.class)
450     protected ResourceFinder resourceFinder;
451     @BeanReference(type = UserLocalService.class)
452     protected UserLocalService userLocalService;
453     @BeanReference(type = UserService.class)
454     protected UserService userService;
455     @BeanReference(type = UserPersistence.class)
456     protected UserPersistence userPersistence;
457     @BeanReference(type = UserFinder.class)
458     protected UserFinder userFinder;
459     @BeanReference(type = AssetEntryLocalService.class)
460     protected AssetEntryLocalService assetEntryLocalService;
461     @BeanReference(type = AssetEntryService.class)
462     protected AssetEntryService assetEntryService;
463     @BeanReference(type = AssetEntryPersistence.class)
464     protected AssetEntryPersistence assetEntryPersistence;
465     @BeanReference(type = AssetEntryFinder.class)
466     protected AssetEntryFinder assetEntryFinder;
467     @BeanReference(type = AssetTagLocalService.class)
468     protected AssetTagLocalService assetTagLocalService;
469     @BeanReference(type = AssetTagService.class)
470     protected AssetTagService assetTagService;
471     @BeanReference(type = AssetTagPersistence.class)
472     protected AssetTagPersistence assetTagPersistence;
473     @BeanReference(type = AssetTagFinder.class)
474     protected AssetTagFinder assetTagFinder;
475     @BeanReference(type = ExpandoValueLocalService.class)
476     protected ExpandoValueLocalService expandoValueLocalService;
477     @BeanReference(type = ExpandoValueService.class)
478     protected ExpandoValueService expandoValueService;
479     @BeanReference(type = ExpandoValuePersistence.class)
480     protected ExpandoValuePersistence expandoValuePersistence;
481     @BeanReference(type = SocialActivityLocalService.class)
482     protected SocialActivityLocalService socialActivityLocalService;
483     @BeanReference(type = SocialActivityPersistence.class)
484     protected SocialActivityPersistence socialActivityPersistence;
485     @BeanReference(type = SocialActivityFinder.class)
486     protected SocialActivityFinder socialActivityFinder;
487 }