1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
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.SystemException;
23  import com.liferay.portal.kernel.annotation.BeanReference;
24  import com.liferay.portal.kernel.dao.db.DB;
25  import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
26  import com.liferay.portal.service.CompanyLocalService;
27  import com.liferay.portal.service.CompanyService;
28  import com.liferay.portal.service.GroupLocalService;
29  import com.liferay.portal.service.GroupService;
30  import com.liferay.portal.service.PortletPreferencesLocalService;
31  import com.liferay.portal.service.PortletPreferencesService;
32  import com.liferay.portal.service.ResourceLocalService;
33  import com.liferay.portal.service.ResourceService;
34  import com.liferay.portal.service.UserLocalService;
35  import com.liferay.portal.service.UserService;
36  import com.liferay.portal.service.base.PrincipalBean;
37  import com.liferay.portal.service.persistence.CompanyPersistence;
38  import com.liferay.portal.service.persistence.GroupFinder;
39  import com.liferay.portal.service.persistence.GroupPersistence;
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  
47  import com.liferay.portlet.calendar.service.CalEventLocalService;
48  import com.liferay.portlet.calendar.service.CalEventService;
49  import com.liferay.portlet.calendar.service.persistence.CalEventFinder;
50  import com.liferay.portlet.calendar.service.persistence.CalEventPersistence;
51  import com.liferay.portlet.expando.service.ExpandoValueLocalService;
52  import com.liferay.portlet.expando.service.ExpandoValueService;
53  import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
54  import com.liferay.portlet.social.service.SocialActivityLocalService;
55  import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
56  import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
57  import com.liferay.portlet.tags.service.TagsAssetLocalService;
58  import com.liferay.portlet.tags.service.TagsAssetService;
59  import com.liferay.portlet.tags.service.TagsEntryLocalService;
60  import com.liferay.portlet.tags.service.TagsEntryService;
61  import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
62  import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
63  import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
64  import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
65  
66  /**
67   * <a href="CalEventServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
68   *
69   * @author Brian Wing Shun Chan
70   */
71  public abstract class CalEventServiceBaseImpl extends PrincipalBean
72      implements CalEventService {
73      public CalEventLocalService getCalEventLocalService() {
74          return calEventLocalService;
75      }
76  
77      public void setCalEventLocalService(
78          CalEventLocalService calEventLocalService) {
79          this.calEventLocalService = calEventLocalService;
80      }
81  
82      public CalEventService getCalEventService() {
83          return calEventService;
84      }
85  
86      public void setCalEventService(CalEventService calEventService) {
87          this.calEventService = calEventService;
88      }
89  
90      public CalEventPersistence getCalEventPersistence() {
91          return calEventPersistence;
92      }
93  
94      public void setCalEventPersistence(CalEventPersistence calEventPersistence) {
95          this.calEventPersistence = calEventPersistence;
96      }
97  
98      public CalEventFinder getCalEventFinder() {
99          return calEventFinder;
100     }
101 
102     public void setCalEventFinder(CalEventFinder calEventFinder) {
103         this.calEventFinder = calEventFinder;
104     }
105 
106     public CounterLocalService getCounterLocalService() {
107         return counterLocalService;
108     }
109 
110     public void setCounterLocalService(CounterLocalService counterLocalService) {
111         this.counterLocalService = counterLocalService;
112     }
113 
114     public CounterService getCounterService() {
115         return counterService;
116     }
117 
118     public void setCounterService(CounterService counterService) {
119         this.counterService = counterService;
120     }
121 
122     public MailService getMailService() {
123         return mailService;
124     }
125 
126     public void setMailService(MailService mailService) {
127         this.mailService = mailService;
128     }
129 
130     public CompanyLocalService getCompanyLocalService() {
131         return companyLocalService;
132     }
133 
134     public void setCompanyLocalService(CompanyLocalService companyLocalService) {
135         this.companyLocalService = companyLocalService;
136     }
137 
138     public CompanyService getCompanyService() {
139         return companyService;
140     }
141 
142     public void setCompanyService(CompanyService companyService) {
143         this.companyService = companyService;
144     }
145 
146     public CompanyPersistence getCompanyPersistence() {
147         return companyPersistence;
148     }
149 
150     public void setCompanyPersistence(CompanyPersistence companyPersistence) {
151         this.companyPersistence = companyPersistence;
152     }
153 
154     public GroupLocalService getGroupLocalService() {
155         return groupLocalService;
156     }
157 
158     public void setGroupLocalService(GroupLocalService groupLocalService) {
159         this.groupLocalService = groupLocalService;
160     }
161 
162     public GroupService getGroupService() {
163         return groupService;
164     }
165 
166     public void setGroupService(GroupService groupService) {
167         this.groupService = groupService;
168     }
169 
170     public GroupPersistence getGroupPersistence() {
171         return groupPersistence;
172     }
173 
174     public void setGroupPersistence(GroupPersistence groupPersistence) {
175         this.groupPersistence = groupPersistence;
176     }
177 
178     public GroupFinder getGroupFinder() {
179         return groupFinder;
180     }
181 
182     public void setGroupFinder(GroupFinder groupFinder) {
183         this.groupFinder = groupFinder;
184     }
185 
186     public PortletPreferencesLocalService getPortletPreferencesLocalService() {
187         return portletPreferencesLocalService;
188     }
189 
190     public void setPortletPreferencesLocalService(
191         PortletPreferencesLocalService portletPreferencesLocalService) {
192         this.portletPreferencesLocalService = portletPreferencesLocalService;
193     }
194 
195     public PortletPreferencesService getPortletPreferencesService() {
196         return portletPreferencesService;
197     }
198 
199     public void setPortletPreferencesService(
200         PortletPreferencesService portletPreferencesService) {
201         this.portletPreferencesService = portletPreferencesService;
202     }
203 
204     public PortletPreferencesPersistence getPortletPreferencesPersistence() {
205         return portletPreferencesPersistence;
206     }
207 
208     public void setPortletPreferencesPersistence(
209         PortletPreferencesPersistence portletPreferencesPersistence) {
210         this.portletPreferencesPersistence = portletPreferencesPersistence;
211     }
212 
213     public PortletPreferencesFinder getPortletPreferencesFinder() {
214         return portletPreferencesFinder;
215     }
216 
217     public void setPortletPreferencesFinder(
218         PortletPreferencesFinder portletPreferencesFinder) {
219         this.portletPreferencesFinder = portletPreferencesFinder;
220     }
221 
222     public ResourceLocalService getResourceLocalService() {
223         return resourceLocalService;
224     }
225 
226     public void setResourceLocalService(
227         ResourceLocalService resourceLocalService) {
228         this.resourceLocalService = resourceLocalService;
229     }
230 
231     public ResourceService getResourceService() {
232         return resourceService;
233     }
234 
235     public void setResourceService(ResourceService resourceService) {
236         this.resourceService = resourceService;
237     }
238 
239     public ResourcePersistence getResourcePersistence() {
240         return resourcePersistence;
241     }
242 
243     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
244         this.resourcePersistence = resourcePersistence;
245     }
246 
247     public ResourceFinder getResourceFinder() {
248         return resourceFinder;
249     }
250 
251     public void setResourceFinder(ResourceFinder resourceFinder) {
252         this.resourceFinder = resourceFinder;
253     }
254 
255     public UserLocalService getUserLocalService() {
256         return userLocalService;
257     }
258 
259     public void setUserLocalService(UserLocalService userLocalService) {
260         this.userLocalService = userLocalService;
261     }
262 
263     public UserService getUserService() {
264         return userService;
265     }
266 
267     public void setUserService(UserService userService) {
268         this.userService = userService;
269     }
270 
271     public UserPersistence getUserPersistence() {
272         return userPersistence;
273     }
274 
275     public void setUserPersistence(UserPersistence userPersistence) {
276         this.userPersistence = userPersistence;
277     }
278 
279     public UserFinder getUserFinder() {
280         return userFinder;
281     }
282 
283     public void setUserFinder(UserFinder userFinder) {
284         this.userFinder = userFinder;
285     }
286 
287     public ExpandoValueLocalService getExpandoValueLocalService() {
288         return expandoValueLocalService;
289     }
290 
291     public void setExpandoValueLocalService(
292         ExpandoValueLocalService expandoValueLocalService) {
293         this.expandoValueLocalService = expandoValueLocalService;
294     }
295 
296     public ExpandoValueService getExpandoValueService() {
297         return expandoValueService;
298     }
299 
300     public void setExpandoValueService(ExpandoValueService expandoValueService) {
301         this.expandoValueService = expandoValueService;
302     }
303 
304     public ExpandoValuePersistence getExpandoValuePersistence() {
305         return expandoValuePersistence;
306     }
307 
308     public void setExpandoValuePersistence(
309         ExpandoValuePersistence expandoValuePersistence) {
310         this.expandoValuePersistence = expandoValuePersistence;
311     }
312 
313     public SocialActivityLocalService getSocialActivityLocalService() {
314         return socialActivityLocalService;
315     }
316 
317     public void setSocialActivityLocalService(
318         SocialActivityLocalService socialActivityLocalService) {
319         this.socialActivityLocalService = socialActivityLocalService;
320     }
321 
322     public SocialActivityPersistence getSocialActivityPersistence() {
323         return socialActivityPersistence;
324     }
325 
326     public void setSocialActivityPersistence(
327         SocialActivityPersistence socialActivityPersistence) {
328         this.socialActivityPersistence = socialActivityPersistence;
329     }
330 
331     public SocialActivityFinder getSocialActivityFinder() {
332         return socialActivityFinder;
333     }
334 
335     public void setSocialActivityFinder(
336         SocialActivityFinder socialActivityFinder) {
337         this.socialActivityFinder = socialActivityFinder;
338     }
339 
340     public TagsAssetLocalService getTagsAssetLocalService() {
341         return tagsAssetLocalService;
342     }
343 
344     public void setTagsAssetLocalService(
345         TagsAssetLocalService tagsAssetLocalService) {
346         this.tagsAssetLocalService = tagsAssetLocalService;
347     }
348 
349     public TagsAssetService getTagsAssetService() {
350         return tagsAssetService;
351     }
352 
353     public void setTagsAssetService(TagsAssetService tagsAssetService) {
354         this.tagsAssetService = tagsAssetService;
355     }
356 
357     public TagsAssetPersistence getTagsAssetPersistence() {
358         return tagsAssetPersistence;
359     }
360 
361     public void setTagsAssetPersistence(
362         TagsAssetPersistence tagsAssetPersistence) {
363         this.tagsAssetPersistence = tagsAssetPersistence;
364     }
365 
366     public TagsAssetFinder getTagsAssetFinder() {
367         return tagsAssetFinder;
368     }
369 
370     public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
371         this.tagsAssetFinder = tagsAssetFinder;
372     }
373 
374     public TagsEntryLocalService getTagsEntryLocalService() {
375         return tagsEntryLocalService;
376     }
377 
378     public void setTagsEntryLocalService(
379         TagsEntryLocalService tagsEntryLocalService) {
380         this.tagsEntryLocalService = tagsEntryLocalService;
381     }
382 
383     public TagsEntryService getTagsEntryService() {
384         return tagsEntryService;
385     }
386 
387     public void setTagsEntryService(TagsEntryService tagsEntryService) {
388         this.tagsEntryService = tagsEntryService;
389     }
390 
391     public TagsEntryPersistence getTagsEntryPersistence() {
392         return tagsEntryPersistence;
393     }
394 
395     public void setTagsEntryPersistence(
396         TagsEntryPersistence tagsEntryPersistence) {
397         this.tagsEntryPersistence = tagsEntryPersistence;
398     }
399 
400     public TagsEntryFinder getTagsEntryFinder() {
401         return tagsEntryFinder;
402     }
403 
404     public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
405         this.tagsEntryFinder = tagsEntryFinder;
406     }
407 
408     protected void runSQL(String sql) throws SystemException {
409         try {
410             DB db = DBFactoryUtil.getDB();
411 
412             db.runSQL(sql);
413         }
414         catch (Exception e) {
415             throw new SystemException(e);
416         }
417     }
418 
419     @BeanReference(type = CalEventLocalService.class)
420     protected CalEventLocalService calEventLocalService;
421     @BeanReference(type = CalEventService.class)
422     protected CalEventService calEventService;
423     @BeanReference(type = CalEventPersistence.class)
424     protected CalEventPersistence calEventPersistence;
425     @BeanReference(type = CalEventFinder.class)
426     protected CalEventFinder calEventFinder;
427     @BeanReference(type = CounterLocalService.class)
428     protected CounterLocalService counterLocalService;
429     @BeanReference(type = CounterService.class)
430     protected CounterService counterService;
431     @BeanReference(type = MailService.class)
432     protected MailService mailService;
433     @BeanReference(type = CompanyLocalService.class)
434     protected CompanyLocalService companyLocalService;
435     @BeanReference(type = CompanyService.class)
436     protected CompanyService companyService;
437     @BeanReference(type = CompanyPersistence.class)
438     protected CompanyPersistence companyPersistence;
439     @BeanReference(type = GroupLocalService.class)
440     protected GroupLocalService groupLocalService;
441     @BeanReference(type = GroupService.class)
442     protected GroupService groupService;
443     @BeanReference(type = GroupPersistence.class)
444     protected GroupPersistence groupPersistence;
445     @BeanReference(type = GroupFinder.class)
446     protected GroupFinder groupFinder;
447     @BeanReference(type = PortletPreferencesLocalService.class)
448     protected PortletPreferencesLocalService portletPreferencesLocalService;
449     @BeanReference(type = PortletPreferencesService.class)
450     protected PortletPreferencesService portletPreferencesService;
451     @BeanReference(type = PortletPreferencesPersistence.class)
452     protected PortletPreferencesPersistence portletPreferencesPersistence;
453     @BeanReference(type = PortletPreferencesFinder.class)
454     protected PortletPreferencesFinder portletPreferencesFinder;
455     @BeanReference(type = ResourceLocalService.class)
456     protected ResourceLocalService resourceLocalService;
457     @BeanReference(type = ResourceService.class)
458     protected ResourceService resourceService;
459     @BeanReference(type = ResourcePersistence.class)
460     protected ResourcePersistence resourcePersistence;
461     @BeanReference(type = ResourceFinder.class)
462     protected ResourceFinder resourceFinder;
463     @BeanReference(type = UserLocalService.class)
464     protected UserLocalService userLocalService;
465     @BeanReference(type = UserService.class)
466     protected UserService userService;
467     @BeanReference(type = UserPersistence.class)
468     protected UserPersistence userPersistence;
469     @BeanReference(type = UserFinder.class)
470     protected UserFinder userFinder;
471     @BeanReference(type = ExpandoValueLocalService.class)
472     protected ExpandoValueLocalService expandoValueLocalService;
473     @BeanReference(type = ExpandoValueService.class)
474     protected ExpandoValueService expandoValueService;
475     @BeanReference(type = ExpandoValuePersistence.class)
476     protected ExpandoValuePersistence expandoValuePersistence;
477     @BeanReference(type = SocialActivityLocalService.class)
478     protected SocialActivityLocalService socialActivityLocalService;
479     @BeanReference(type = SocialActivityPersistence.class)
480     protected SocialActivityPersistence socialActivityPersistence;
481     @BeanReference(type = SocialActivityFinder.class)
482     protected SocialActivityFinder socialActivityFinder;
483     @BeanReference(type = TagsAssetLocalService.class)
484     protected TagsAssetLocalService tagsAssetLocalService;
485     @BeanReference(type = TagsAssetService.class)
486     protected TagsAssetService tagsAssetService;
487     @BeanReference(type = TagsAssetPersistence.class)
488     protected TagsAssetPersistence tagsAssetPersistence;
489     @BeanReference(type = TagsAssetFinder.class)
490     protected TagsAssetFinder tagsAssetFinder;
491     @BeanReference(type = TagsEntryLocalService.class)
492     protected TagsEntryLocalService tagsEntryLocalService;
493     @BeanReference(type = TagsEntryService.class)
494     protected TagsEntryService tagsEntryService;
495     @BeanReference(type = TagsEntryPersistence.class)
496     protected TagsEntryPersistence tagsEntryPersistence;
497     @BeanReference(type = TagsEntryFinder.class)
498     protected TagsEntryFinder tagsEntryFinder;
499 }