001
014
015 package com.liferay.portlet.announcements.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.annotation.BeanReference;
022 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
023 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
024 import com.liferay.portal.kernel.exception.SystemException;
025 import com.liferay.portal.service.CompanyLocalService;
026 import com.liferay.portal.service.CompanyService;
027 import com.liferay.portal.service.GroupLocalService;
028 import com.liferay.portal.service.GroupService;
029 import com.liferay.portal.service.OrganizationLocalService;
030 import com.liferay.portal.service.OrganizationService;
031 import com.liferay.portal.service.ResourceLocalService;
032 import com.liferay.portal.service.ResourceService;
033 import com.liferay.portal.service.RoleLocalService;
034 import com.liferay.portal.service.RoleService;
035 import com.liferay.portal.service.UserGroupLocalService;
036 import com.liferay.portal.service.UserGroupService;
037 import com.liferay.portal.service.UserLocalService;
038 import com.liferay.portal.service.UserService;
039 import com.liferay.portal.service.base.PrincipalBean;
040 import com.liferay.portal.service.persistence.CompanyPersistence;
041 import com.liferay.portal.service.persistence.GroupFinder;
042 import com.liferay.portal.service.persistence.GroupPersistence;
043 import com.liferay.portal.service.persistence.OrganizationFinder;
044 import com.liferay.portal.service.persistence.OrganizationPersistence;
045 import com.liferay.portal.service.persistence.ResourceFinder;
046 import com.liferay.portal.service.persistence.ResourcePersistence;
047 import com.liferay.portal.service.persistence.RoleFinder;
048 import com.liferay.portal.service.persistence.RolePersistence;
049 import com.liferay.portal.service.persistence.UserFinder;
050 import com.liferay.portal.service.persistence.UserGroupFinder;
051 import com.liferay.portal.service.persistence.UserGroupPersistence;
052 import com.liferay.portal.service.persistence.UserPersistence;
053
054 import com.liferay.portlet.announcements.service.AnnouncementsDeliveryLocalService;
055 import com.liferay.portlet.announcements.service.AnnouncementsDeliveryService;
056 import com.liferay.portlet.announcements.service.AnnouncementsEntryLocalService;
057 import com.liferay.portlet.announcements.service.AnnouncementsEntryService;
058 import com.liferay.portlet.announcements.service.AnnouncementsFlagLocalService;
059 import com.liferay.portlet.announcements.service.AnnouncementsFlagService;
060 import com.liferay.portlet.announcements.service.persistence.AnnouncementsDeliveryPersistence;
061 import com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryFinder;
062 import com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryPersistence;
063 import com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence;
064
065 import javax.sql.DataSource;
066
067
083 public abstract class AnnouncementsEntryServiceBaseImpl extends PrincipalBean
084 implements AnnouncementsEntryService {
085
090 public AnnouncementsDeliveryLocalService getAnnouncementsDeliveryLocalService() {
091 return announcementsDeliveryLocalService;
092 }
093
094
099 public void setAnnouncementsDeliveryLocalService(
100 AnnouncementsDeliveryLocalService announcementsDeliveryLocalService) {
101 this.announcementsDeliveryLocalService = announcementsDeliveryLocalService;
102 }
103
104
109 public AnnouncementsDeliveryService getAnnouncementsDeliveryService() {
110 return announcementsDeliveryService;
111 }
112
113
118 public void setAnnouncementsDeliveryService(
119 AnnouncementsDeliveryService announcementsDeliveryService) {
120 this.announcementsDeliveryService = announcementsDeliveryService;
121 }
122
123
128 public AnnouncementsDeliveryPersistence getAnnouncementsDeliveryPersistence() {
129 return announcementsDeliveryPersistence;
130 }
131
132
137 public void setAnnouncementsDeliveryPersistence(
138 AnnouncementsDeliveryPersistence announcementsDeliveryPersistence) {
139 this.announcementsDeliveryPersistence = announcementsDeliveryPersistence;
140 }
141
142
147 public AnnouncementsEntryLocalService getAnnouncementsEntryLocalService() {
148 return announcementsEntryLocalService;
149 }
150
151
156 public void setAnnouncementsEntryLocalService(
157 AnnouncementsEntryLocalService announcementsEntryLocalService) {
158 this.announcementsEntryLocalService = announcementsEntryLocalService;
159 }
160
161
166 public AnnouncementsEntryService getAnnouncementsEntryService() {
167 return announcementsEntryService;
168 }
169
170
175 public void setAnnouncementsEntryService(
176 AnnouncementsEntryService announcementsEntryService) {
177 this.announcementsEntryService = announcementsEntryService;
178 }
179
180
185 public AnnouncementsEntryPersistence getAnnouncementsEntryPersistence() {
186 return announcementsEntryPersistence;
187 }
188
189
194 public void setAnnouncementsEntryPersistence(
195 AnnouncementsEntryPersistence announcementsEntryPersistence) {
196 this.announcementsEntryPersistence = announcementsEntryPersistence;
197 }
198
199
204 public AnnouncementsEntryFinder getAnnouncementsEntryFinder() {
205 return announcementsEntryFinder;
206 }
207
208
213 public void setAnnouncementsEntryFinder(
214 AnnouncementsEntryFinder announcementsEntryFinder) {
215 this.announcementsEntryFinder = announcementsEntryFinder;
216 }
217
218
223 public AnnouncementsFlagLocalService getAnnouncementsFlagLocalService() {
224 return announcementsFlagLocalService;
225 }
226
227
232 public void setAnnouncementsFlagLocalService(
233 AnnouncementsFlagLocalService announcementsFlagLocalService) {
234 this.announcementsFlagLocalService = announcementsFlagLocalService;
235 }
236
237
242 public AnnouncementsFlagService getAnnouncementsFlagService() {
243 return announcementsFlagService;
244 }
245
246
251 public void setAnnouncementsFlagService(
252 AnnouncementsFlagService announcementsFlagService) {
253 this.announcementsFlagService = announcementsFlagService;
254 }
255
256
261 public AnnouncementsFlagPersistence getAnnouncementsFlagPersistence() {
262 return announcementsFlagPersistence;
263 }
264
265
270 public void setAnnouncementsFlagPersistence(
271 AnnouncementsFlagPersistence announcementsFlagPersistence) {
272 this.announcementsFlagPersistence = announcementsFlagPersistence;
273 }
274
275
280 public CounterLocalService getCounterLocalService() {
281 return counterLocalService;
282 }
283
284
289 public void setCounterLocalService(CounterLocalService counterLocalService) {
290 this.counterLocalService = counterLocalService;
291 }
292
293
298 public MailService getMailService() {
299 return mailService;
300 }
301
302
307 public void setMailService(MailService mailService) {
308 this.mailService = mailService;
309 }
310
311
316 public CompanyLocalService getCompanyLocalService() {
317 return companyLocalService;
318 }
319
320
325 public void setCompanyLocalService(CompanyLocalService companyLocalService) {
326 this.companyLocalService = companyLocalService;
327 }
328
329
334 public CompanyService getCompanyService() {
335 return companyService;
336 }
337
338
343 public void setCompanyService(CompanyService companyService) {
344 this.companyService = companyService;
345 }
346
347
352 public CompanyPersistence getCompanyPersistence() {
353 return companyPersistence;
354 }
355
356
361 public void setCompanyPersistence(CompanyPersistence companyPersistence) {
362 this.companyPersistence = companyPersistence;
363 }
364
365
370 public GroupLocalService getGroupLocalService() {
371 return groupLocalService;
372 }
373
374
379 public void setGroupLocalService(GroupLocalService groupLocalService) {
380 this.groupLocalService = groupLocalService;
381 }
382
383
388 public GroupService getGroupService() {
389 return groupService;
390 }
391
392
397 public void setGroupService(GroupService groupService) {
398 this.groupService = groupService;
399 }
400
401
406 public GroupPersistence getGroupPersistence() {
407 return groupPersistence;
408 }
409
410
415 public void setGroupPersistence(GroupPersistence groupPersistence) {
416 this.groupPersistence = groupPersistence;
417 }
418
419
424 public GroupFinder getGroupFinder() {
425 return groupFinder;
426 }
427
428
433 public void setGroupFinder(GroupFinder groupFinder) {
434 this.groupFinder = groupFinder;
435 }
436
437
442 public OrganizationLocalService getOrganizationLocalService() {
443 return organizationLocalService;
444 }
445
446
451 public void setOrganizationLocalService(
452 OrganizationLocalService organizationLocalService) {
453 this.organizationLocalService = organizationLocalService;
454 }
455
456
461 public OrganizationService getOrganizationService() {
462 return organizationService;
463 }
464
465
470 public void setOrganizationService(OrganizationService organizationService) {
471 this.organizationService = organizationService;
472 }
473
474
479 public OrganizationPersistence getOrganizationPersistence() {
480 return organizationPersistence;
481 }
482
483
488 public void setOrganizationPersistence(
489 OrganizationPersistence organizationPersistence) {
490 this.organizationPersistence = organizationPersistence;
491 }
492
493
498 public OrganizationFinder getOrganizationFinder() {
499 return organizationFinder;
500 }
501
502
507 public void setOrganizationFinder(OrganizationFinder organizationFinder) {
508 this.organizationFinder = organizationFinder;
509 }
510
511
516 public ResourceLocalService getResourceLocalService() {
517 return resourceLocalService;
518 }
519
520
525 public void setResourceLocalService(
526 ResourceLocalService resourceLocalService) {
527 this.resourceLocalService = resourceLocalService;
528 }
529
530
535 public ResourceService getResourceService() {
536 return resourceService;
537 }
538
539
544 public void setResourceService(ResourceService resourceService) {
545 this.resourceService = resourceService;
546 }
547
548
553 public ResourcePersistence getResourcePersistence() {
554 return resourcePersistence;
555 }
556
557
562 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
563 this.resourcePersistence = resourcePersistence;
564 }
565
566
571 public ResourceFinder getResourceFinder() {
572 return resourceFinder;
573 }
574
575
580 public void setResourceFinder(ResourceFinder resourceFinder) {
581 this.resourceFinder = resourceFinder;
582 }
583
584
589 public RoleLocalService getRoleLocalService() {
590 return roleLocalService;
591 }
592
593
598 public void setRoleLocalService(RoleLocalService roleLocalService) {
599 this.roleLocalService = roleLocalService;
600 }
601
602
607 public RoleService getRoleService() {
608 return roleService;
609 }
610
611
616 public void setRoleService(RoleService roleService) {
617 this.roleService = roleService;
618 }
619
620
625 public RolePersistence getRolePersistence() {
626 return rolePersistence;
627 }
628
629
634 public void setRolePersistence(RolePersistence rolePersistence) {
635 this.rolePersistence = rolePersistence;
636 }
637
638
643 public RoleFinder getRoleFinder() {
644 return roleFinder;
645 }
646
647
652 public void setRoleFinder(RoleFinder roleFinder) {
653 this.roleFinder = roleFinder;
654 }
655
656
661 public UserLocalService getUserLocalService() {
662 return userLocalService;
663 }
664
665
670 public void setUserLocalService(UserLocalService userLocalService) {
671 this.userLocalService = userLocalService;
672 }
673
674
679 public UserService getUserService() {
680 return userService;
681 }
682
683
688 public void setUserService(UserService userService) {
689 this.userService = userService;
690 }
691
692
697 public UserPersistence getUserPersistence() {
698 return userPersistence;
699 }
700
701
706 public void setUserPersistence(UserPersistence userPersistence) {
707 this.userPersistence = userPersistence;
708 }
709
710
715 public UserFinder getUserFinder() {
716 return userFinder;
717 }
718
719
724 public void setUserFinder(UserFinder userFinder) {
725 this.userFinder = userFinder;
726 }
727
728
733 public UserGroupLocalService getUserGroupLocalService() {
734 return userGroupLocalService;
735 }
736
737
742 public void setUserGroupLocalService(
743 UserGroupLocalService userGroupLocalService) {
744 this.userGroupLocalService = userGroupLocalService;
745 }
746
747
752 public UserGroupService getUserGroupService() {
753 return userGroupService;
754 }
755
756
761 public void setUserGroupService(UserGroupService userGroupService) {
762 this.userGroupService = userGroupService;
763 }
764
765
770 public UserGroupPersistence getUserGroupPersistence() {
771 return userGroupPersistence;
772 }
773
774
779 public void setUserGroupPersistence(
780 UserGroupPersistence userGroupPersistence) {
781 this.userGroupPersistence = userGroupPersistence;
782 }
783
784
789 public UserGroupFinder getUserGroupFinder() {
790 return userGroupFinder;
791 }
792
793
798 public void setUserGroupFinder(UserGroupFinder userGroupFinder) {
799 this.userGroupFinder = userGroupFinder;
800 }
801
802
807 protected void runSQL(String sql) throws SystemException {
808 try {
809 DataSource dataSource = announcementsEntryPersistence.getDataSource();
810
811 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
812 sql, new int[0]);
813
814 sqlUpdate.update();
815 }
816 catch (Exception e) {
817 throw new SystemException(e);
818 }
819 }
820
821 @BeanReference(type = AnnouncementsDeliveryLocalService.class)
822 protected AnnouncementsDeliveryLocalService announcementsDeliveryLocalService;
823 @BeanReference(type = AnnouncementsDeliveryService.class)
824 protected AnnouncementsDeliveryService announcementsDeliveryService;
825 @BeanReference(type = AnnouncementsDeliveryPersistence.class)
826 protected AnnouncementsDeliveryPersistence announcementsDeliveryPersistence;
827 @BeanReference(type = AnnouncementsEntryLocalService.class)
828 protected AnnouncementsEntryLocalService announcementsEntryLocalService;
829 @BeanReference(type = AnnouncementsEntryService.class)
830 protected AnnouncementsEntryService announcementsEntryService;
831 @BeanReference(type = AnnouncementsEntryPersistence.class)
832 protected AnnouncementsEntryPersistence announcementsEntryPersistence;
833 @BeanReference(type = AnnouncementsEntryFinder.class)
834 protected AnnouncementsEntryFinder announcementsEntryFinder;
835 @BeanReference(type = AnnouncementsFlagLocalService.class)
836 protected AnnouncementsFlagLocalService announcementsFlagLocalService;
837 @BeanReference(type = AnnouncementsFlagService.class)
838 protected AnnouncementsFlagService announcementsFlagService;
839 @BeanReference(type = AnnouncementsFlagPersistence.class)
840 protected AnnouncementsFlagPersistence announcementsFlagPersistence;
841 @BeanReference(type = CounterLocalService.class)
842 protected CounterLocalService counterLocalService;
843 @BeanReference(type = MailService.class)
844 protected MailService mailService;
845 @BeanReference(type = CompanyLocalService.class)
846 protected CompanyLocalService companyLocalService;
847 @BeanReference(type = CompanyService.class)
848 protected CompanyService companyService;
849 @BeanReference(type = CompanyPersistence.class)
850 protected CompanyPersistence companyPersistence;
851 @BeanReference(type = GroupLocalService.class)
852 protected GroupLocalService groupLocalService;
853 @BeanReference(type = GroupService.class)
854 protected GroupService groupService;
855 @BeanReference(type = GroupPersistence.class)
856 protected GroupPersistence groupPersistence;
857 @BeanReference(type = GroupFinder.class)
858 protected GroupFinder groupFinder;
859 @BeanReference(type = OrganizationLocalService.class)
860 protected OrganizationLocalService organizationLocalService;
861 @BeanReference(type = OrganizationService.class)
862 protected OrganizationService organizationService;
863 @BeanReference(type = OrganizationPersistence.class)
864 protected OrganizationPersistence organizationPersistence;
865 @BeanReference(type = OrganizationFinder.class)
866 protected OrganizationFinder organizationFinder;
867 @BeanReference(type = ResourceLocalService.class)
868 protected ResourceLocalService resourceLocalService;
869 @BeanReference(type = ResourceService.class)
870 protected ResourceService resourceService;
871 @BeanReference(type = ResourcePersistence.class)
872 protected ResourcePersistence resourcePersistence;
873 @BeanReference(type = ResourceFinder.class)
874 protected ResourceFinder resourceFinder;
875 @BeanReference(type = RoleLocalService.class)
876 protected RoleLocalService roleLocalService;
877 @BeanReference(type = RoleService.class)
878 protected RoleService roleService;
879 @BeanReference(type = RolePersistence.class)
880 protected RolePersistence rolePersistence;
881 @BeanReference(type = RoleFinder.class)
882 protected RoleFinder roleFinder;
883 @BeanReference(type = UserLocalService.class)
884 protected UserLocalService userLocalService;
885 @BeanReference(type = UserService.class)
886 protected UserService userService;
887 @BeanReference(type = UserPersistence.class)
888 protected UserPersistence userPersistence;
889 @BeanReference(type = UserFinder.class)
890 protected UserFinder userFinder;
891 @BeanReference(type = UserGroupLocalService.class)
892 protected UserGroupLocalService userGroupLocalService;
893 @BeanReference(type = UserGroupService.class)
894 protected UserGroupService userGroupService;
895 @BeanReference(type = UserGroupPersistence.class)
896 protected UserGroupPersistence userGroupPersistence;
897 @BeanReference(type = UserGroupFinder.class)
898 protected UserGroupFinder userGroupFinder;
899 }