001
014
015 package com.liferay.portlet.messageboards.service.base;
016
017 import com.liferay.counter.service.CounterLocalService;
018
019 import com.liferay.documentlibrary.service.DLLocalService;
020 import com.liferay.documentlibrary.service.DLService;
021
022 import com.liferay.portal.kernel.annotation.BeanReference;
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.LockLocalService;
027 import com.liferay.portal.service.ResourceLocalService;
028 import com.liferay.portal.service.ResourceService;
029 import com.liferay.portal.service.UserLocalService;
030 import com.liferay.portal.service.UserService;
031 import com.liferay.portal.service.WorkflowInstanceLinkLocalService;
032 import com.liferay.portal.service.base.PrincipalBean;
033 import com.liferay.portal.service.persistence.LockPersistence;
034 import com.liferay.portal.service.persistence.ResourceFinder;
035 import com.liferay.portal.service.persistence.ResourcePersistence;
036 import com.liferay.portal.service.persistence.UserFinder;
037 import com.liferay.portal.service.persistence.UserPersistence;
038 import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
039
040 import com.liferay.portlet.asset.service.AssetEntryLocalService;
041 import com.liferay.portlet.asset.service.AssetEntryService;
042 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
043 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
044 import com.liferay.portlet.messageboards.service.MBBanLocalService;
045 import com.liferay.portlet.messageboards.service.MBBanService;
046 import com.liferay.portlet.messageboards.service.MBCategoryLocalService;
047 import com.liferay.portlet.messageboards.service.MBCategoryService;
048 import com.liferay.portlet.messageboards.service.MBDiscussionLocalService;
049 import com.liferay.portlet.messageboards.service.MBMailingListLocalService;
050 import com.liferay.portlet.messageboards.service.MBMessageFlagLocalService;
051 import com.liferay.portlet.messageboards.service.MBMessageFlagService;
052 import com.liferay.portlet.messageboards.service.MBMessageLocalService;
053 import com.liferay.portlet.messageboards.service.MBMessageService;
054 import com.liferay.portlet.messageboards.service.MBStatsUserLocalService;
055 import com.liferay.portlet.messageboards.service.MBThreadLocalService;
056 import com.liferay.portlet.messageboards.service.MBThreadService;
057 import com.liferay.portlet.messageboards.service.persistence.MBBanPersistence;
058 import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
059 import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
060 import com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence;
061 import com.liferay.portlet.messageboards.service.persistence.MBMailingListPersistence;
062 import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
063 import com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence;
064 import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
065 import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
066 import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
067 import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
068 import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
069 import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
070 import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
071 import com.liferay.portlet.social.service.SocialActivityLocalService;
072 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
073 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
074
075 import javax.sql.DataSource;
076
077
093 public abstract class MBThreadServiceBaseImpl extends PrincipalBean
094 implements MBThreadService {
095
100 public MBBanLocalService getMBBanLocalService() {
101 return mbBanLocalService;
102 }
103
104
109 public void setMBBanLocalService(MBBanLocalService mbBanLocalService) {
110 this.mbBanLocalService = mbBanLocalService;
111 }
112
113
118 public MBBanService getMBBanService() {
119 return mbBanService;
120 }
121
122
127 public void setMBBanService(MBBanService mbBanService) {
128 this.mbBanService = mbBanService;
129 }
130
131
136 public MBBanPersistence getMBBanPersistence() {
137 return mbBanPersistence;
138 }
139
140
145 public void setMBBanPersistence(MBBanPersistence mbBanPersistence) {
146 this.mbBanPersistence = mbBanPersistence;
147 }
148
149
154 public MBCategoryLocalService getMBCategoryLocalService() {
155 return mbCategoryLocalService;
156 }
157
158
163 public void setMBCategoryLocalService(
164 MBCategoryLocalService mbCategoryLocalService) {
165 this.mbCategoryLocalService = mbCategoryLocalService;
166 }
167
168
173 public MBCategoryService getMBCategoryService() {
174 return mbCategoryService;
175 }
176
177
182 public void setMBCategoryService(MBCategoryService mbCategoryService) {
183 this.mbCategoryService = mbCategoryService;
184 }
185
186
191 public MBCategoryPersistence getMBCategoryPersistence() {
192 return mbCategoryPersistence;
193 }
194
195
200 public void setMBCategoryPersistence(
201 MBCategoryPersistence mbCategoryPersistence) {
202 this.mbCategoryPersistence = mbCategoryPersistence;
203 }
204
205
210 public MBCategoryFinder getMBCategoryFinder() {
211 return mbCategoryFinder;
212 }
213
214
219 public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
220 this.mbCategoryFinder = mbCategoryFinder;
221 }
222
223
228 public MBDiscussionLocalService getMBDiscussionLocalService() {
229 return mbDiscussionLocalService;
230 }
231
232
237 public void setMBDiscussionLocalService(
238 MBDiscussionLocalService mbDiscussionLocalService) {
239 this.mbDiscussionLocalService = mbDiscussionLocalService;
240 }
241
242
247 public MBDiscussionPersistence getMBDiscussionPersistence() {
248 return mbDiscussionPersistence;
249 }
250
251
256 public void setMBDiscussionPersistence(
257 MBDiscussionPersistence mbDiscussionPersistence) {
258 this.mbDiscussionPersistence = mbDiscussionPersistence;
259 }
260
261
266 public MBMailingListLocalService getMBMailingListLocalService() {
267 return mbMailingListLocalService;
268 }
269
270
275 public void setMBMailingListLocalService(
276 MBMailingListLocalService mbMailingListLocalService) {
277 this.mbMailingListLocalService = mbMailingListLocalService;
278 }
279
280
285 public MBMailingListPersistence getMBMailingListPersistence() {
286 return mbMailingListPersistence;
287 }
288
289
294 public void setMBMailingListPersistence(
295 MBMailingListPersistence mbMailingListPersistence) {
296 this.mbMailingListPersistence = mbMailingListPersistence;
297 }
298
299
304 public MBMessageLocalService getMBMessageLocalService() {
305 return mbMessageLocalService;
306 }
307
308
313 public void setMBMessageLocalService(
314 MBMessageLocalService mbMessageLocalService) {
315 this.mbMessageLocalService = mbMessageLocalService;
316 }
317
318
323 public MBMessageService getMBMessageService() {
324 return mbMessageService;
325 }
326
327
332 public void setMBMessageService(MBMessageService mbMessageService) {
333 this.mbMessageService = mbMessageService;
334 }
335
336
341 public MBMessagePersistence getMBMessagePersistence() {
342 return mbMessagePersistence;
343 }
344
345
350 public void setMBMessagePersistence(
351 MBMessagePersistence mbMessagePersistence) {
352 this.mbMessagePersistence = mbMessagePersistence;
353 }
354
355
360 public MBMessageFinder getMBMessageFinder() {
361 return mbMessageFinder;
362 }
363
364
369 public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
370 this.mbMessageFinder = mbMessageFinder;
371 }
372
373
378 public MBMessageFlagLocalService getMBMessageFlagLocalService() {
379 return mbMessageFlagLocalService;
380 }
381
382
387 public void setMBMessageFlagLocalService(
388 MBMessageFlagLocalService mbMessageFlagLocalService) {
389 this.mbMessageFlagLocalService = mbMessageFlagLocalService;
390 }
391
392
397 public MBMessageFlagService getMBMessageFlagService() {
398 return mbMessageFlagService;
399 }
400
401
406 public void setMBMessageFlagService(
407 MBMessageFlagService mbMessageFlagService) {
408 this.mbMessageFlagService = mbMessageFlagService;
409 }
410
411
416 public MBMessageFlagPersistence getMBMessageFlagPersistence() {
417 return mbMessageFlagPersistence;
418 }
419
420
425 public void setMBMessageFlagPersistence(
426 MBMessageFlagPersistence mbMessageFlagPersistence) {
427 this.mbMessageFlagPersistence = mbMessageFlagPersistence;
428 }
429
430
435 public MBStatsUserLocalService getMBStatsUserLocalService() {
436 return mbStatsUserLocalService;
437 }
438
439
444 public void setMBStatsUserLocalService(
445 MBStatsUserLocalService mbStatsUserLocalService) {
446 this.mbStatsUserLocalService = mbStatsUserLocalService;
447 }
448
449
454 public MBStatsUserPersistence getMBStatsUserPersistence() {
455 return mbStatsUserPersistence;
456 }
457
458
463 public void setMBStatsUserPersistence(
464 MBStatsUserPersistence mbStatsUserPersistence) {
465 this.mbStatsUserPersistence = mbStatsUserPersistence;
466 }
467
468
473 public MBThreadLocalService getMBThreadLocalService() {
474 return mbThreadLocalService;
475 }
476
477
482 public void setMBThreadLocalService(
483 MBThreadLocalService mbThreadLocalService) {
484 this.mbThreadLocalService = mbThreadLocalService;
485 }
486
487
492 public MBThreadService getMBThreadService() {
493 return mbThreadService;
494 }
495
496
501 public void setMBThreadService(MBThreadService mbThreadService) {
502 this.mbThreadService = mbThreadService;
503 }
504
505
510 public MBThreadPersistence getMBThreadPersistence() {
511 return mbThreadPersistence;
512 }
513
514
519 public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
520 this.mbThreadPersistence = mbThreadPersistence;
521 }
522
523
528 public MBThreadFinder getMBThreadFinder() {
529 return mbThreadFinder;
530 }
531
532
537 public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
538 this.mbThreadFinder = mbThreadFinder;
539 }
540
541
546 public CounterLocalService getCounterLocalService() {
547 return counterLocalService;
548 }
549
550
555 public void setCounterLocalService(CounterLocalService counterLocalService) {
556 this.counterLocalService = counterLocalService;
557 }
558
559
564 public DLLocalService getDLLocalService() {
565 return dlLocalService;
566 }
567
568
573 public void setDLLocalService(DLLocalService dlLocalService) {
574 this.dlLocalService = dlLocalService;
575 }
576
577
582 public DLService getDLService() {
583 return dlService;
584 }
585
586
591 public void setDLService(DLService dlService) {
592 this.dlService = dlService;
593 }
594
595
600 public LockLocalService getLockLocalService() {
601 return lockLocalService;
602 }
603
604
609 public void setLockLocalService(LockLocalService lockLocalService) {
610 this.lockLocalService = lockLocalService;
611 }
612
613
618 public LockPersistence getLockPersistence() {
619 return lockPersistence;
620 }
621
622
627 public void setLockPersistence(LockPersistence lockPersistence) {
628 this.lockPersistence = lockPersistence;
629 }
630
631
636 public ResourceLocalService getResourceLocalService() {
637 return resourceLocalService;
638 }
639
640
645 public void setResourceLocalService(
646 ResourceLocalService resourceLocalService) {
647 this.resourceLocalService = resourceLocalService;
648 }
649
650
655 public ResourceService getResourceService() {
656 return resourceService;
657 }
658
659
664 public void setResourceService(ResourceService resourceService) {
665 this.resourceService = resourceService;
666 }
667
668
673 public ResourcePersistence getResourcePersistence() {
674 return resourcePersistence;
675 }
676
677
682 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
683 this.resourcePersistence = resourcePersistence;
684 }
685
686
691 public ResourceFinder getResourceFinder() {
692 return resourceFinder;
693 }
694
695
700 public void setResourceFinder(ResourceFinder resourceFinder) {
701 this.resourceFinder = resourceFinder;
702 }
703
704
709 public UserLocalService getUserLocalService() {
710 return userLocalService;
711 }
712
713
718 public void setUserLocalService(UserLocalService userLocalService) {
719 this.userLocalService = userLocalService;
720 }
721
722
727 public UserService getUserService() {
728 return userService;
729 }
730
731
736 public void setUserService(UserService userService) {
737 this.userService = userService;
738 }
739
740
745 public UserPersistence getUserPersistence() {
746 return userPersistence;
747 }
748
749
754 public void setUserPersistence(UserPersistence userPersistence) {
755 this.userPersistence = userPersistence;
756 }
757
758
763 public UserFinder getUserFinder() {
764 return userFinder;
765 }
766
767
772 public void setUserFinder(UserFinder userFinder) {
773 this.userFinder = userFinder;
774 }
775
776
781 public WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
782 return workflowInstanceLinkLocalService;
783 }
784
785
790 public void setWorkflowInstanceLinkLocalService(
791 WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
792 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
793 }
794
795
800 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
801 return workflowInstanceLinkPersistence;
802 }
803
804
809 public void setWorkflowInstanceLinkPersistence(
810 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
811 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
812 }
813
814
819 public AssetEntryLocalService getAssetEntryLocalService() {
820 return assetEntryLocalService;
821 }
822
823
828 public void setAssetEntryLocalService(
829 AssetEntryLocalService assetEntryLocalService) {
830 this.assetEntryLocalService = assetEntryLocalService;
831 }
832
833
838 public AssetEntryService getAssetEntryService() {
839 return assetEntryService;
840 }
841
842
847 public void setAssetEntryService(AssetEntryService assetEntryService) {
848 this.assetEntryService = assetEntryService;
849 }
850
851
856 public AssetEntryPersistence getAssetEntryPersistence() {
857 return assetEntryPersistence;
858 }
859
860
865 public void setAssetEntryPersistence(
866 AssetEntryPersistence assetEntryPersistence) {
867 this.assetEntryPersistence = assetEntryPersistence;
868 }
869
870
875 public AssetEntryFinder getAssetEntryFinder() {
876 return assetEntryFinder;
877 }
878
879
884 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
885 this.assetEntryFinder = assetEntryFinder;
886 }
887
888
893 public RatingsStatsLocalService getRatingsStatsLocalService() {
894 return ratingsStatsLocalService;
895 }
896
897
902 public void setRatingsStatsLocalService(
903 RatingsStatsLocalService ratingsStatsLocalService) {
904 this.ratingsStatsLocalService = ratingsStatsLocalService;
905 }
906
907
912 public RatingsStatsPersistence getRatingsStatsPersistence() {
913 return ratingsStatsPersistence;
914 }
915
916
921 public void setRatingsStatsPersistence(
922 RatingsStatsPersistence ratingsStatsPersistence) {
923 this.ratingsStatsPersistence = ratingsStatsPersistence;
924 }
925
926
931 public RatingsStatsFinder getRatingsStatsFinder() {
932 return ratingsStatsFinder;
933 }
934
935
940 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
941 this.ratingsStatsFinder = ratingsStatsFinder;
942 }
943
944
949 public SocialActivityLocalService getSocialActivityLocalService() {
950 return socialActivityLocalService;
951 }
952
953
958 public void setSocialActivityLocalService(
959 SocialActivityLocalService socialActivityLocalService) {
960 this.socialActivityLocalService = socialActivityLocalService;
961 }
962
963
968 public SocialActivityPersistence getSocialActivityPersistence() {
969 return socialActivityPersistence;
970 }
971
972
977 public void setSocialActivityPersistence(
978 SocialActivityPersistence socialActivityPersistence) {
979 this.socialActivityPersistence = socialActivityPersistence;
980 }
981
982
987 public SocialActivityFinder getSocialActivityFinder() {
988 return socialActivityFinder;
989 }
990
991
996 public void setSocialActivityFinder(
997 SocialActivityFinder socialActivityFinder) {
998 this.socialActivityFinder = socialActivityFinder;
999 }
1000
1001
1006 protected void runSQL(String sql) throws SystemException {
1007 try {
1008 DataSource dataSource = mbThreadPersistence.getDataSource();
1009
1010 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1011 sql, new int[0]);
1012
1013 sqlUpdate.update();
1014 }
1015 catch (Exception e) {
1016 throw new SystemException(e);
1017 }
1018 }
1019
1020 @BeanReference(type = MBBanLocalService.class)
1021 protected MBBanLocalService mbBanLocalService;
1022 @BeanReference(type = MBBanService.class)
1023 protected MBBanService mbBanService;
1024 @BeanReference(type = MBBanPersistence.class)
1025 protected MBBanPersistence mbBanPersistence;
1026 @BeanReference(type = MBCategoryLocalService.class)
1027 protected MBCategoryLocalService mbCategoryLocalService;
1028 @BeanReference(type = MBCategoryService.class)
1029 protected MBCategoryService mbCategoryService;
1030 @BeanReference(type = MBCategoryPersistence.class)
1031 protected MBCategoryPersistence mbCategoryPersistence;
1032 @BeanReference(type = MBCategoryFinder.class)
1033 protected MBCategoryFinder mbCategoryFinder;
1034 @BeanReference(type = MBDiscussionLocalService.class)
1035 protected MBDiscussionLocalService mbDiscussionLocalService;
1036 @BeanReference(type = MBDiscussionPersistence.class)
1037 protected MBDiscussionPersistence mbDiscussionPersistence;
1038 @BeanReference(type = MBMailingListLocalService.class)
1039 protected MBMailingListLocalService mbMailingListLocalService;
1040 @BeanReference(type = MBMailingListPersistence.class)
1041 protected MBMailingListPersistence mbMailingListPersistence;
1042 @BeanReference(type = MBMessageLocalService.class)
1043 protected MBMessageLocalService mbMessageLocalService;
1044 @BeanReference(type = MBMessageService.class)
1045 protected MBMessageService mbMessageService;
1046 @BeanReference(type = MBMessagePersistence.class)
1047 protected MBMessagePersistence mbMessagePersistence;
1048 @BeanReference(type = MBMessageFinder.class)
1049 protected MBMessageFinder mbMessageFinder;
1050 @BeanReference(type = MBMessageFlagLocalService.class)
1051 protected MBMessageFlagLocalService mbMessageFlagLocalService;
1052 @BeanReference(type = MBMessageFlagService.class)
1053 protected MBMessageFlagService mbMessageFlagService;
1054 @BeanReference(type = MBMessageFlagPersistence.class)
1055 protected MBMessageFlagPersistence mbMessageFlagPersistence;
1056 @BeanReference(type = MBStatsUserLocalService.class)
1057 protected MBStatsUserLocalService mbStatsUserLocalService;
1058 @BeanReference(type = MBStatsUserPersistence.class)
1059 protected MBStatsUserPersistence mbStatsUserPersistence;
1060 @BeanReference(type = MBThreadLocalService.class)
1061 protected MBThreadLocalService mbThreadLocalService;
1062 @BeanReference(type = MBThreadService.class)
1063 protected MBThreadService mbThreadService;
1064 @BeanReference(type = MBThreadPersistence.class)
1065 protected MBThreadPersistence mbThreadPersistence;
1066 @BeanReference(type = MBThreadFinder.class)
1067 protected MBThreadFinder mbThreadFinder;
1068 @BeanReference(type = CounterLocalService.class)
1069 protected CounterLocalService counterLocalService;
1070 @BeanReference(type = DLLocalService.class)
1071 protected DLLocalService dlLocalService;
1072 @BeanReference(type = DLService.class)
1073 protected DLService dlService;
1074 @BeanReference(type = LockLocalService.class)
1075 protected LockLocalService lockLocalService;
1076 @BeanReference(type = LockPersistence.class)
1077 protected LockPersistence lockPersistence;
1078 @BeanReference(type = ResourceLocalService.class)
1079 protected ResourceLocalService resourceLocalService;
1080 @BeanReference(type = ResourceService.class)
1081 protected ResourceService resourceService;
1082 @BeanReference(type = ResourcePersistence.class)
1083 protected ResourcePersistence resourcePersistence;
1084 @BeanReference(type = ResourceFinder.class)
1085 protected ResourceFinder resourceFinder;
1086 @BeanReference(type = UserLocalService.class)
1087 protected UserLocalService userLocalService;
1088 @BeanReference(type = UserService.class)
1089 protected UserService userService;
1090 @BeanReference(type = UserPersistence.class)
1091 protected UserPersistence userPersistence;
1092 @BeanReference(type = UserFinder.class)
1093 protected UserFinder userFinder;
1094 @BeanReference(type = WorkflowInstanceLinkLocalService.class)
1095 protected WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1096 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1097 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1098 @BeanReference(type = AssetEntryLocalService.class)
1099 protected AssetEntryLocalService assetEntryLocalService;
1100 @BeanReference(type = AssetEntryService.class)
1101 protected AssetEntryService assetEntryService;
1102 @BeanReference(type = AssetEntryPersistence.class)
1103 protected AssetEntryPersistence assetEntryPersistence;
1104 @BeanReference(type = AssetEntryFinder.class)
1105 protected AssetEntryFinder assetEntryFinder;
1106 @BeanReference(type = RatingsStatsLocalService.class)
1107 protected RatingsStatsLocalService ratingsStatsLocalService;
1108 @BeanReference(type = RatingsStatsPersistence.class)
1109 protected RatingsStatsPersistence ratingsStatsPersistence;
1110 @BeanReference(type = RatingsStatsFinder.class)
1111 protected RatingsStatsFinder ratingsStatsFinder;
1112 @BeanReference(type = SocialActivityLocalService.class)
1113 protected SocialActivityLocalService socialActivityLocalService;
1114 @BeanReference(type = SocialActivityPersistence.class)
1115 protected SocialActivityPersistence socialActivityPersistence;
1116 @BeanReference(type = SocialActivityFinder.class)
1117 protected SocialActivityFinder socialActivityFinder;
1118 }