001
014
015 package com.liferay.portlet.calendar.service.base;
016
017 import com.liferay.counter.service.CounterLocalService;
018
019 import com.liferay.mail.service.MailService;
020
021 import com.liferay.portal.kernel.bean.BeanReference;
022 import com.liferay.portal.kernel.bean.IdentifiableBean;
023 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
024 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
025 import com.liferay.portal.kernel.exception.SystemException;
026 import com.liferay.portal.service.CompanyLocalService;
027 import com.liferay.portal.service.CompanyService;
028 import com.liferay.portal.service.GroupLocalService;
029 import com.liferay.portal.service.GroupService;
030 import com.liferay.portal.service.PortletPreferencesLocalService;
031 import com.liferay.portal.service.PortletPreferencesService;
032 import com.liferay.portal.service.ResourceLocalService;
033 import com.liferay.portal.service.ResourceService;
034 import com.liferay.portal.service.UserLocalService;
035 import com.liferay.portal.service.UserService;
036 import com.liferay.portal.service.base.PrincipalBean;
037 import com.liferay.portal.service.persistence.CompanyPersistence;
038 import com.liferay.portal.service.persistence.GroupFinder;
039 import com.liferay.portal.service.persistence.GroupPersistence;
040 import com.liferay.portal.service.persistence.PortletPreferencesFinder;
041 import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
042 import com.liferay.portal.service.persistence.ResourceFinder;
043 import com.liferay.portal.service.persistence.ResourcePersistence;
044 import com.liferay.portal.service.persistence.UserFinder;
045 import com.liferay.portal.service.persistence.UserPersistence;
046
047 import com.liferay.portlet.asset.service.AssetEntryLocalService;
048 import com.liferay.portlet.asset.service.AssetEntryService;
049 import com.liferay.portlet.asset.service.AssetLinkLocalService;
050 import com.liferay.portlet.asset.service.AssetTagLocalService;
051 import com.liferay.portlet.asset.service.AssetTagService;
052 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
053 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
054 import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
055 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
056 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
057 import com.liferay.portlet.calendar.model.CalEvent;
058 import com.liferay.portlet.calendar.service.CalEventLocalService;
059 import com.liferay.portlet.calendar.service.CalEventService;
060 import com.liferay.portlet.calendar.service.persistence.CalEventFinder;
061 import com.liferay.portlet.calendar.service.persistence.CalEventPersistence;
062 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
063 import com.liferay.portlet.expando.service.ExpandoValueService;
064 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
065 import com.liferay.portlet.social.service.SocialActivityLocalService;
066 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
067 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
068
069 import javax.sql.DataSource;
070
071
083 public abstract class CalEventServiceBaseImpl extends PrincipalBean
084 implements CalEventService, IdentifiableBean {
085
090
091
096 public CalEventLocalService getCalEventLocalService() {
097 return calEventLocalService;
098 }
099
100
105 public void setCalEventLocalService(
106 CalEventLocalService calEventLocalService) {
107 this.calEventLocalService = calEventLocalService;
108 }
109
110
115 public CalEventService getCalEventService() {
116 return calEventService;
117 }
118
119
124 public void setCalEventService(CalEventService calEventService) {
125 this.calEventService = calEventService;
126 }
127
128
133 public CalEventPersistence getCalEventPersistence() {
134 return calEventPersistence;
135 }
136
137
142 public void setCalEventPersistence(CalEventPersistence calEventPersistence) {
143 this.calEventPersistence = calEventPersistence;
144 }
145
146
151 public CalEventFinder getCalEventFinder() {
152 return calEventFinder;
153 }
154
155
160 public void setCalEventFinder(CalEventFinder calEventFinder) {
161 this.calEventFinder = calEventFinder;
162 }
163
164
169 public CounterLocalService getCounterLocalService() {
170 return counterLocalService;
171 }
172
173
178 public void setCounterLocalService(CounterLocalService counterLocalService) {
179 this.counterLocalService = counterLocalService;
180 }
181
182
187 public MailService getMailService() {
188 return mailService;
189 }
190
191
196 public void setMailService(MailService mailService) {
197 this.mailService = mailService;
198 }
199
200
205 public CompanyLocalService getCompanyLocalService() {
206 return companyLocalService;
207 }
208
209
214 public void setCompanyLocalService(CompanyLocalService companyLocalService) {
215 this.companyLocalService = companyLocalService;
216 }
217
218
223 public CompanyService getCompanyService() {
224 return companyService;
225 }
226
227
232 public void setCompanyService(CompanyService companyService) {
233 this.companyService = companyService;
234 }
235
236
241 public CompanyPersistence getCompanyPersistence() {
242 return companyPersistence;
243 }
244
245
250 public void setCompanyPersistence(CompanyPersistence companyPersistence) {
251 this.companyPersistence = companyPersistence;
252 }
253
254
259 public GroupLocalService getGroupLocalService() {
260 return groupLocalService;
261 }
262
263
268 public void setGroupLocalService(GroupLocalService groupLocalService) {
269 this.groupLocalService = groupLocalService;
270 }
271
272
277 public GroupService getGroupService() {
278 return groupService;
279 }
280
281
286 public void setGroupService(GroupService groupService) {
287 this.groupService = groupService;
288 }
289
290
295 public GroupPersistence getGroupPersistence() {
296 return groupPersistence;
297 }
298
299
304 public void setGroupPersistence(GroupPersistence groupPersistence) {
305 this.groupPersistence = groupPersistence;
306 }
307
308
313 public GroupFinder getGroupFinder() {
314 return groupFinder;
315 }
316
317
322 public void setGroupFinder(GroupFinder groupFinder) {
323 this.groupFinder = groupFinder;
324 }
325
326
331 public PortletPreferencesLocalService getPortletPreferencesLocalService() {
332 return portletPreferencesLocalService;
333 }
334
335
340 public void setPortletPreferencesLocalService(
341 PortletPreferencesLocalService portletPreferencesLocalService) {
342 this.portletPreferencesLocalService = portletPreferencesLocalService;
343 }
344
345
350 public PortletPreferencesService getPortletPreferencesService() {
351 return portletPreferencesService;
352 }
353
354
359 public void setPortletPreferencesService(
360 PortletPreferencesService portletPreferencesService) {
361 this.portletPreferencesService = portletPreferencesService;
362 }
363
364
369 public PortletPreferencesPersistence getPortletPreferencesPersistence() {
370 return portletPreferencesPersistence;
371 }
372
373
378 public void setPortletPreferencesPersistence(
379 PortletPreferencesPersistence portletPreferencesPersistence) {
380 this.portletPreferencesPersistence = portletPreferencesPersistence;
381 }
382
383
388 public PortletPreferencesFinder getPortletPreferencesFinder() {
389 return portletPreferencesFinder;
390 }
391
392
397 public void setPortletPreferencesFinder(
398 PortletPreferencesFinder portletPreferencesFinder) {
399 this.portletPreferencesFinder = portletPreferencesFinder;
400 }
401
402
407 public ResourceLocalService getResourceLocalService() {
408 return resourceLocalService;
409 }
410
411
416 public void setResourceLocalService(
417 ResourceLocalService resourceLocalService) {
418 this.resourceLocalService = resourceLocalService;
419 }
420
421
426 public ResourceService getResourceService() {
427 return resourceService;
428 }
429
430
435 public void setResourceService(ResourceService resourceService) {
436 this.resourceService = resourceService;
437 }
438
439
444 public ResourcePersistence getResourcePersistence() {
445 return resourcePersistence;
446 }
447
448
453 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
454 this.resourcePersistence = resourcePersistence;
455 }
456
457
462 public ResourceFinder getResourceFinder() {
463 return resourceFinder;
464 }
465
466
471 public void setResourceFinder(ResourceFinder resourceFinder) {
472 this.resourceFinder = resourceFinder;
473 }
474
475
480 public UserLocalService getUserLocalService() {
481 return userLocalService;
482 }
483
484
489 public void setUserLocalService(UserLocalService userLocalService) {
490 this.userLocalService = userLocalService;
491 }
492
493
498 public UserService getUserService() {
499 return userService;
500 }
501
502
507 public void setUserService(UserService userService) {
508 this.userService = userService;
509 }
510
511
516 public UserPersistence getUserPersistence() {
517 return userPersistence;
518 }
519
520
525 public void setUserPersistence(UserPersistence userPersistence) {
526 this.userPersistence = userPersistence;
527 }
528
529
534 public UserFinder getUserFinder() {
535 return userFinder;
536 }
537
538
543 public void setUserFinder(UserFinder userFinder) {
544 this.userFinder = userFinder;
545 }
546
547
552 public AssetEntryLocalService getAssetEntryLocalService() {
553 return assetEntryLocalService;
554 }
555
556
561 public void setAssetEntryLocalService(
562 AssetEntryLocalService assetEntryLocalService) {
563 this.assetEntryLocalService = assetEntryLocalService;
564 }
565
566
571 public AssetEntryService getAssetEntryService() {
572 return assetEntryService;
573 }
574
575
580 public void setAssetEntryService(AssetEntryService assetEntryService) {
581 this.assetEntryService = assetEntryService;
582 }
583
584
589 public AssetEntryPersistence getAssetEntryPersistence() {
590 return assetEntryPersistence;
591 }
592
593
598 public void setAssetEntryPersistence(
599 AssetEntryPersistence assetEntryPersistence) {
600 this.assetEntryPersistence = assetEntryPersistence;
601 }
602
603
608 public AssetEntryFinder getAssetEntryFinder() {
609 return assetEntryFinder;
610 }
611
612
617 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
618 this.assetEntryFinder = assetEntryFinder;
619 }
620
621
626 public AssetLinkLocalService getAssetLinkLocalService() {
627 return assetLinkLocalService;
628 }
629
630
635 public void setAssetLinkLocalService(
636 AssetLinkLocalService assetLinkLocalService) {
637 this.assetLinkLocalService = assetLinkLocalService;
638 }
639
640
645 public AssetLinkPersistence getAssetLinkPersistence() {
646 return assetLinkPersistence;
647 }
648
649
654 public void setAssetLinkPersistence(
655 AssetLinkPersistence assetLinkPersistence) {
656 this.assetLinkPersistence = assetLinkPersistence;
657 }
658
659
664 public AssetTagLocalService getAssetTagLocalService() {
665 return assetTagLocalService;
666 }
667
668
673 public void setAssetTagLocalService(
674 AssetTagLocalService assetTagLocalService) {
675 this.assetTagLocalService = assetTagLocalService;
676 }
677
678
683 public AssetTagService getAssetTagService() {
684 return assetTagService;
685 }
686
687
692 public void setAssetTagService(AssetTagService assetTagService) {
693 this.assetTagService = assetTagService;
694 }
695
696
701 public AssetTagPersistence getAssetTagPersistence() {
702 return assetTagPersistence;
703 }
704
705
710 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
711 this.assetTagPersistence = assetTagPersistence;
712 }
713
714
719 public AssetTagFinder getAssetTagFinder() {
720 return assetTagFinder;
721 }
722
723
728 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
729 this.assetTagFinder = assetTagFinder;
730 }
731
732
737 public ExpandoValueLocalService getExpandoValueLocalService() {
738 return expandoValueLocalService;
739 }
740
741
746 public void setExpandoValueLocalService(
747 ExpandoValueLocalService expandoValueLocalService) {
748 this.expandoValueLocalService = expandoValueLocalService;
749 }
750
751
756 public ExpandoValueService getExpandoValueService() {
757 return expandoValueService;
758 }
759
760
765 public void setExpandoValueService(ExpandoValueService expandoValueService) {
766 this.expandoValueService = expandoValueService;
767 }
768
769
774 public ExpandoValuePersistence getExpandoValuePersistence() {
775 return expandoValuePersistence;
776 }
777
778
783 public void setExpandoValuePersistence(
784 ExpandoValuePersistence expandoValuePersistence) {
785 this.expandoValuePersistence = expandoValuePersistence;
786 }
787
788
793 public SocialActivityLocalService getSocialActivityLocalService() {
794 return socialActivityLocalService;
795 }
796
797
802 public void setSocialActivityLocalService(
803 SocialActivityLocalService socialActivityLocalService) {
804 this.socialActivityLocalService = socialActivityLocalService;
805 }
806
807
812 public SocialActivityPersistence getSocialActivityPersistence() {
813 return socialActivityPersistence;
814 }
815
816
821 public void setSocialActivityPersistence(
822 SocialActivityPersistence socialActivityPersistence) {
823 this.socialActivityPersistence = socialActivityPersistence;
824 }
825
826
831 public SocialActivityFinder getSocialActivityFinder() {
832 return socialActivityFinder;
833 }
834
835
840 public void setSocialActivityFinder(
841 SocialActivityFinder socialActivityFinder) {
842 this.socialActivityFinder = socialActivityFinder;
843 }
844
845 public void afterPropertiesSet() {
846 }
847
848 public void destroy() {
849 }
850
851
856 public String getBeanIdentifier() {
857 return _beanIdentifier;
858 }
859
860
865 public void setBeanIdentifier(String beanIdentifier) {
866 _beanIdentifier = beanIdentifier;
867 }
868
869 protected ClassLoader getClassLoader() {
870 Class<?> clazz = getClass();
871
872 return clazz.getClassLoader();
873 }
874
875 protected Class<?> getModelClass() {
876 return CalEvent.class;
877 }
878
879 protected String getModelClassName() {
880 return CalEvent.class.getName();
881 }
882
883
888 protected void runSQL(String sql) throws SystemException {
889 try {
890 DataSource dataSource = calEventPersistence.getDataSource();
891
892 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
893 sql, new int[0]);
894
895 sqlUpdate.update();
896 }
897 catch (Exception e) {
898 throw new SystemException(e);
899 }
900 }
901
902 @BeanReference(type = CalEventLocalService.class)
903 protected CalEventLocalService calEventLocalService;
904 @BeanReference(type = CalEventService.class)
905 protected CalEventService calEventService;
906 @BeanReference(type = CalEventPersistence.class)
907 protected CalEventPersistence calEventPersistence;
908 @BeanReference(type = CalEventFinder.class)
909 protected CalEventFinder calEventFinder;
910 @BeanReference(type = CounterLocalService.class)
911 protected CounterLocalService counterLocalService;
912 @BeanReference(type = MailService.class)
913 protected MailService mailService;
914 @BeanReference(type = CompanyLocalService.class)
915 protected CompanyLocalService companyLocalService;
916 @BeanReference(type = CompanyService.class)
917 protected CompanyService companyService;
918 @BeanReference(type = CompanyPersistence.class)
919 protected CompanyPersistence companyPersistence;
920 @BeanReference(type = GroupLocalService.class)
921 protected GroupLocalService groupLocalService;
922 @BeanReference(type = GroupService.class)
923 protected GroupService groupService;
924 @BeanReference(type = GroupPersistence.class)
925 protected GroupPersistence groupPersistence;
926 @BeanReference(type = GroupFinder.class)
927 protected GroupFinder groupFinder;
928 @BeanReference(type = PortletPreferencesLocalService.class)
929 protected PortletPreferencesLocalService portletPreferencesLocalService;
930 @BeanReference(type = PortletPreferencesService.class)
931 protected PortletPreferencesService portletPreferencesService;
932 @BeanReference(type = PortletPreferencesPersistence.class)
933 protected PortletPreferencesPersistence portletPreferencesPersistence;
934 @BeanReference(type = PortletPreferencesFinder.class)
935 protected PortletPreferencesFinder portletPreferencesFinder;
936 @BeanReference(type = ResourceLocalService.class)
937 protected ResourceLocalService resourceLocalService;
938 @BeanReference(type = ResourceService.class)
939 protected ResourceService resourceService;
940 @BeanReference(type = ResourcePersistence.class)
941 protected ResourcePersistence resourcePersistence;
942 @BeanReference(type = ResourceFinder.class)
943 protected ResourceFinder resourceFinder;
944 @BeanReference(type = UserLocalService.class)
945 protected UserLocalService userLocalService;
946 @BeanReference(type = UserService.class)
947 protected UserService userService;
948 @BeanReference(type = UserPersistence.class)
949 protected UserPersistence userPersistence;
950 @BeanReference(type = UserFinder.class)
951 protected UserFinder userFinder;
952 @BeanReference(type = AssetEntryLocalService.class)
953 protected AssetEntryLocalService assetEntryLocalService;
954 @BeanReference(type = AssetEntryService.class)
955 protected AssetEntryService assetEntryService;
956 @BeanReference(type = AssetEntryPersistence.class)
957 protected AssetEntryPersistence assetEntryPersistence;
958 @BeanReference(type = AssetEntryFinder.class)
959 protected AssetEntryFinder assetEntryFinder;
960 @BeanReference(type = AssetLinkLocalService.class)
961 protected AssetLinkLocalService assetLinkLocalService;
962 @BeanReference(type = AssetLinkPersistence.class)
963 protected AssetLinkPersistence assetLinkPersistence;
964 @BeanReference(type = AssetTagLocalService.class)
965 protected AssetTagLocalService assetTagLocalService;
966 @BeanReference(type = AssetTagService.class)
967 protected AssetTagService assetTagService;
968 @BeanReference(type = AssetTagPersistence.class)
969 protected AssetTagPersistence assetTagPersistence;
970 @BeanReference(type = AssetTagFinder.class)
971 protected AssetTagFinder assetTagFinder;
972 @BeanReference(type = ExpandoValueLocalService.class)
973 protected ExpandoValueLocalService expandoValueLocalService;
974 @BeanReference(type = ExpandoValueService.class)
975 protected ExpandoValueService expandoValueService;
976 @BeanReference(type = ExpandoValuePersistence.class)
977 protected ExpandoValuePersistence expandoValuePersistence;
978 @BeanReference(type = SocialActivityLocalService.class)
979 protected SocialActivityLocalService socialActivityLocalService;
980 @BeanReference(type = SocialActivityPersistence.class)
981 protected SocialActivityPersistence socialActivityPersistence;
982 @BeanReference(type = SocialActivityFinder.class)
983 protected SocialActivityFinder socialActivityFinder;
984 private String _beanIdentifier;
985 }