001
014
015 package com.liferay.portlet.messageboards.service.base;
016
017 import com.liferay.counter.service.CounterLocalService;
018
019 import com.liferay.portal.kernel.bean.BeanReference;
020 import com.liferay.portal.kernel.bean.IdentifiableBean;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023 import com.liferay.portal.kernel.exception.SystemException;
024 import com.liferay.portal.service.BaseServiceImpl;
025 import com.liferay.portal.service.LockLocalService;
026 import com.liferay.portal.service.ResourceLocalService;
027 import com.liferay.portal.service.ResourceService;
028 import com.liferay.portal.service.SubscriptionLocalService;
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.persistence.LockFinder;
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.SubscriptionPersistence;
037 import com.liferay.portal.service.persistence.UserFinder;
038 import com.liferay.portal.service.persistence.UserPersistence;
039 import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
040
041 import com.liferay.portlet.asset.service.AssetEntryLocalService;
042 import com.liferay.portlet.asset.service.AssetEntryService;
043 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
044 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
045 import com.liferay.portlet.messageboards.model.MBThread;
046 import com.liferay.portlet.messageboards.service.MBBanLocalService;
047 import com.liferay.portlet.messageboards.service.MBBanService;
048 import com.liferay.portlet.messageboards.service.MBCategoryLocalService;
049 import com.liferay.portlet.messageboards.service.MBCategoryService;
050 import com.liferay.portlet.messageboards.service.MBDiscussionLocalService;
051 import com.liferay.portlet.messageboards.service.MBMailingListLocalService;
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.MBThreadFlagLocalService;
056 import com.liferay.portlet.messageboards.service.MBThreadLocalService;
057 import com.liferay.portlet.messageboards.service.MBThreadService;
058 import com.liferay.portlet.messageboards.service.persistence.MBBanPersistence;
059 import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
060 import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
061 import com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence;
062 import com.liferay.portlet.messageboards.service.persistence.MBMailingListPersistence;
063 import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
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.MBThreadFlagPersistence;
068 import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
069 import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
070 import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
071 import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
072 import com.liferay.portlet.social.service.SocialActivityLocalService;
073 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
074 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
075
076 import javax.sql.DataSource;
077
078
090 public abstract class MBThreadServiceBaseImpl extends BaseServiceImpl
091 implements MBThreadService, IdentifiableBean {
092
097
098
103 public MBBanLocalService getMBBanLocalService() {
104 return mbBanLocalService;
105 }
106
107
112 public void setMBBanLocalService(MBBanLocalService mbBanLocalService) {
113 this.mbBanLocalService = mbBanLocalService;
114 }
115
116
121 public MBBanService getMBBanService() {
122 return mbBanService;
123 }
124
125
130 public void setMBBanService(MBBanService mbBanService) {
131 this.mbBanService = mbBanService;
132 }
133
134
139 public MBBanPersistence getMBBanPersistence() {
140 return mbBanPersistence;
141 }
142
143
148 public void setMBBanPersistence(MBBanPersistence mbBanPersistence) {
149 this.mbBanPersistence = mbBanPersistence;
150 }
151
152
157 public MBCategoryLocalService getMBCategoryLocalService() {
158 return mbCategoryLocalService;
159 }
160
161
166 public void setMBCategoryLocalService(
167 MBCategoryLocalService mbCategoryLocalService) {
168 this.mbCategoryLocalService = mbCategoryLocalService;
169 }
170
171
176 public MBCategoryService getMBCategoryService() {
177 return mbCategoryService;
178 }
179
180
185 public void setMBCategoryService(MBCategoryService mbCategoryService) {
186 this.mbCategoryService = mbCategoryService;
187 }
188
189
194 public MBCategoryPersistence getMBCategoryPersistence() {
195 return mbCategoryPersistence;
196 }
197
198
203 public void setMBCategoryPersistence(
204 MBCategoryPersistence mbCategoryPersistence) {
205 this.mbCategoryPersistence = mbCategoryPersistence;
206 }
207
208
213 public MBCategoryFinder getMBCategoryFinder() {
214 return mbCategoryFinder;
215 }
216
217
222 public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
223 this.mbCategoryFinder = mbCategoryFinder;
224 }
225
226
231 public MBDiscussionLocalService getMBDiscussionLocalService() {
232 return mbDiscussionLocalService;
233 }
234
235
240 public void setMBDiscussionLocalService(
241 MBDiscussionLocalService mbDiscussionLocalService) {
242 this.mbDiscussionLocalService = mbDiscussionLocalService;
243 }
244
245
250 public MBDiscussionPersistence getMBDiscussionPersistence() {
251 return mbDiscussionPersistence;
252 }
253
254
259 public void setMBDiscussionPersistence(
260 MBDiscussionPersistence mbDiscussionPersistence) {
261 this.mbDiscussionPersistence = mbDiscussionPersistence;
262 }
263
264
269 public MBMailingListLocalService getMBMailingListLocalService() {
270 return mbMailingListLocalService;
271 }
272
273
278 public void setMBMailingListLocalService(
279 MBMailingListLocalService mbMailingListLocalService) {
280 this.mbMailingListLocalService = mbMailingListLocalService;
281 }
282
283
288 public MBMailingListPersistence getMBMailingListPersistence() {
289 return mbMailingListPersistence;
290 }
291
292
297 public void setMBMailingListPersistence(
298 MBMailingListPersistence mbMailingListPersistence) {
299 this.mbMailingListPersistence = mbMailingListPersistence;
300 }
301
302
307 public MBMessageLocalService getMBMessageLocalService() {
308 return mbMessageLocalService;
309 }
310
311
316 public void setMBMessageLocalService(
317 MBMessageLocalService mbMessageLocalService) {
318 this.mbMessageLocalService = mbMessageLocalService;
319 }
320
321
326 public MBMessageService getMBMessageService() {
327 return mbMessageService;
328 }
329
330
335 public void setMBMessageService(MBMessageService mbMessageService) {
336 this.mbMessageService = mbMessageService;
337 }
338
339
344 public MBMessagePersistence getMBMessagePersistence() {
345 return mbMessagePersistence;
346 }
347
348
353 public void setMBMessagePersistence(
354 MBMessagePersistence mbMessagePersistence) {
355 this.mbMessagePersistence = mbMessagePersistence;
356 }
357
358
363 public MBMessageFinder getMBMessageFinder() {
364 return mbMessageFinder;
365 }
366
367
372 public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
373 this.mbMessageFinder = mbMessageFinder;
374 }
375
376
381 public MBStatsUserLocalService getMBStatsUserLocalService() {
382 return mbStatsUserLocalService;
383 }
384
385
390 public void setMBStatsUserLocalService(
391 MBStatsUserLocalService mbStatsUserLocalService) {
392 this.mbStatsUserLocalService = mbStatsUserLocalService;
393 }
394
395
400 public MBStatsUserPersistence getMBStatsUserPersistence() {
401 return mbStatsUserPersistence;
402 }
403
404
409 public void setMBStatsUserPersistence(
410 MBStatsUserPersistence mbStatsUserPersistence) {
411 this.mbStatsUserPersistence = mbStatsUserPersistence;
412 }
413
414
419 public MBThreadLocalService getMBThreadLocalService() {
420 return mbThreadLocalService;
421 }
422
423
428 public void setMBThreadLocalService(
429 MBThreadLocalService mbThreadLocalService) {
430 this.mbThreadLocalService = mbThreadLocalService;
431 }
432
433
438 public MBThreadService getMBThreadService() {
439 return mbThreadService;
440 }
441
442
447 public void setMBThreadService(MBThreadService mbThreadService) {
448 this.mbThreadService = mbThreadService;
449 }
450
451
456 public MBThreadPersistence getMBThreadPersistence() {
457 return mbThreadPersistence;
458 }
459
460
465 public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
466 this.mbThreadPersistence = mbThreadPersistence;
467 }
468
469
474 public MBThreadFinder getMBThreadFinder() {
475 return mbThreadFinder;
476 }
477
478
483 public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
484 this.mbThreadFinder = mbThreadFinder;
485 }
486
487
492 public MBThreadFlagLocalService getMBThreadFlagLocalService() {
493 return mbThreadFlagLocalService;
494 }
495
496
501 public void setMBThreadFlagLocalService(
502 MBThreadFlagLocalService mbThreadFlagLocalService) {
503 this.mbThreadFlagLocalService = mbThreadFlagLocalService;
504 }
505
506
511 public MBThreadFlagPersistence getMBThreadFlagPersistence() {
512 return mbThreadFlagPersistence;
513 }
514
515
520 public void setMBThreadFlagPersistence(
521 MBThreadFlagPersistence mbThreadFlagPersistence) {
522 this.mbThreadFlagPersistence = mbThreadFlagPersistence;
523 }
524
525
530 public CounterLocalService getCounterLocalService() {
531 return counterLocalService;
532 }
533
534
539 public void setCounterLocalService(CounterLocalService counterLocalService) {
540 this.counterLocalService = counterLocalService;
541 }
542
543
548 public LockLocalService getLockLocalService() {
549 return lockLocalService;
550 }
551
552
557 public void setLockLocalService(LockLocalService lockLocalService) {
558 this.lockLocalService = lockLocalService;
559 }
560
561
566 public LockPersistence getLockPersistence() {
567 return lockPersistence;
568 }
569
570
575 public void setLockPersistence(LockPersistence lockPersistence) {
576 this.lockPersistence = lockPersistence;
577 }
578
579
584 public LockFinder getLockFinder() {
585 return lockFinder;
586 }
587
588
593 public void setLockFinder(LockFinder lockFinder) {
594 this.lockFinder = lockFinder;
595 }
596
597
602 public ResourceLocalService getResourceLocalService() {
603 return resourceLocalService;
604 }
605
606
611 public void setResourceLocalService(
612 ResourceLocalService resourceLocalService) {
613 this.resourceLocalService = resourceLocalService;
614 }
615
616
621 public ResourceService getResourceService() {
622 return resourceService;
623 }
624
625
630 public void setResourceService(ResourceService resourceService) {
631 this.resourceService = resourceService;
632 }
633
634
639 public ResourcePersistence getResourcePersistence() {
640 return resourcePersistence;
641 }
642
643
648 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
649 this.resourcePersistence = resourcePersistence;
650 }
651
652
657 public ResourceFinder getResourceFinder() {
658 return resourceFinder;
659 }
660
661
666 public void setResourceFinder(ResourceFinder resourceFinder) {
667 this.resourceFinder = resourceFinder;
668 }
669
670
675 public SubscriptionLocalService getSubscriptionLocalService() {
676 return subscriptionLocalService;
677 }
678
679
684 public void setSubscriptionLocalService(
685 SubscriptionLocalService subscriptionLocalService) {
686 this.subscriptionLocalService = subscriptionLocalService;
687 }
688
689
694 public SubscriptionPersistence getSubscriptionPersistence() {
695 return subscriptionPersistence;
696 }
697
698
703 public void setSubscriptionPersistence(
704 SubscriptionPersistence subscriptionPersistence) {
705 this.subscriptionPersistence = subscriptionPersistence;
706 }
707
708
713 public UserLocalService getUserLocalService() {
714 return userLocalService;
715 }
716
717
722 public void setUserLocalService(UserLocalService userLocalService) {
723 this.userLocalService = userLocalService;
724 }
725
726
731 public UserService getUserService() {
732 return userService;
733 }
734
735
740 public void setUserService(UserService userService) {
741 this.userService = userService;
742 }
743
744
749 public UserPersistence getUserPersistence() {
750 return userPersistence;
751 }
752
753
758 public void setUserPersistence(UserPersistence userPersistence) {
759 this.userPersistence = userPersistence;
760 }
761
762
767 public UserFinder getUserFinder() {
768 return userFinder;
769 }
770
771
776 public void setUserFinder(UserFinder userFinder) {
777 this.userFinder = userFinder;
778 }
779
780
785 public WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
786 return workflowInstanceLinkLocalService;
787 }
788
789
794 public void setWorkflowInstanceLinkLocalService(
795 WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
796 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
797 }
798
799
804 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
805 return workflowInstanceLinkPersistence;
806 }
807
808
813 public void setWorkflowInstanceLinkPersistence(
814 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
815 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
816 }
817
818
823 public AssetEntryLocalService getAssetEntryLocalService() {
824 return assetEntryLocalService;
825 }
826
827
832 public void setAssetEntryLocalService(
833 AssetEntryLocalService assetEntryLocalService) {
834 this.assetEntryLocalService = assetEntryLocalService;
835 }
836
837
842 public AssetEntryService getAssetEntryService() {
843 return assetEntryService;
844 }
845
846
851 public void setAssetEntryService(AssetEntryService assetEntryService) {
852 this.assetEntryService = assetEntryService;
853 }
854
855
860 public AssetEntryPersistence getAssetEntryPersistence() {
861 return assetEntryPersistence;
862 }
863
864
869 public void setAssetEntryPersistence(
870 AssetEntryPersistence assetEntryPersistence) {
871 this.assetEntryPersistence = assetEntryPersistence;
872 }
873
874
879 public AssetEntryFinder getAssetEntryFinder() {
880 return assetEntryFinder;
881 }
882
883
888 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
889 this.assetEntryFinder = assetEntryFinder;
890 }
891
892
897 public RatingsStatsLocalService getRatingsStatsLocalService() {
898 return ratingsStatsLocalService;
899 }
900
901
906 public void setRatingsStatsLocalService(
907 RatingsStatsLocalService ratingsStatsLocalService) {
908 this.ratingsStatsLocalService = ratingsStatsLocalService;
909 }
910
911
916 public RatingsStatsPersistence getRatingsStatsPersistence() {
917 return ratingsStatsPersistence;
918 }
919
920
925 public void setRatingsStatsPersistence(
926 RatingsStatsPersistence ratingsStatsPersistence) {
927 this.ratingsStatsPersistence = ratingsStatsPersistence;
928 }
929
930
935 public RatingsStatsFinder getRatingsStatsFinder() {
936 return ratingsStatsFinder;
937 }
938
939
944 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
945 this.ratingsStatsFinder = ratingsStatsFinder;
946 }
947
948
953 public SocialActivityLocalService getSocialActivityLocalService() {
954 return socialActivityLocalService;
955 }
956
957
962 public void setSocialActivityLocalService(
963 SocialActivityLocalService socialActivityLocalService) {
964 this.socialActivityLocalService = socialActivityLocalService;
965 }
966
967
972 public SocialActivityPersistence getSocialActivityPersistence() {
973 return socialActivityPersistence;
974 }
975
976
981 public void setSocialActivityPersistence(
982 SocialActivityPersistence socialActivityPersistence) {
983 this.socialActivityPersistence = socialActivityPersistence;
984 }
985
986
991 public SocialActivityFinder getSocialActivityFinder() {
992 return socialActivityFinder;
993 }
994
995
1000 public void setSocialActivityFinder(
1001 SocialActivityFinder socialActivityFinder) {
1002 this.socialActivityFinder = socialActivityFinder;
1003 }
1004
1005 public void afterPropertiesSet() {
1006 }
1007
1008 public void destroy() {
1009 }
1010
1011
1016 public String getBeanIdentifier() {
1017 return _beanIdentifier;
1018 }
1019
1020
1025 public void setBeanIdentifier(String beanIdentifier) {
1026 _beanIdentifier = beanIdentifier;
1027 }
1028
1029 protected Class<?> getModelClass() {
1030 return MBThread.class;
1031 }
1032
1033 protected String getModelClassName() {
1034 return MBThread.class.getName();
1035 }
1036
1037
1042 protected void runSQL(String sql) throws SystemException {
1043 try {
1044 DataSource dataSource = mbThreadPersistence.getDataSource();
1045
1046 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1047 sql, new int[0]);
1048
1049 sqlUpdate.update();
1050 }
1051 catch (Exception e) {
1052 throw new SystemException(e);
1053 }
1054 }
1055
1056 @BeanReference(type = MBBanLocalService.class)
1057 protected MBBanLocalService mbBanLocalService;
1058 @BeanReference(type = MBBanService.class)
1059 protected MBBanService mbBanService;
1060 @BeanReference(type = MBBanPersistence.class)
1061 protected MBBanPersistence mbBanPersistence;
1062 @BeanReference(type = MBCategoryLocalService.class)
1063 protected MBCategoryLocalService mbCategoryLocalService;
1064 @BeanReference(type = MBCategoryService.class)
1065 protected MBCategoryService mbCategoryService;
1066 @BeanReference(type = MBCategoryPersistence.class)
1067 protected MBCategoryPersistence mbCategoryPersistence;
1068 @BeanReference(type = MBCategoryFinder.class)
1069 protected MBCategoryFinder mbCategoryFinder;
1070 @BeanReference(type = MBDiscussionLocalService.class)
1071 protected MBDiscussionLocalService mbDiscussionLocalService;
1072 @BeanReference(type = MBDiscussionPersistence.class)
1073 protected MBDiscussionPersistence mbDiscussionPersistence;
1074 @BeanReference(type = MBMailingListLocalService.class)
1075 protected MBMailingListLocalService mbMailingListLocalService;
1076 @BeanReference(type = MBMailingListPersistence.class)
1077 protected MBMailingListPersistence mbMailingListPersistence;
1078 @BeanReference(type = MBMessageLocalService.class)
1079 protected MBMessageLocalService mbMessageLocalService;
1080 @BeanReference(type = MBMessageService.class)
1081 protected MBMessageService mbMessageService;
1082 @BeanReference(type = MBMessagePersistence.class)
1083 protected MBMessagePersistence mbMessagePersistence;
1084 @BeanReference(type = MBMessageFinder.class)
1085 protected MBMessageFinder mbMessageFinder;
1086 @BeanReference(type = MBStatsUserLocalService.class)
1087 protected MBStatsUserLocalService mbStatsUserLocalService;
1088 @BeanReference(type = MBStatsUserPersistence.class)
1089 protected MBStatsUserPersistence mbStatsUserPersistence;
1090 @BeanReference(type = MBThreadLocalService.class)
1091 protected MBThreadLocalService mbThreadLocalService;
1092 @BeanReference(type = MBThreadService.class)
1093 protected MBThreadService mbThreadService;
1094 @BeanReference(type = MBThreadPersistence.class)
1095 protected MBThreadPersistence mbThreadPersistence;
1096 @BeanReference(type = MBThreadFinder.class)
1097 protected MBThreadFinder mbThreadFinder;
1098 @BeanReference(type = MBThreadFlagLocalService.class)
1099 protected MBThreadFlagLocalService mbThreadFlagLocalService;
1100 @BeanReference(type = MBThreadFlagPersistence.class)
1101 protected MBThreadFlagPersistence mbThreadFlagPersistence;
1102 @BeanReference(type = CounterLocalService.class)
1103 protected CounterLocalService counterLocalService;
1104 @BeanReference(type = LockLocalService.class)
1105 protected LockLocalService lockLocalService;
1106 @BeanReference(type = LockPersistence.class)
1107 protected LockPersistence lockPersistence;
1108 @BeanReference(type = LockFinder.class)
1109 protected LockFinder lockFinder;
1110 @BeanReference(type = ResourceLocalService.class)
1111 protected ResourceLocalService resourceLocalService;
1112 @BeanReference(type = ResourceService.class)
1113 protected ResourceService resourceService;
1114 @BeanReference(type = ResourcePersistence.class)
1115 protected ResourcePersistence resourcePersistence;
1116 @BeanReference(type = ResourceFinder.class)
1117 protected ResourceFinder resourceFinder;
1118 @BeanReference(type = SubscriptionLocalService.class)
1119 protected SubscriptionLocalService subscriptionLocalService;
1120 @BeanReference(type = SubscriptionPersistence.class)
1121 protected SubscriptionPersistence subscriptionPersistence;
1122 @BeanReference(type = UserLocalService.class)
1123 protected UserLocalService userLocalService;
1124 @BeanReference(type = UserService.class)
1125 protected UserService userService;
1126 @BeanReference(type = UserPersistence.class)
1127 protected UserPersistence userPersistence;
1128 @BeanReference(type = UserFinder.class)
1129 protected UserFinder userFinder;
1130 @BeanReference(type = WorkflowInstanceLinkLocalService.class)
1131 protected WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1132 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1133 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1134 @BeanReference(type = AssetEntryLocalService.class)
1135 protected AssetEntryLocalService assetEntryLocalService;
1136 @BeanReference(type = AssetEntryService.class)
1137 protected AssetEntryService assetEntryService;
1138 @BeanReference(type = AssetEntryPersistence.class)
1139 protected AssetEntryPersistence assetEntryPersistence;
1140 @BeanReference(type = AssetEntryFinder.class)
1141 protected AssetEntryFinder assetEntryFinder;
1142 @BeanReference(type = RatingsStatsLocalService.class)
1143 protected RatingsStatsLocalService ratingsStatsLocalService;
1144 @BeanReference(type = RatingsStatsPersistence.class)
1145 protected RatingsStatsPersistence ratingsStatsPersistence;
1146 @BeanReference(type = RatingsStatsFinder.class)
1147 protected RatingsStatsFinder ratingsStatsFinder;
1148 @BeanReference(type = SocialActivityLocalService.class)
1149 protected SocialActivityLocalService socialActivityLocalService;
1150 @BeanReference(type = SocialActivityPersistence.class)
1151 protected SocialActivityPersistence socialActivityPersistence;
1152 @BeanReference(type = SocialActivityFinder.class)
1153 protected SocialActivityFinder socialActivityFinder;
1154 private String _beanIdentifier;
1155 }