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