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.jdbc.SqlUpdate;
23  import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
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  import javax.sql.DataSource;
66  
67  /**
68   * <a href="CalEventServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
69   *
70   * @author Brian Wing Shun Chan
71   */
72  public abstract class CalEventServiceBaseImpl extends PrincipalBean
73      implements CalEventService {
74      public CalEventLocalService getCalEventLocalService() {
75          return calEventLocalService;
76      }
77  
78      public void setCalEventLocalService(
79          CalEventLocalService calEventLocalService) {
80          this.calEventLocalService = calEventLocalService;
81      }
82  
83      public CalEventService getCalEventService() {
84          return calEventService;
85      }
86  
87      public void setCalEventService(CalEventService calEventService) {
88          this.calEventService = calEventService;
89      }
90  
91      public CalEventPersistence getCalEventPersistence() {
92          return calEventPersistence;
93      }
94  
95      public void setCalEventPersistence(CalEventPersistence calEventPersistence) {
96          this.calEventPersistence = calEventPersistence;
97      }
98  
99      public CalEventFinder getCalEventFinder() {
100         return calEventFinder;
101     }
102 
103     public void setCalEventFinder(CalEventFinder calEventFinder) {
104         this.calEventFinder = calEventFinder;
105     }
106 
107     public CounterLocalService getCounterLocalService() {
108         return counterLocalService;
109     }
110 
111     public void setCounterLocalService(CounterLocalService counterLocalService) {
112         this.counterLocalService = counterLocalService;
113     }
114 
115     public MailService getMailService() {
116         return mailService;
117     }
118 
119     public void setMailService(MailService mailService) {
120         this.mailService = mailService;
121     }
122 
123     public CompanyLocalService getCompanyLocalService() {
124         return companyLocalService;
125     }
126 
127     public void setCompanyLocalService(CompanyLocalService companyLocalService) {
128         this.companyLocalService = companyLocalService;
129     }
130 
131     public CompanyService getCompanyService() {
132         return companyService;
133     }
134 
135     public void setCompanyService(CompanyService companyService) {
136         this.companyService = companyService;
137     }
138 
139     public CompanyPersistence getCompanyPersistence() {
140         return companyPersistence;
141     }
142 
143     public void setCompanyPersistence(CompanyPersistence companyPersistence) {
144         this.companyPersistence = companyPersistence;
145     }
146 
147     public GroupLocalService getGroupLocalService() {
148         return groupLocalService;
149     }
150 
151     public void setGroupLocalService(GroupLocalService groupLocalService) {
152         this.groupLocalService = groupLocalService;
153     }
154 
155     public GroupService getGroupService() {
156         return groupService;
157     }
158 
159     public void setGroupService(GroupService groupService) {
160         this.groupService = groupService;
161     }
162 
163     public GroupPersistence getGroupPersistence() {
164         return groupPersistence;
165     }
166 
167     public void setGroupPersistence(GroupPersistence groupPersistence) {
168         this.groupPersistence = groupPersistence;
169     }
170 
171     public GroupFinder getGroupFinder() {
172         return groupFinder;
173     }
174 
175     public void setGroupFinder(GroupFinder groupFinder) {
176         this.groupFinder = groupFinder;
177     }
178 
179     public PortletPreferencesLocalService getPortletPreferencesLocalService() {
180         return portletPreferencesLocalService;
181     }
182 
183     public void setPortletPreferencesLocalService(
184         PortletPreferencesLocalService portletPreferencesLocalService) {
185         this.portletPreferencesLocalService = portletPreferencesLocalService;
186     }
187 
188     public PortletPreferencesService getPortletPreferencesService() {
189         return portletPreferencesService;
190     }
191 
192     public void setPortletPreferencesService(
193         PortletPreferencesService portletPreferencesService) {
194         this.portletPreferencesService = portletPreferencesService;
195     }
196 
197     public PortletPreferencesPersistence getPortletPreferencesPersistence() {
198         return portletPreferencesPersistence;
199     }
200 
201     public void setPortletPreferencesPersistence(
202         PortletPreferencesPersistence portletPreferencesPersistence) {
203         this.portletPreferencesPersistence = portletPreferencesPersistence;
204     }
205 
206     public PortletPreferencesFinder getPortletPreferencesFinder() {
207         return portletPreferencesFinder;
208     }
209 
210     public void setPortletPreferencesFinder(
211         PortletPreferencesFinder portletPreferencesFinder) {
212         this.portletPreferencesFinder = portletPreferencesFinder;
213     }
214 
215     public ResourceLocalService getResourceLocalService() {
216         return resourceLocalService;
217     }
218 
219     public void setResourceLocalService(
220         ResourceLocalService resourceLocalService) {
221         this.resourceLocalService = resourceLocalService;
222     }
223 
224     public ResourceService getResourceService() {
225         return resourceService;
226     }
227 
228     public void setResourceService(ResourceService resourceService) {
229         this.resourceService = resourceService;
230     }
231 
232     public ResourcePersistence getResourcePersistence() {
233         return resourcePersistence;
234     }
235 
236     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
237         this.resourcePersistence = resourcePersistence;
238     }
239 
240     public ResourceFinder getResourceFinder() {
241         return resourceFinder;
242     }
243 
244     public void setResourceFinder(ResourceFinder resourceFinder) {
245         this.resourceFinder = resourceFinder;
246     }
247 
248     public UserLocalService getUserLocalService() {
249         return userLocalService;
250     }
251 
252     public void setUserLocalService(UserLocalService userLocalService) {
253         this.userLocalService = userLocalService;
254     }
255 
256     public UserService getUserService() {
257         return userService;
258     }
259 
260     public void setUserService(UserService userService) {
261         this.userService = userService;
262     }
263 
264     public UserPersistence getUserPersistence() {
265         return userPersistence;
266     }
267 
268     public void setUserPersistence(UserPersistence userPersistence) {
269         this.userPersistence = userPersistence;
270     }
271 
272     public UserFinder getUserFinder() {
273         return userFinder;
274     }
275 
276     public void setUserFinder(UserFinder userFinder) {
277         this.userFinder = userFinder;
278     }
279 
280     public AssetEntryLocalService getAssetEntryLocalService() {
281         return assetEntryLocalService;
282     }
283 
284     public void setAssetEntryLocalService(
285         AssetEntryLocalService assetEntryLocalService) {
286         this.assetEntryLocalService = assetEntryLocalService;
287     }
288 
289     public AssetEntryService getAssetEntryService() {
290         return assetEntryService;
291     }
292 
293     public void setAssetEntryService(AssetEntryService assetEntryService) {
294         this.assetEntryService = assetEntryService;
295     }
296 
297     public AssetEntryPersistence getAssetEntryPersistence() {
298         return assetEntryPersistence;
299     }
300 
301     public void setAssetEntryPersistence(
302         AssetEntryPersistence assetEntryPersistence) {
303         this.assetEntryPersistence = assetEntryPersistence;
304     }
305 
306     public AssetEntryFinder getAssetEntryFinder() {
307         return assetEntryFinder;
308     }
309 
310     public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
311         this.assetEntryFinder = assetEntryFinder;
312     }
313 
314     public AssetTagLocalService getAssetTagLocalService() {
315         return assetTagLocalService;
316     }
317 
318     public void setAssetTagLocalService(
319         AssetTagLocalService assetTagLocalService) {
320         this.assetTagLocalService = assetTagLocalService;
321     }
322 
323     public AssetTagService getAssetTagService() {
324         return assetTagService;
325     }
326 
327     public void setAssetTagService(AssetTagService assetTagService) {
328         this.assetTagService = assetTagService;
329     }
330 
331     public AssetTagPersistence getAssetTagPersistence() {
332         return assetTagPersistence;
333     }
334 
335     public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
336         this.assetTagPersistence = assetTagPersistence;
337     }
338 
339     public AssetTagFinder getAssetTagFinder() {
340         return assetTagFinder;
341     }
342 
343     public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
344         this.assetTagFinder = assetTagFinder;
345     }
346 
347     public ExpandoValueLocalService getExpandoValueLocalService() {
348         return expandoValueLocalService;
349     }
350 
351     public void setExpandoValueLocalService(
352         ExpandoValueLocalService expandoValueLocalService) {
353         this.expandoValueLocalService = expandoValueLocalService;
354     }
355 
356     public ExpandoValueService getExpandoValueService() {
357         return expandoValueService;
358     }
359 
360     public void setExpandoValueService(ExpandoValueService expandoValueService) {
361         this.expandoValueService = expandoValueService;
362     }
363 
364     public ExpandoValuePersistence getExpandoValuePersistence() {
365         return expandoValuePersistence;
366     }
367 
368     public void setExpandoValuePersistence(
369         ExpandoValuePersistence expandoValuePersistence) {
370         this.expandoValuePersistence = expandoValuePersistence;
371     }
372 
373     public SocialActivityLocalService getSocialActivityLocalService() {
374         return socialActivityLocalService;
375     }
376 
377     public void setSocialActivityLocalService(
378         SocialActivityLocalService socialActivityLocalService) {
379         this.socialActivityLocalService = socialActivityLocalService;
380     }
381 
382     public SocialActivityPersistence getSocialActivityPersistence() {
383         return socialActivityPersistence;
384     }
385 
386     public void setSocialActivityPersistence(
387         SocialActivityPersistence socialActivityPersistence) {
388         this.socialActivityPersistence = socialActivityPersistence;
389     }
390 
391     public SocialActivityFinder getSocialActivityFinder() {
392         return socialActivityFinder;
393     }
394 
395     public void setSocialActivityFinder(
396         SocialActivityFinder socialActivityFinder) {
397         this.socialActivityFinder = socialActivityFinder;
398     }
399 
400     protected void runSQL(String sql) throws SystemException {
401         try {
402             DataSource dataSource = calEventPersistence.getDataSource();
403 
404             SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
405                     sql, new int[0]);
406 
407             sqlUpdate.update();
408         }
409         catch (Exception e) {
410             throw new SystemException(e);
411         }
412     }
413 
414     @BeanReference(type = CalEventLocalService.class)
415     protected CalEventLocalService calEventLocalService;
416     @BeanReference(type = CalEventService.class)
417     protected CalEventService calEventService;
418     @BeanReference(type = CalEventPersistence.class)
419     protected CalEventPersistence calEventPersistence;
420     @BeanReference(type = CalEventFinder.class)
421     protected CalEventFinder calEventFinder;
422     @BeanReference(type = CounterLocalService.class)
423     protected CounterLocalService counterLocalService;
424     @BeanReference(type = MailService.class)
425     protected MailService mailService;
426     @BeanReference(type = CompanyLocalService.class)
427     protected CompanyLocalService companyLocalService;
428     @BeanReference(type = CompanyService.class)
429     protected CompanyService companyService;
430     @BeanReference(type = CompanyPersistence.class)
431     protected CompanyPersistence companyPersistence;
432     @BeanReference(type = GroupLocalService.class)
433     protected GroupLocalService groupLocalService;
434     @BeanReference(type = GroupService.class)
435     protected GroupService groupService;
436     @BeanReference(type = GroupPersistence.class)
437     protected GroupPersistence groupPersistence;
438     @BeanReference(type = GroupFinder.class)
439     protected GroupFinder groupFinder;
440     @BeanReference(type = PortletPreferencesLocalService.class)
441     protected PortletPreferencesLocalService portletPreferencesLocalService;
442     @BeanReference(type = PortletPreferencesService.class)
443     protected PortletPreferencesService portletPreferencesService;
444     @BeanReference(type = PortletPreferencesPersistence.class)
445     protected PortletPreferencesPersistence portletPreferencesPersistence;
446     @BeanReference(type = PortletPreferencesFinder.class)
447     protected PortletPreferencesFinder portletPreferencesFinder;
448     @BeanReference(type = ResourceLocalService.class)
449     protected ResourceLocalService resourceLocalService;
450     @BeanReference(type = ResourceService.class)
451     protected ResourceService resourceService;
452     @BeanReference(type = ResourcePersistence.class)
453     protected ResourcePersistence resourcePersistence;
454     @BeanReference(type = ResourceFinder.class)
455     protected ResourceFinder resourceFinder;
456     @BeanReference(type = UserLocalService.class)
457     protected UserLocalService userLocalService;
458     @BeanReference(type = UserService.class)
459     protected UserService userService;
460     @BeanReference(type = UserPersistence.class)
461     protected UserPersistence userPersistence;
462     @BeanReference(type = UserFinder.class)
463     protected UserFinder userFinder;
464     @BeanReference(type = AssetEntryLocalService.class)
465     protected AssetEntryLocalService assetEntryLocalService;
466     @BeanReference(type = AssetEntryService.class)
467     protected AssetEntryService assetEntryService;
468     @BeanReference(type = AssetEntryPersistence.class)
469     protected AssetEntryPersistence assetEntryPersistence;
470     @BeanReference(type = AssetEntryFinder.class)
471     protected AssetEntryFinder assetEntryFinder;
472     @BeanReference(type = AssetTagLocalService.class)
473     protected AssetTagLocalService assetTagLocalService;
474     @BeanReference(type = AssetTagService.class)
475     protected AssetTagService assetTagService;
476     @BeanReference(type = AssetTagPersistence.class)
477     protected AssetTagPersistence assetTagPersistence;
478     @BeanReference(type = AssetTagFinder.class)
479     protected AssetTagFinder assetTagFinder;
480     @BeanReference(type = ExpandoValueLocalService.class)
481     protected ExpandoValueLocalService expandoValueLocalService;
482     @BeanReference(type = ExpandoValueService.class)
483     protected ExpandoValueService expandoValueService;
484     @BeanReference(type = ExpandoValuePersistence.class)
485     protected ExpandoValuePersistence expandoValuePersistence;
486     @BeanReference(type = SocialActivityLocalService.class)
487     protected SocialActivityLocalService socialActivityLocalService;
488     @BeanReference(type = SocialActivityPersistence.class)
489     protected SocialActivityPersistence socialActivityPersistence;
490     @BeanReference(type = SocialActivityFinder.class)
491     protected SocialActivityFinder socialActivityFinder;
492 }