001
014
015 package com.liferay.portlet.blogs.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.dao.orm.DynamicQuery;
024 import com.liferay.portal.kernel.exception.PortalException;
025 import com.liferay.portal.kernel.exception.SystemException;
026 import com.liferay.portal.kernel.log.Log;
027 import com.liferay.portal.kernel.log.LogFactoryUtil;
028 import com.liferay.portal.kernel.search.Indexer;
029 import com.liferay.portal.kernel.search.IndexerRegistryUtil;
030 import com.liferay.portal.kernel.search.SearchException;
031 import com.liferay.portal.kernel.util.OrderByComparator;
032 import com.liferay.portal.model.PersistedModel;
033 import com.liferay.portal.service.CompanyLocalService;
034 import com.liferay.portal.service.CompanyService;
035 import com.liferay.portal.service.GroupLocalService;
036 import com.liferay.portal.service.GroupService;
037 import com.liferay.portal.service.ImageLocalService;
038 import com.liferay.portal.service.ImageService;
039 import com.liferay.portal.service.OrganizationLocalService;
040 import com.liferay.portal.service.OrganizationService;
041 import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
042 import com.liferay.portal.service.PortletPreferencesLocalService;
043 import com.liferay.portal.service.PortletPreferencesService;
044 import com.liferay.portal.service.ResourceLocalService;
045 import com.liferay.portal.service.ResourceService;
046 import com.liferay.portal.service.SubscriptionLocalService;
047 import com.liferay.portal.service.UserLocalService;
048 import com.liferay.portal.service.UserService;
049 import com.liferay.portal.service.WorkflowInstanceLinkLocalService;
050 import com.liferay.portal.service.persistence.CompanyPersistence;
051 import com.liferay.portal.service.persistence.GroupFinder;
052 import com.liferay.portal.service.persistence.GroupPersistence;
053 import com.liferay.portal.service.persistence.ImagePersistence;
054 import com.liferay.portal.service.persistence.OrganizationFinder;
055 import com.liferay.portal.service.persistence.OrganizationPersistence;
056 import com.liferay.portal.service.persistence.PortletPreferencesFinder;
057 import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
058 import com.liferay.portal.service.persistence.ResourceFinder;
059 import com.liferay.portal.service.persistence.ResourcePersistence;
060 import com.liferay.portal.service.persistence.SubscriptionPersistence;
061 import com.liferay.portal.service.persistence.UserFinder;
062 import com.liferay.portal.service.persistence.UserPersistence;
063 import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
064
065 import com.liferay.portlet.asset.service.AssetEntryLocalService;
066 import com.liferay.portlet.asset.service.AssetEntryService;
067 import com.liferay.portlet.asset.service.AssetLinkLocalService;
068 import com.liferay.portlet.asset.service.AssetTagLocalService;
069 import com.liferay.portlet.asset.service.AssetTagService;
070 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
071 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
072 import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
073 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
074 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
075 import com.liferay.portlet.blogs.model.BlogsEntry;
076 import com.liferay.portlet.blogs.service.BlogsEntryLocalService;
077 import com.liferay.portlet.blogs.service.BlogsEntryService;
078 import com.liferay.portlet.blogs.service.BlogsStatsUserLocalService;
079 import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
080 import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
081 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
082 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
083 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
084 import com.liferay.portlet.expando.service.ExpandoValueService;
085 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
086 import com.liferay.portlet.messageboards.service.MBMessageLocalService;
087 import com.liferay.portlet.messageboards.service.MBMessageService;
088 import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
089 import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
090 import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
091 import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
092 import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
093 import com.liferay.portlet.social.service.SocialActivityLocalService;
094 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
095 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
096
097 import java.io.Serializable;
098
099 import java.util.List;
100
101 import javax.sql.DataSource;
102
103
115 public abstract class BlogsEntryLocalServiceBaseImpl
116 implements BlogsEntryLocalService, IdentifiableBean {
117
122
123
130 public BlogsEntry addBlogsEntry(BlogsEntry blogsEntry)
131 throws SystemException {
132 blogsEntry.setNew(true);
133
134 blogsEntry = blogsEntryPersistence.update(blogsEntry, false);
135
136 Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
137
138 if (indexer != null) {
139 try {
140 indexer.reindex(blogsEntry);
141 }
142 catch (SearchException se) {
143 if (_log.isWarnEnabled()) {
144 _log.warn(se, se);
145 }
146 }
147 }
148
149 return blogsEntry;
150 }
151
152
158 public BlogsEntry createBlogsEntry(long entryId) {
159 return blogsEntryPersistence.create(entryId);
160 }
161
162
169 public void deleteBlogsEntry(long entryId)
170 throws PortalException, SystemException {
171 BlogsEntry blogsEntry = blogsEntryPersistence.remove(entryId);
172
173 Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
174
175 if (indexer != null) {
176 try {
177 indexer.delete(blogsEntry);
178 }
179 catch (SearchException se) {
180 if (_log.isWarnEnabled()) {
181 _log.warn(se, se);
182 }
183 }
184 }
185 }
186
187
193 public void deleteBlogsEntry(BlogsEntry blogsEntry)
194 throws SystemException {
195 blogsEntryPersistence.remove(blogsEntry);
196
197 Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
198
199 if (indexer != null) {
200 try {
201 indexer.delete(blogsEntry);
202 }
203 catch (SearchException se) {
204 if (_log.isWarnEnabled()) {
205 _log.warn(se, se);
206 }
207 }
208 }
209 }
210
211
218 @SuppressWarnings("rawtypes")
219 public List dynamicQuery(DynamicQuery dynamicQuery)
220 throws SystemException {
221 return blogsEntryPersistence.findWithDynamicQuery(dynamicQuery);
222 }
223
224
237 @SuppressWarnings("rawtypes")
238 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
239 throws SystemException {
240 return blogsEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
241 end);
242 }
243
244
258 @SuppressWarnings("rawtypes")
259 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
260 OrderByComparator orderByComparator) throws SystemException {
261 return blogsEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
262 end, orderByComparator);
263 }
264
265
272 public long dynamicQueryCount(DynamicQuery dynamicQuery)
273 throws SystemException {
274 return blogsEntryPersistence.countWithDynamicQuery(dynamicQuery);
275 }
276
277 public BlogsEntry fetchBlogsEntry(long entryId) throws SystemException {
278 return blogsEntryPersistence.fetchByPrimaryKey(entryId);
279 }
280
281
289 public BlogsEntry getBlogsEntry(long entryId)
290 throws PortalException, SystemException {
291 return blogsEntryPersistence.findByPrimaryKey(entryId);
292 }
293
294 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
295 throws PortalException, SystemException {
296 return blogsEntryPersistence.findByPrimaryKey(primaryKeyObj);
297 }
298
299
308 public BlogsEntry getBlogsEntryByUuidAndGroupId(String uuid, long groupId)
309 throws PortalException, SystemException {
310 return blogsEntryPersistence.findByUUID_G(uuid, groupId);
311 }
312
313
325 public List<BlogsEntry> getBlogsEntries(int start, int end)
326 throws SystemException {
327 return blogsEntryPersistence.findAll(start, end);
328 }
329
330
336 public int getBlogsEntriesCount() throws SystemException {
337 return blogsEntryPersistence.countAll();
338 }
339
340
347 public BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry)
348 throws SystemException {
349 return updateBlogsEntry(blogsEntry, true);
350 }
351
352
360 public BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry, boolean merge)
361 throws SystemException {
362 blogsEntry.setNew(false);
363
364 blogsEntry = blogsEntryPersistence.update(blogsEntry, merge);
365
366 Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
367
368 if (indexer != null) {
369 try {
370 indexer.reindex(blogsEntry);
371 }
372 catch (SearchException se) {
373 if (_log.isWarnEnabled()) {
374 _log.warn(se, se);
375 }
376 }
377 }
378
379 return blogsEntry;
380 }
381
382
387 public BlogsEntryLocalService getBlogsEntryLocalService() {
388 return blogsEntryLocalService;
389 }
390
391
396 public void setBlogsEntryLocalService(
397 BlogsEntryLocalService blogsEntryLocalService) {
398 this.blogsEntryLocalService = blogsEntryLocalService;
399 }
400
401
406 public BlogsEntryService getBlogsEntryService() {
407 return blogsEntryService;
408 }
409
410
415 public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
416 this.blogsEntryService = blogsEntryService;
417 }
418
419
424 public BlogsEntryPersistence getBlogsEntryPersistence() {
425 return blogsEntryPersistence;
426 }
427
428
433 public void setBlogsEntryPersistence(
434 BlogsEntryPersistence blogsEntryPersistence) {
435 this.blogsEntryPersistence = blogsEntryPersistence;
436 }
437
438
443 public BlogsEntryFinder getBlogsEntryFinder() {
444 return blogsEntryFinder;
445 }
446
447
452 public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
453 this.blogsEntryFinder = blogsEntryFinder;
454 }
455
456
461 public BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
462 return blogsStatsUserLocalService;
463 }
464
465
470 public void setBlogsStatsUserLocalService(
471 BlogsStatsUserLocalService blogsStatsUserLocalService) {
472 this.blogsStatsUserLocalService = blogsStatsUserLocalService;
473 }
474
475
480 public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
481 return blogsStatsUserPersistence;
482 }
483
484
489 public void setBlogsStatsUserPersistence(
490 BlogsStatsUserPersistence blogsStatsUserPersistence) {
491 this.blogsStatsUserPersistence = blogsStatsUserPersistence;
492 }
493
494
499 public BlogsStatsUserFinder getBlogsStatsUserFinder() {
500 return blogsStatsUserFinder;
501 }
502
503
508 public void setBlogsStatsUserFinder(
509 BlogsStatsUserFinder blogsStatsUserFinder) {
510 this.blogsStatsUserFinder = blogsStatsUserFinder;
511 }
512
513
518 public CounterLocalService getCounterLocalService() {
519 return counterLocalService;
520 }
521
522
527 public void setCounterLocalService(CounterLocalService counterLocalService) {
528 this.counterLocalService = counterLocalService;
529 }
530
531
536 public CompanyLocalService getCompanyLocalService() {
537 return companyLocalService;
538 }
539
540
545 public void setCompanyLocalService(CompanyLocalService companyLocalService) {
546 this.companyLocalService = companyLocalService;
547 }
548
549
554 public CompanyService getCompanyService() {
555 return companyService;
556 }
557
558
563 public void setCompanyService(CompanyService companyService) {
564 this.companyService = companyService;
565 }
566
567
572 public CompanyPersistence getCompanyPersistence() {
573 return companyPersistence;
574 }
575
576
581 public void setCompanyPersistence(CompanyPersistence companyPersistence) {
582 this.companyPersistence = companyPersistence;
583 }
584
585
590 public GroupLocalService getGroupLocalService() {
591 return groupLocalService;
592 }
593
594
599 public void setGroupLocalService(GroupLocalService groupLocalService) {
600 this.groupLocalService = groupLocalService;
601 }
602
603
608 public GroupService getGroupService() {
609 return groupService;
610 }
611
612
617 public void setGroupService(GroupService groupService) {
618 this.groupService = groupService;
619 }
620
621
626 public GroupPersistence getGroupPersistence() {
627 return groupPersistence;
628 }
629
630
635 public void setGroupPersistence(GroupPersistence groupPersistence) {
636 this.groupPersistence = groupPersistence;
637 }
638
639
644 public GroupFinder getGroupFinder() {
645 return groupFinder;
646 }
647
648
653 public void setGroupFinder(GroupFinder groupFinder) {
654 this.groupFinder = groupFinder;
655 }
656
657
662 public ImageLocalService getImageLocalService() {
663 return imageLocalService;
664 }
665
666
671 public void setImageLocalService(ImageLocalService imageLocalService) {
672 this.imageLocalService = imageLocalService;
673 }
674
675
680 public ImageService getImageService() {
681 return imageService;
682 }
683
684
689 public void setImageService(ImageService imageService) {
690 this.imageService = imageService;
691 }
692
693
698 public ImagePersistence getImagePersistence() {
699 return imagePersistence;
700 }
701
702
707 public void setImagePersistence(ImagePersistence imagePersistence) {
708 this.imagePersistence = imagePersistence;
709 }
710
711
716 public OrganizationLocalService getOrganizationLocalService() {
717 return organizationLocalService;
718 }
719
720
725 public void setOrganizationLocalService(
726 OrganizationLocalService organizationLocalService) {
727 this.organizationLocalService = organizationLocalService;
728 }
729
730
735 public OrganizationService getOrganizationService() {
736 return organizationService;
737 }
738
739
744 public void setOrganizationService(OrganizationService organizationService) {
745 this.organizationService = organizationService;
746 }
747
748
753 public OrganizationPersistence getOrganizationPersistence() {
754 return organizationPersistence;
755 }
756
757
762 public void setOrganizationPersistence(
763 OrganizationPersistence organizationPersistence) {
764 this.organizationPersistence = organizationPersistence;
765 }
766
767
772 public OrganizationFinder getOrganizationFinder() {
773 return organizationFinder;
774 }
775
776
781 public void setOrganizationFinder(OrganizationFinder organizationFinder) {
782 this.organizationFinder = organizationFinder;
783 }
784
785
790 public PortletPreferencesLocalService getPortletPreferencesLocalService() {
791 return portletPreferencesLocalService;
792 }
793
794
799 public void setPortletPreferencesLocalService(
800 PortletPreferencesLocalService portletPreferencesLocalService) {
801 this.portletPreferencesLocalService = portletPreferencesLocalService;
802 }
803
804
809 public PortletPreferencesService getPortletPreferencesService() {
810 return portletPreferencesService;
811 }
812
813
818 public void setPortletPreferencesService(
819 PortletPreferencesService portletPreferencesService) {
820 this.portletPreferencesService = portletPreferencesService;
821 }
822
823
828 public PortletPreferencesPersistence getPortletPreferencesPersistence() {
829 return portletPreferencesPersistence;
830 }
831
832
837 public void setPortletPreferencesPersistence(
838 PortletPreferencesPersistence portletPreferencesPersistence) {
839 this.portletPreferencesPersistence = portletPreferencesPersistence;
840 }
841
842
847 public PortletPreferencesFinder getPortletPreferencesFinder() {
848 return portletPreferencesFinder;
849 }
850
851
856 public void setPortletPreferencesFinder(
857 PortletPreferencesFinder portletPreferencesFinder) {
858 this.portletPreferencesFinder = portletPreferencesFinder;
859 }
860
861
866 public ResourceLocalService getResourceLocalService() {
867 return resourceLocalService;
868 }
869
870
875 public void setResourceLocalService(
876 ResourceLocalService resourceLocalService) {
877 this.resourceLocalService = resourceLocalService;
878 }
879
880
885 public ResourceService getResourceService() {
886 return resourceService;
887 }
888
889
894 public void setResourceService(ResourceService resourceService) {
895 this.resourceService = resourceService;
896 }
897
898
903 public ResourcePersistence getResourcePersistence() {
904 return resourcePersistence;
905 }
906
907
912 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
913 this.resourcePersistence = resourcePersistence;
914 }
915
916
921 public ResourceFinder getResourceFinder() {
922 return resourceFinder;
923 }
924
925
930 public void setResourceFinder(ResourceFinder resourceFinder) {
931 this.resourceFinder = resourceFinder;
932 }
933
934
939 public SubscriptionLocalService getSubscriptionLocalService() {
940 return subscriptionLocalService;
941 }
942
943
948 public void setSubscriptionLocalService(
949 SubscriptionLocalService subscriptionLocalService) {
950 this.subscriptionLocalService = subscriptionLocalService;
951 }
952
953
958 public SubscriptionPersistence getSubscriptionPersistence() {
959 return subscriptionPersistence;
960 }
961
962
967 public void setSubscriptionPersistence(
968 SubscriptionPersistence subscriptionPersistence) {
969 this.subscriptionPersistence = subscriptionPersistence;
970 }
971
972
977 public UserLocalService getUserLocalService() {
978 return userLocalService;
979 }
980
981
986 public void setUserLocalService(UserLocalService userLocalService) {
987 this.userLocalService = userLocalService;
988 }
989
990
995 public UserService getUserService() {
996 return userService;
997 }
998
999
1004 public void setUserService(UserService userService) {
1005 this.userService = userService;
1006 }
1007
1008
1013 public UserPersistence getUserPersistence() {
1014 return userPersistence;
1015 }
1016
1017
1022 public void setUserPersistence(UserPersistence userPersistence) {
1023 this.userPersistence = userPersistence;
1024 }
1025
1026
1031 public UserFinder getUserFinder() {
1032 return userFinder;
1033 }
1034
1035
1040 public void setUserFinder(UserFinder userFinder) {
1041 this.userFinder = userFinder;
1042 }
1043
1044
1049 public WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
1050 return workflowInstanceLinkLocalService;
1051 }
1052
1053
1058 public void setWorkflowInstanceLinkLocalService(
1059 WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
1060 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
1061 }
1062
1063
1068 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
1069 return workflowInstanceLinkPersistence;
1070 }
1071
1072
1077 public void setWorkflowInstanceLinkPersistence(
1078 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
1079 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
1080 }
1081
1082
1087 public AssetEntryLocalService getAssetEntryLocalService() {
1088 return assetEntryLocalService;
1089 }
1090
1091
1096 public void setAssetEntryLocalService(
1097 AssetEntryLocalService assetEntryLocalService) {
1098 this.assetEntryLocalService = assetEntryLocalService;
1099 }
1100
1101
1106 public AssetEntryService getAssetEntryService() {
1107 return assetEntryService;
1108 }
1109
1110
1115 public void setAssetEntryService(AssetEntryService assetEntryService) {
1116 this.assetEntryService = assetEntryService;
1117 }
1118
1119
1124 public AssetEntryPersistence getAssetEntryPersistence() {
1125 return assetEntryPersistence;
1126 }
1127
1128
1133 public void setAssetEntryPersistence(
1134 AssetEntryPersistence assetEntryPersistence) {
1135 this.assetEntryPersistence = assetEntryPersistence;
1136 }
1137
1138
1143 public AssetEntryFinder getAssetEntryFinder() {
1144 return assetEntryFinder;
1145 }
1146
1147
1152 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1153 this.assetEntryFinder = assetEntryFinder;
1154 }
1155
1156
1161 public AssetLinkLocalService getAssetLinkLocalService() {
1162 return assetLinkLocalService;
1163 }
1164
1165
1170 public void setAssetLinkLocalService(
1171 AssetLinkLocalService assetLinkLocalService) {
1172 this.assetLinkLocalService = assetLinkLocalService;
1173 }
1174
1175
1180 public AssetLinkPersistence getAssetLinkPersistence() {
1181 return assetLinkPersistence;
1182 }
1183
1184
1189 public void setAssetLinkPersistence(
1190 AssetLinkPersistence assetLinkPersistence) {
1191 this.assetLinkPersistence = assetLinkPersistence;
1192 }
1193
1194
1199 public AssetTagLocalService getAssetTagLocalService() {
1200 return assetTagLocalService;
1201 }
1202
1203
1208 public void setAssetTagLocalService(
1209 AssetTagLocalService assetTagLocalService) {
1210 this.assetTagLocalService = assetTagLocalService;
1211 }
1212
1213
1218 public AssetTagService getAssetTagService() {
1219 return assetTagService;
1220 }
1221
1222
1227 public void setAssetTagService(AssetTagService assetTagService) {
1228 this.assetTagService = assetTagService;
1229 }
1230
1231
1236 public AssetTagPersistence getAssetTagPersistence() {
1237 return assetTagPersistence;
1238 }
1239
1240
1245 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1246 this.assetTagPersistence = assetTagPersistence;
1247 }
1248
1249
1254 public AssetTagFinder getAssetTagFinder() {
1255 return assetTagFinder;
1256 }
1257
1258
1263 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1264 this.assetTagFinder = assetTagFinder;
1265 }
1266
1267
1272 public ExpandoValueLocalService getExpandoValueLocalService() {
1273 return expandoValueLocalService;
1274 }
1275
1276
1281 public void setExpandoValueLocalService(
1282 ExpandoValueLocalService expandoValueLocalService) {
1283 this.expandoValueLocalService = expandoValueLocalService;
1284 }
1285
1286
1291 public ExpandoValueService getExpandoValueService() {
1292 return expandoValueService;
1293 }
1294
1295
1300 public void setExpandoValueService(ExpandoValueService expandoValueService) {
1301 this.expandoValueService = expandoValueService;
1302 }
1303
1304
1309 public ExpandoValuePersistence getExpandoValuePersistence() {
1310 return expandoValuePersistence;
1311 }
1312
1313
1318 public void setExpandoValuePersistence(
1319 ExpandoValuePersistence expandoValuePersistence) {
1320 this.expandoValuePersistence = expandoValuePersistence;
1321 }
1322
1323
1328 public MBMessageLocalService getMBMessageLocalService() {
1329 return mbMessageLocalService;
1330 }
1331
1332
1337 public void setMBMessageLocalService(
1338 MBMessageLocalService mbMessageLocalService) {
1339 this.mbMessageLocalService = mbMessageLocalService;
1340 }
1341
1342
1347 public MBMessageService getMBMessageService() {
1348 return mbMessageService;
1349 }
1350
1351
1356 public void setMBMessageService(MBMessageService mbMessageService) {
1357 this.mbMessageService = mbMessageService;
1358 }
1359
1360
1365 public MBMessagePersistence getMBMessagePersistence() {
1366 return mbMessagePersistence;
1367 }
1368
1369
1374 public void setMBMessagePersistence(
1375 MBMessagePersistence mbMessagePersistence) {
1376 this.mbMessagePersistence = mbMessagePersistence;
1377 }
1378
1379
1384 public MBMessageFinder getMBMessageFinder() {
1385 return mbMessageFinder;
1386 }
1387
1388
1393 public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
1394 this.mbMessageFinder = mbMessageFinder;
1395 }
1396
1397
1402 public RatingsStatsLocalService getRatingsStatsLocalService() {
1403 return ratingsStatsLocalService;
1404 }
1405
1406
1411 public void setRatingsStatsLocalService(
1412 RatingsStatsLocalService ratingsStatsLocalService) {
1413 this.ratingsStatsLocalService = ratingsStatsLocalService;
1414 }
1415
1416
1421 public RatingsStatsPersistence getRatingsStatsPersistence() {
1422 return ratingsStatsPersistence;
1423 }
1424
1425
1430 public void setRatingsStatsPersistence(
1431 RatingsStatsPersistence ratingsStatsPersistence) {
1432 this.ratingsStatsPersistence = ratingsStatsPersistence;
1433 }
1434
1435
1440 public RatingsStatsFinder getRatingsStatsFinder() {
1441 return ratingsStatsFinder;
1442 }
1443
1444
1449 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1450 this.ratingsStatsFinder = ratingsStatsFinder;
1451 }
1452
1453
1458 public SocialActivityLocalService getSocialActivityLocalService() {
1459 return socialActivityLocalService;
1460 }
1461
1462
1467 public void setSocialActivityLocalService(
1468 SocialActivityLocalService socialActivityLocalService) {
1469 this.socialActivityLocalService = socialActivityLocalService;
1470 }
1471
1472
1477 public SocialActivityPersistence getSocialActivityPersistence() {
1478 return socialActivityPersistence;
1479 }
1480
1481
1486 public void setSocialActivityPersistence(
1487 SocialActivityPersistence socialActivityPersistence) {
1488 this.socialActivityPersistence = socialActivityPersistence;
1489 }
1490
1491
1496 public SocialActivityFinder getSocialActivityFinder() {
1497 return socialActivityFinder;
1498 }
1499
1500
1505 public void setSocialActivityFinder(
1506 SocialActivityFinder socialActivityFinder) {
1507 this.socialActivityFinder = socialActivityFinder;
1508 }
1509
1510 public void afterPropertiesSet() {
1511 persistedModelLocalServiceRegistry.register("com.liferay.portlet.blogs.model.BlogsEntry",
1512 blogsEntryLocalService);
1513 }
1514
1515 public void destroy() {
1516 persistedModelLocalServiceRegistry.unregister(
1517 "com.liferay.portlet.blogs.model.BlogsEntry");
1518 }
1519
1520
1525 public String getBeanIdentifier() {
1526 return _beanIdentifier;
1527 }
1528
1529
1534 public void setBeanIdentifier(String beanIdentifier) {
1535 _beanIdentifier = beanIdentifier;
1536 }
1537
1538 protected ClassLoader getClassLoader() {
1539 Class<?> clazz = getClass();
1540
1541 return clazz.getClassLoader();
1542 }
1543
1544 protected Class<?> getModelClass() {
1545 return BlogsEntry.class;
1546 }
1547
1548 protected String getModelClassName() {
1549 return BlogsEntry.class.getName();
1550 }
1551
1552
1557 protected void runSQL(String sql) throws SystemException {
1558 try {
1559 DataSource dataSource = blogsEntryPersistence.getDataSource();
1560
1561 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1562 sql, new int[0]);
1563
1564 sqlUpdate.update();
1565 }
1566 catch (Exception e) {
1567 throw new SystemException(e);
1568 }
1569 }
1570
1571 @BeanReference(type = BlogsEntryLocalService.class)
1572 protected BlogsEntryLocalService blogsEntryLocalService;
1573 @BeanReference(type = BlogsEntryService.class)
1574 protected BlogsEntryService blogsEntryService;
1575 @BeanReference(type = BlogsEntryPersistence.class)
1576 protected BlogsEntryPersistence blogsEntryPersistence;
1577 @BeanReference(type = BlogsEntryFinder.class)
1578 protected BlogsEntryFinder blogsEntryFinder;
1579 @BeanReference(type = BlogsStatsUserLocalService.class)
1580 protected BlogsStatsUserLocalService blogsStatsUserLocalService;
1581 @BeanReference(type = BlogsStatsUserPersistence.class)
1582 protected BlogsStatsUserPersistence blogsStatsUserPersistence;
1583 @BeanReference(type = BlogsStatsUserFinder.class)
1584 protected BlogsStatsUserFinder blogsStatsUserFinder;
1585 @BeanReference(type = CounterLocalService.class)
1586 protected CounterLocalService counterLocalService;
1587 @BeanReference(type = CompanyLocalService.class)
1588 protected CompanyLocalService companyLocalService;
1589 @BeanReference(type = CompanyService.class)
1590 protected CompanyService companyService;
1591 @BeanReference(type = CompanyPersistence.class)
1592 protected CompanyPersistence companyPersistence;
1593 @BeanReference(type = GroupLocalService.class)
1594 protected GroupLocalService groupLocalService;
1595 @BeanReference(type = GroupService.class)
1596 protected GroupService groupService;
1597 @BeanReference(type = GroupPersistence.class)
1598 protected GroupPersistence groupPersistence;
1599 @BeanReference(type = GroupFinder.class)
1600 protected GroupFinder groupFinder;
1601 @BeanReference(type = ImageLocalService.class)
1602 protected ImageLocalService imageLocalService;
1603 @BeanReference(type = ImageService.class)
1604 protected ImageService imageService;
1605 @BeanReference(type = ImagePersistence.class)
1606 protected ImagePersistence imagePersistence;
1607 @BeanReference(type = OrganizationLocalService.class)
1608 protected OrganizationLocalService organizationLocalService;
1609 @BeanReference(type = OrganizationService.class)
1610 protected OrganizationService organizationService;
1611 @BeanReference(type = OrganizationPersistence.class)
1612 protected OrganizationPersistence organizationPersistence;
1613 @BeanReference(type = OrganizationFinder.class)
1614 protected OrganizationFinder organizationFinder;
1615 @BeanReference(type = PortletPreferencesLocalService.class)
1616 protected PortletPreferencesLocalService portletPreferencesLocalService;
1617 @BeanReference(type = PortletPreferencesService.class)
1618 protected PortletPreferencesService portletPreferencesService;
1619 @BeanReference(type = PortletPreferencesPersistence.class)
1620 protected PortletPreferencesPersistence portletPreferencesPersistence;
1621 @BeanReference(type = PortletPreferencesFinder.class)
1622 protected PortletPreferencesFinder portletPreferencesFinder;
1623 @BeanReference(type = ResourceLocalService.class)
1624 protected ResourceLocalService resourceLocalService;
1625 @BeanReference(type = ResourceService.class)
1626 protected ResourceService resourceService;
1627 @BeanReference(type = ResourcePersistence.class)
1628 protected ResourcePersistence resourcePersistence;
1629 @BeanReference(type = ResourceFinder.class)
1630 protected ResourceFinder resourceFinder;
1631 @BeanReference(type = SubscriptionLocalService.class)
1632 protected SubscriptionLocalService subscriptionLocalService;
1633 @BeanReference(type = SubscriptionPersistence.class)
1634 protected SubscriptionPersistence subscriptionPersistence;
1635 @BeanReference(type = UserLocalService.class)
1636 protected UserLocalService userLocalService;
1637 @BeanReference(type = UserService.class)
1638 protected UserService userService;
1639 @BeanReference(type = UserPersistence.class)
1640 protected UserPersistence userPersistence;
1641 @BeanReference(type = UserFinder.class)
1642 protected UserFinder userFinder;
1643 @BeanReference(type = WorkflowInstanceLinkLocalService.class)
1644 protected WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1645 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1646 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1647 @BeanReference(type = AssetEntryLocalService.class)
1648 protected AssetEntryLocalService assetEntryLocalService;
1649 @BeanReference(type = AssetEntryService.class)
1650 protected AssetEntryService assetEntryService;
1651 @BeanReference(type = AssetEntryPersistence.class)
1652 protected AssetEntryPersistence assetEntryPersistence;
1653 @BeanReference(type = AssetEntryFinder.class)
1654 protected AssetEntryFinder assetEntryFinder;
1655 @BeanReference(type = AssetLinkLocalService.class)
1656 protected AssetLinkLocalService assetLinkLocalService;
1657 @BeanReference(type = AssetLinkPersistence.class)
1658 protected AssetLinkPersistence assetLinkPersistence;
1659 @BeanReference(type = AssetTagLocalService.class)
1660 protected AssetTagLocalService assetTagLocalService;
1661 @BeanReference(type = AssetTagService.class)
1662 protected AssetTagService assetTagService;
1663 @BeanReference(type = AssetTagPersistence.class)
1664 protected AssetTagPersistence assetTagPersistence;
1665 @BeanReference(type = AssetTagFinder.class)
1666 protected AssetTagFinder assetTagFinder;
1667 @BeanReference(type = ExpandoValueLocalService.class)
1668 protected ExpandoValueLocalService expandoValueLocalService;
1669 @BeanReference(type = ExpandoValueService.class)
1670 protected ExpandoValueService expandoValueService;
1671 @BeanReference(type = ExpandoValuePersistence.class)
1672 protected ExpandoValuePersistence expandoValuePersistence;
1673 @BeanReference(type = MBMessageLocalService.class)
1674 protected MBMessageLocalService mbMessageLocalService;
1675 @BeanReference(type = MBMessageService.class)
1676 protected MBMessageService mbMessageService;
1677 @BeanReference(type = MBMessagePersistence.class)
1678 protected MBMessagePersistence mbMessagePersistence;
1679 @BeanReference(type = MBMessageFinder.class)
1680 protected MBMessageFinder mbMessageFinder;
1681 @BeanReference(type = RatingsStatsLocalService.class)
1682 protected RatingsStatsLocalService ratingsStatsLocalService;
1683 @BeanReference(type = RatingsStatsPersistence.class)
1684 protected RatingsStatsPersistence ratingsStatsPersistence;
1685 @BeanReference(type = RatingsStatsFinder.class)
1686 protected RatingsStatsFinder ratingsStatsFinder;
1687 @BeanReference(type = SocialActivityLocalService.class)
1688 protected SocialActivityLocalService socialActivityLocalService;
1689 @BeanReference(type = SocialActivityPersistence.class)
1690 protected SocialActivityPersistence socialActivityPersistence;
1691 @BeanReference(type = SocialActivityFinder.class)
1692 protected SocialActivityFinder socialActivityFinder;
1693 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1694 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1695 private static Log _log = LogFactoryUtil.getLog(BlogsEntryLocalServiceBaseImpl.class);
1696 private String _beanIdentifier;
1697 }