001
014
015 package com.liferay.portlet.wiki.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.dao.orm.DynamicQueryFactoryUtil;
025 import com.liferay.portal.kernel.exception.PortalException;
026 import com.liferay.portal.kernel.exception.SystemException;
027 import com.liferay.portal.kernel.search.Indexable;
028 import com.liferay.portal.kernel.search.IndexableType;
029 import com.liferay.portal.kernel.util.OrderByComparator;
030 import com.liferay.portal.model.PersistedModel;
031 import com.liferay.portal.service.BaseLocalServiceImpl;
032 import com.liferay.portal.service.CompanyLocalService;
033 import com.liferay.portal.service.CompanyService;
034 import com.liferay.portal.service.GroupLocalService;
035 import com.liferay.portal.service.GroupService;
036 import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
037 import com.liferay.portal.service.PortletPreferencesLocalService;
038 import com.liferay.portal.service.PortletPreferencesService;
039 import com.liferay.portal.service.ResourceLocalService;
040 import com.liferay.portal.service.ResourceService;
041 import com.liferay.portal.service.SubscriptionLocalService;
042 import com.liferay.portal.service.UserLocalService;
043 import com.liferay.portal.service.UserService;
044 import com.liferay.portal.service.WorkflowInstanceLinkLocalService;
045 import com.liferay.portal.service.persistence.CompanyPersistence;
046 import com.liferay.portal.service.persistence.GroupFinder;
047 import com.liferay.portal.service.persistence.GroupPersistence;
048 import com.liferay.portal.service.persistence.PortletPreferencesFinder;
049 import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
050 import com.liferay.portal.service.persistence.ResourceFinder;
051 import com.liferay.portal.service.persistence.ResourcePersistence;
052 import com.liferay.portal.service.persistence.SubscriptionPersistence;
053 import com.liferay.portal.service.persistence.UserFinder;
054 import com.liferay.portal.service.persistence.UserPersistence;
055 import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
056
057 import com.liferay.portlet.asset.service.AssetCategoryLocalService;
058 import com.liferay.portlet.asset.service.AssetCategoryService;
059 import com.liferay.portlet.asset.service.AssetEntryLocalService;
060 import com.liferay.portlet.asset.service.AssetEntryService;
061 import com.liferay.portlet.asset.service.AssetLinkLocalService;
062 import com.liferay.portlet.asset.service.AssetTagLocalService;
063 import com.liferay.portlet.asset.service.AssetTagService;
064 import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
065 import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
066 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
067 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
068 import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
069 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
070 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
071 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
072 import com.liferay.portlet.expando.service.ExpandoValueService;
073 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
074 import com.liferay.portlet.messageboards.service.MBMessageLocalService;
075 import com.liferay.portlet.messageboards.service.MBMessageService;
076 import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
077 import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
078 import com.liferay.portlet.social.service.SocialActivityLocalService;
079 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
080 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
081 import com.liferay.portlet.wiki.model.WikiPage;
082 import com.liferay.portlet.wiki.service.WikiNodeLocalService;
083 import com.liferay.portlet.wiki.service.WikiNodeService;
084 import com.liferay.portlet.wiki.service.WikiPageLocalService;
085 import com.liferay.portlet.wiki.service.WikiPageResourceLocalService;
086 import com.liferay.portlet.wiki.service.WikiPageService;
087 import com.liferay.portlet.wiki.service.persistence.WikiNodePersistence;
088 import com.liferay.portlet.wiki.service.persistence.WikiPageFinder;
089 import com.liferay.portlet.wiki.service.persistence.WikiPagePersistence;
090 import com.liferay.portlet.wiki.service.persistence.WikiPageResourcePersistence;
091
092 import java.io.Serializable;
093
094 import java.util.List;
095
096 import javax.sql.DataSource;
097
098
110 public abstract class WikiPageLocalServiceBaseImpl extends BaseLocalServiceImpl
111 implements WikiPageLocalService, IdentifiableBean {
112
117
118
125 @Indexable(type = IndexableType.REINDEX)
126 public WikiPage addWikiPage(WikiPage wikiPage) throws SystemException {
127 wikiPage.setNew(true);
128
129 return wikiPagePersistence.update(wikiPage, false);
130 }
131
132
138 public WikiPage createWikiPage(long pageId) {
139 return wikiPagePersistence.create(pageId);
140 }
141
142
150 @Indexable(type = IndexableType.DELETE)
151 public WikiPage deleteWikiPage(long pageId)
152 throws PortalException, SystemException {
153 return wikiPagePersistence.remove(pageId);
154 }
155
156
163 @Indexable(type = IndexableType.DELETE)
164 public WikiPage deleteWikiPage(WikiPage wikiPage) throws SystemException {
165 return wikiPagePersistence.remove(wikiPage);
166 }
167
168 public DynamicQuery dynamicQuery() {
169 Class<?> clazz = getClass();
170
171 return DynamicQueryFactoryUtil.forClass(WikiPage.class,
172 clazz.getClassLoader());
173 }
174
175
182 @SuppressWarnings("rawtypes")
183 public List dynamicQuery(DynamicQuery dynamicQuery)
184 throws SystemException {
185 return wikiPagePersistence.findWithDynamicQuery(dynamicQuery);
186 }
187
188
201 @SuppressWarnings("rawtypes")
202 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
203 throws SystemException {
204 return wikiPagePersistence.findWithDynamicQuery(dynamicQuery, start, end);
205 }
206
207
221 @SuppressWarnings("rawtypes")
222 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
223 OrderByComparator orderByComparator) throws SystemException {
224 return wikiPagePersistence.findWithDynamicQuery(dynamicQuery, start,
225 end, orderByComparator);
226 }
227
228
235 public long dynamicQueryCount(DynamicQuery dynamicQuery)
236 throws SystemException {
237 return wikiPagePersistence.countWithDynamicQuery(dynamicQuery);
238 }
239
240 public WikiPage fetchWikiPage(long pageId) throws SystemException {
241 return wikiPagePersistence.fetchByPrimaryKey(pageId);
242 }
243
244
252 public WikiPage getWikiPage(long pageId)
253 throws PortalException, SystemException {
254 return wikiPagePersistence.findByPrimaryKey(pageId);
255 }
256
257 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
258 throws PortalException, SystemException {
259 return wikiPagePersistence.findByPrimaryKey(primaryKeyObj);
260 }
261
262
271 public WikiPage getWikiPageByUuidAndGroupId(String uuid, long groupId)
272 throws PortalException, SystemException {
273 return wikiPagePersistence.findByUUID_G(uuid, groupId);
274 }
275
276
288 public List<WikiPage> getWikiPages(int start, int end)
289 throws SystemException {
290 return wikiPagePersistence.findAll(start, end);
291 }
292
293
299 public int getWikiPagesCount() throws SystemException {
300 return wikiPagePersistence.countAll();
301 }
302
303
310 @Indexable(type = IndexableType.REINDEX)
311 public WikiPage updateWikiPage(WikiPage wikiPage) throws SystemException {
312 return updateWikiPage(wikiPage, true);
313 }
314
315
323 @Indexable(type = IndexableType.REINDEX)
324 public WikiPage updateWikiPage(WikiPage wikiPage, boolean merge)
325 throws SystemException {
326 wikiPage.setNew(false);
327
328 return wikiPagePersistence.update(wikiPage, merge);
329 }
330
331
336 public WikiNodeLocalService getWikiNodeLocalService() {
337 return wikiNodeLocalService;
338 }
339
340
345 public void setWikiNodeLocalService(
346 WikiNodeLocalService wikiNodeLocalService) {
347 this.wikiNodeLocalService = wikiNodeLocalService;
348 }
349
350
355 public WikiNodeService getWikiNodeService() {
356 return wikiNodeService;
357 }
358
359
364 public void setWikiNodeService(WikiNodeService wikiNodeService) {
365 this.wikiNodeService = wikiNodeService;
366 }
367
368
373 public WikiNodePersistence getWikiNodePersistence() {
374 return wikiNodePersistence;
375 }
376
377
382 public void setWikiNodePersistence(WikiNodePersistence wikiNodePersistence) {
383 this.wikiNodePersistence = wikiNodePersistence;
384 }
385
386
391 public WikiPageLocalService getWikiPageLocalService() {
392 return wikiPageLocalService;
393 }
394
395
400 public void setWikiPageLocalService(
401 WikiPageLocalService wikiPageLocalService) {
402 this.wikiPageLocalService = wikiPageLocalService;
403 }
404
405
410 public WikiPageService getWikiPageService() {
411 return wikiPageService;
412 }
413
414
419 public void setWikiPageService(WikiPageService wikiPageService) {
420 this.wikiPageService = wikiPageService;
421 }
422
423
428 public WikiPagePersistence getWikiPagePersistence() {
429 return wikiPagePersistence;
430 }
431
432
437 public void setWikiPagePersistence(WikiPagePersistence wikiPagePersistence) {
438 this.wikiPagePersistence = wikiPagePersistence;
439 }
440
441
446 public WikiPageFinder getWikiPageFinder() {
447 return wikiPageFinder;
448 }
449
450
455 public void setWikiPageFinder(WikiPageFinder wikiPageFinder) {
456 this.wikiPageFinder = wikiPageFinder;
457 }
458
459
464 public WikiPageResourceLocalService getWikiPageResourceLocalService() {
465 return wikiPageResourceLocalService;
466 }
467
468
473 public void setWikiPageResourceLocalService(
474 WikiPageResourceLocalService wikiPageResourceLocalService) {
475 this.wikiPageResourceLocalService = wikiPageResourceLocalService;
476 }
477
478
483 public WikiPageResourcePersistence getWikiPageResourcePersistence() {
484 return wikiPageResourcePersistence;
485 }
486
487
492 public void setWikiPageResourcePersistence(
493 WikiPageResourcePersistence wikiPageResourcePersistence) {
494 this.wikiPageResourcePersistence = wikiPageResourcePersistence;
495 }
496
497
502 public CounterLocalService getCounterLocalService() {
503 return counterLocalService;
504 }
505
506
511 public void setCounterLocalService(CounterLocalService counterLocalService) {
512 this.counterLocalService = counterLocalService;
513 }
514
515
520 public CompanyLocalService getCompanyLocalService() {
521 return companyLocalService;
522 }
523
524
529 public void setCompanyLocalService(CompanyLocalService companyLocalService) {
530 this.companyLocalService = companyLocalService;
531 }
532
533
538 public CompanyService getCompanyService() {
539 return companyService;
540 }
541
542
547 public void setCompanyService(CompanyService companyService) {
548 this.companyService = companyService;
549 }
550
551
556 public CompanyPersistence getCompanyPersistence() {
557 return companyPersistence;
558 }
559
560
565 public void setCompanyPersistence(CompanyPersistence companyPersistence) {
566 this.companyPersistence = companyPersistence;
567 }
568
569
574 public GroupLocalService getGroupLocalService() {
575 return groupLocalService;
576 }
577
578
583 public void setGroupLocalService(GroupLocalService groupLocalService) {
584 this.groupLocalService = groupLocalService;
585 }
586
587
592 public GroupService getGroupService() {
593 return groupService;
594 }
595
596
601 public void setGroupService(GroupService groupService) {
602 this.groupService = groupService;
603 }
604
605
610 public GroupPersistence getGroupPersistence() {
611 return groupPersistence;
612 }
613
614
619 public void setGroupPersistence(GroupPersistence groupPersistence) {
620 this.groupPersistence = groupPersistence;
621 }
622
623
628 public GroupFinder getGroupFinder() {
629 return groupFinder;
630 }
631
632
637 public void setGroupFinder(GroupFinder groupFinder) {
638 this.groupFinder = groupFinder;
639 }
640
641
646 public PortletPreferencesLocalService getPortletPreferencesLocalService() {
647 return portletPreferencesLocalService;
648 }
649
650
655 public void setPortletPreferencesLocalService(
656 PortletPreferencesLocalService portletPreferencesLocalService) {
657 this.portletPreferencesLocalService = portletPreferencesLocalService;
658 }
659
660
665 public PortletPreferencesService getPortletPreferencesService() {
666 return portletPreferencesService;
667 }
668
669
674 public void setPortletPreferencesService(
675 PortletPreferencesService portletPreferencesService) {
676 this.portletPreferencesService = portletPreferencesService;
677 }
678
679
684 public PortletPreferencesPersistence getPortletPreferencesPersistence() {
685 return portletPreferencesPersistence;
686 }
687
688
693 public void setPortletPreferencesPersistence(
694 PortletPreferencesPersistence portletPreferencesPersistence) {
695 this.portletPreferencesPersistence = portletPreferencesPersistence;
696 }
697
698
703 public PortletPreferencesFinder getPortletPreferencesFinder() {
704 return portletPreferencesFinder;
705 }
706
707
712 public void setPortletPreferencesFinder(
713 PortletPreferencesFinder portletPreferencesFinder) {
714 this.portletPreferencesFinder = portletPreferencesFinder;
715 }
716
717
722 public ResourceLocalService getResourceLocalService() {
723 return resourceLocalService;
724 }
725
726
731 public void setResourceLocalService(
732 ResourceLocalService resourceLocalService) {
733 this.resourceLocalService = resourceLocalService;
734 }
735
736
741 public ResourceService getResourceService() {
742 return resourceService;
743 }
744
745
750 public void setResourceService(ResourceService resourceService) {
751 this.resourceService = resourceService;
752 }
753
754
759 public ResourcePersistence getResourcePersistence() {
760 return resourcePersistence;
761 }
762
763
768 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
769 this.resourcePersistence = resourcePersistence;
770 }
771
772
777 public ResourceFinder getResourceFinder() {
778 return resourceFinder;
779 }
780
781
786 public void setResourceFinder(ResourceFinder resourceFinder) {
787 this.resourceFinder = resourceFinder;
788 }
789
790
795 public SubscriptionLocalService getSubscriptionLocalService() {
796 return subscriptionLocalService;
797 }
798
799
804 public void setSubscriptionLocalService(
805 SubscriptionLocalService subscriptionLocalService) {
806 this.subscriptionLocalService = subscriptionLocalService;
807 }
808
809
814 public SubscriptionPersistence getSubscriptionPersistence() {
815 return subscriptionPersistence;
816 }
817
818
823 public void setSubscriptionPersistence(
824 SubscriptionPersistence subscriptionPersistence) {
825 this.subscriptionPersistence = subscriptionPersistence;
826 }
827
828
833 public UserLocalService getUserLocalService() {
834 return userLocalService;
835 }
836
837
842 public void setUserLocalService(UserLocalService userLocalService) {
843 this.userLocalService = userLocalService;
844 }
845
846
851 public UserService getUserService() {
852 return userService;
853 }
854
855
860 public void setUserService(UserService userService) {
861 this.userService = userService;
862 }
863
864
869 public UserPersistence getUserPersistence() {
870 return userPersistence;
871 }
872
873
878 public void setUserPersistence(UserPersistence userPersistence) {
879 this.userPersistence = userPersistence;
880 }
881
882
887 public UserFinder getUserFinder() {
888 return userFinder;
889 }
890
891
896 public void setUserFinder(UserFinder userFinder) {
897 this.userFinder = userFinder;
898 }
899
900
905 public WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
906 return workflowInstanceLinkLocalService;
907 }
908
909
914 public void setWorkflowInstanceLinkLocalService(
915 WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
916 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
917 }
918
919
924 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
925 return workflowInstanceLinkPersistence;
926 }
927
928
933 public void setWorkflowInstanceLinkPersistence(
934 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
935 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
936 }
937
938
943 public AssetCategoryLocalService getAssetCategoryLocalService() {
944 return assetCategoryLocalService;
945 }
946
947
952 public void setAssetCategoryLocalService(
953 AssetCategoryLocalService assetCategoryLocalService) {
954 this.assetCategoryLocalService = assetCategoryLocalService;
955 }
956
957
962 public AssetCategoryService getAssetCategoryService() {
963 return assetCategoryService;
964 }
965
966
971 public void setAssetCategoryService(
972 AssetCategoryService assetCategoryService) {
973 this.assetCategoryService = assetCategoryService;
974 }
975
976
981 public AssetCategoryPersistence getAssetCategoryPersistence() {
982 return assetCategoryPersistence;
983 }
984
985
990 public void setAssetCategoryPersistence(
991 AssetCategoryPersistence assetCategoryPersistence) {
992 this.assetCategoryPersistence = assetCategoryPersistence;
993 }
994
995
1000 public AssetCategoryFinder getAssetCategoryFinder() {
1001 return assetCategoryFinder;
1002 }
1003
1004
1009 public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
1010 this.assetCategoryFinder = assetCategoryFinder;
1011 }
1012
1013
1018 public AssetEntryLocalService getAssetEntryLocalService() {
1019 return assetEntryLocalService;
1020 }
1021
1022
1027 public void setAssetEntryLocalService(
1028 AssetEntryLocalService assetEntryLocalService) {
1029 this.assetEntryLocalService = assetEntryLocalService;
1030 }
1031
1032
1037 public AssetEntryService getAssetEntryService() {
1038 return assetEntryService;
1039 }
1040
1041
1046 public void setAssetEntryService(AssetEntryService assetEntryService) {
1047 this.assetEntryService = assetEntryService;
1048 }
1049
1050
1055 public AssetEntryPersistence getAssetEntryPersistence() {
1056 return assetEntryPersistence;
1057 }
1058
1059
1064 public void setAssetEntryPersistence(
1065 AssetEntryPersistence assetEntryPersistence) {
1066 this.assetEntryPersistence = assetEntryPersistence;
1067 }
1068
1069
1074 public AssetEntryFinder getAssetEntryFinder() {
1075 return assetEntryFinder;
1076 }
1077
1078
1083 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1084 this.assetEntryFinder = assetEntryFinder;
1085 }
1086
1087
1092 public AssetLinkLocalService getAssetLinkLocalService() {
1093 return assetLinkLocalService;
1094 }
1095
1096
1101 public void setAssetLinkLocalService(
1102 AssetLinkLocalService assetLinkLocalService) {
1103 this.assetLinkLocalService = assetLinkLocalService;
1104 }
1105
1106
1111 public AssetLinkPersistence getAssetLinkPersistence() {
1112 return assetLinkPersistence;
1113 }
1114
1115
1120 public void setAssetLinkPersistence(
1121 AssetLinkPersistence assetLinkPersistence) {
1122 this.assetLinkPersistence = assetLinkPersistence;
1123 }
1124
1125
1130 public AssetTagLocalService getAssetTagLocalService() {
1131 return assetTagLocalService;
1132 }
1133
1134
1139 public void setAssetTagLocalService(
1140 AssetTagLocalService assetTagLocalService) {
1141 this.assetTagLocalService = assetTagLocalService;
1142 }
1143
1144
1149 public AssetTagService getAssetTagService() {
1150 return assetTagService;
1151 }
1152
1153
1158 public void setAssetTagService(AssetTagService assetTagService) {
1159 this.assetTagService = assetTagService;
1160 }
1161
1162
1167 public AssetTagPersistence getAssetTagPersistence() {
1168 return assetTagPersistence;
1169 }
1170
1171
1176 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1177 this.assetTagPersistence = assetTagPersistence;
1178 }
1179
1180
1185 public AssetTagFinder getAssetTagFinder() {
1186 return assetTagFinder;
1187 }
1188
1189
1194 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1195 this.assetTagFinder = assetTagFinder;
1196 }
1197
1198
1203 public ExpandoValueLocalService getExpandoValueLocalService() {
1204 return expandoValueLocalService;
1205 }
1206
1207
1212 public void setExpandoValueLocalService(
1213 ExpandoValueLocalService expandoValueLocalService) {
1214 this.expandoValueLocalService = expandoValueLocalService;
1215 }
1216
1217
1222 public ExpandoValueService getExpandoValueService() {
1223 return expandoValueService;
1224 }
1225
1226
1231 public void setExpandoValueService(ExpandoValueService expandoValueService) {
1232 this.expandoValueService = expandoValueService;
1233 }
1234
1235
1240 public ExpandoValuePersistence getExpandoValuePersistence() {
1241 return expandoValuePersistence;
1242 }
1243
1244
1249 public void setExpandoValuePersistence(
1250 ExpandoValuePersistence expandoValuePersistence) {
1251 this.expandoValuePersistence = expandoValuePersistence;
1252 }
1253
1254
1259 public MBMessageLocalService getMBMessageLocalService() {
1260 return mbMessageLocalService;
1261 }
1262
1263
1268 public void setMBMessageLocalService(
1269 MBMessageLocalService mbMessageLocalService) {
1270 this.mbMessageLocalService = mbMessageLocalService;
1271 }
1272
1273
1278 public MBMessageService getMBMessageService() {
1279 return mbMessageService;
1280 }
1281
1282
1287 public void setMBMessageService(MBMessageService mbMessageService) {
1288 this.mbMessageService = mbMessageService;
1289 }
1290
1291
1296 public MBMessagePersistence getMBMessagePersistence() {
1297 return mbMessagePersistence;
1298 }
1299
1300
1305 public void setMBMessagePersistence(
1306 MBMessagePersistence mbMessagePersistence) {
1307 this.mbMessagePersistence = mbMessagePersistence;
1308 }
1309
1310
1315 public MBMessageFinder getMBMessageFinder() {
1316 return mbMessageFinder;
1317 }
1318
1319
1324 public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
1325 this.mbMessageFinder = mbMessageFinder;
1326 }
1327
1328
1333 public SocialActivityLocalService getSocialActivityLocalService() {
1334 return socialActivityLocalService;
1335 }
1336
1337
1342 public void setSocialActivityLocalService(
1343 SocialActivityLocalService socialActivityLocalService) {
1344 this.socialActivityLocalService = socialActivityLocalService;
1345 }
1346
1347
1352 public SocialActivityPersistence getSocialActivityPersistence() {
1353 return socialActivityPersistence;
1354 }
1355
1356
1361 public void setSocialActivityPersistence(
1362 SocialActivityPersistence socialActivityPersistence) {
1363 this.socialActivityPersistence = socialActivityPersistence;
1364 }
1365
1366
1371 public SocialActivityFinder getSocialActivityFinder() {
1372 return socialActivityFinder;
1373 }
1374
1375
1380 public void setSocialActivityFinder(
1381 SocialActivityFinder socialActivityFinder) {
1382 this.socialActivityFinder = socialActivityFinder;
1383 }
1384
1385 public void afterPropertiesSet() {
1386 persistedModelLocalServiceRegistry.register("com.liferay.portlet.wiki.model.WikiPage",
1387 wikiPageLocalService);
1388 }
1389
1390 public void destroy() {
1391 persistedModelLocalServiceRegistry.unregister(
1392 "com.liferay.portlet.wiki.model.WikiPage");
1393 }
1394
1395
1400 public String getBeanIdentifier() {
1401 return _beanIdentifier;
1402 }
1403
1404
1409 public void setBeanIdentifier(String beanIdentifier) {
1410 _beanIdentifier = beanIdentifier;
1411 }
1412
1413 protected Class<?> getModelClass() {
1414 return WikiPage.class;
1415 }
1416
1417 protected String getModelClassName() {
1418 return WikiPage.class.getName();
1419 }
1420
1421
1426 protected void runSQL(String sql) throws SystemException {
1427 try {
1428 DataSource dataSource = wikiPagePersistence.getDataSource();
1429
1430 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1431 sql, new int[0]);
1432
1433 sqlUpdate.update();
1434 }
1435 catch (Exception e) {
1436 throw new SystemException(e);
1437 }
1438 }
1439
1440 @BeanReference(type = WikiNodeLocalService.class)
1441 protected WikiNodeLocalService wikiNodeLocalService;
1442 @BeanReference(type = WikiNodeService.class)
1443 protected WikiNodeService wikiNodeService;
1444 @BeanReference(type = WikiNodePersistence.class)
1445 protected WikiNodePersistence wikiNodePersistence;
1446 @BeanReference(type = WikiPageLocalService.class)
1447 protected WikiPageLocalService wikiPageLocalService;
1448 @BeanReference(type = WikiPageService.class)
1449 protected WikiPageService wikiPageService;
1450 @BeanReference(type = WikiPagePersistence.class)
1451 protected WikiPagePersistence wikiPagePersistence;
1452 @BeanReference(type = WikiPageFinder.class)
1453 protected WikiPageFinder wikiPageFinder;
1454 @BeanReference(type = WikiPageResourceLocalService.class)
1455 protected WikiPageResourceLocalService wikiPageResourceLocalService;
1456 @BeanReference(type = WikiPageResourcePersistence.class)
1457 protected WikiPageResourcePersistence wikiPageResourcePersistence;
1458 @BeanReference(type = CounterLocalService.class)
1459 protected CounterLocalService counterLocalService;
1460 @BeanReference(type = CompanyLocalService.class)
1461 protected CompanyLocalService companyLocalService;
1462 @BeanReference(type = CompanyService.class)
1463 protected CompanyService companyService;
1464 @BeanReference(type = CompanyPersistence.class)
1465 protected CompanyPersistence companyPersistence;
1466 @BeanReference(type = GroupLocalService.class)
1467 protected GroupLocalService groupLocalService;
1468 @BeanReference(type = GroupService.class)
1469 protected GroupService groupService;
1470 @BeanReference(type = GroupPersistence.class)
1471 protected GroupPersistence groupPersistence;
1472 @BeanReference(type = GroupFinder.class)
1473 protected GroupFinder groupFinder;
1474 @BeanReference(type = PortletPreferencesLocalService.class)
1475 protected PortletPreferencesLocalService portletPreferencesLocalService;
1476 @BeanReference(type = PortletPreferencesService.class)
1477 protected PortletPreferencesService portletPreferencesService;
1478 @BeanReference(type = PortletPreferencesPersistence.class)
1479 protected PortletPreferencesPersistence portletPreferencesPersistence;
1480 @BeanReference(type = PortletPreferencesFinder.class)
1481 protected PortletPreferencesFinder portletPreferencesFinder;
1482 @BeanReference(type = ResourceLocalService.class)
1483 protected ResourceLocalService resourceLocalService;
1484 @BeanReference(type = ResourceService.class)
1485 protected ResourceService resourceService;
1486 @BeanReference(type = ResourcePersistence.class)
1487 protected ResourcePersistence resourcePersistence;
1488 @BeanReference(type = ResourceFinder.class)
1489 protected ResourceFinder resourceFinder;
1490 @BeanReference(type = SubscriptionLocalService.class)
1491 protected SubscriptionLocalService subscriptionLocalService;
1492 @BeanReference(type = SubscriptionPersistence.class)
1493 protected SubscriptionPersistence subscriptionPersistence;
1494 @BeanReference(type = UserLocalService.class)
1495 protected UserLocalService userLocalService;
1496 @BeanReference(type = UserService.class)
1497 protected UserService userService;
1498 @BeanReference(type = UserPersistence.class)
1499 protected UserPersistence userPersistence;
1500 @BeanReference(type = UserFinder.class)
1501 protected UserFinder userFinder;
1502 @BeanReference(type = WorkflowInstanceLinkLocalService.class)
1503 protected WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1504 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1505 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1506 @BeanReference(type = AssetCategoryLocalService.class)
1507 protected AssetCategoryLocalService assetCategoryLocalService;
1508 @BeanReference(type = AssetCategoryService.class)
1509 protected AssetCategoryService assetCategoryService;
1510 @BeanReference(type = AssetCategoryPersistence.class)
1511 protected AssetCategoryPersistence assetCategoryPersistence;
1512 @BeanReference(type = AssetCategoryFinder.class)
1513 protected AssetCategoryFinder assetCategoryFinder;
1514 @BeanReference(type = AssetEntryLocalService.class)
1515 protected AssetEntryLocalService assetEntryLocalService;
1516 @BeanReference(type = AssetEntryService.class)
1517 protected AssetEntryService assetEntryService;
1518 @BeanReference(type = AssetEntryPersistence.class)
1519 protected AssetEntryPersistence assetEntryPersistence;
1520 @BeanReference(type = AssetEntryFinder.class)
1521 protected AssetEntryFinder assetEntryFinder;
1522 @BeanReference(type = AssetLinkLocalService.class)
1523 protected AssetLinkLocalService assetLinkLocalService;
1524 @BeanReference(type = AssetLinkPersistence.class)
1525 protected AssetLinkPersistence assetLinkPersistence;
1526 @BeanReference(type = AssetTagLocalService.class)
1527 protected AssetTagLocalService assetTagLocalService;
1528 @BeanReference(type = AssetTagService.class)
1529 protected AssetTagService assetTagService;
1530 @BeanReference(type = AssetTagPersistence.class)
1531 protected AssetTagPersistence assetTagPersistence;
1532 @BeanReference(type = AssetTagFinder.class)
1533 protected AssetTagFinder assetTagFinder;
1534 @BeanReference(type = ExpandoValueLocalService.class)
1535 protected ExpandoValueLocalService expandoValueLocalService;
1536 @BeanReference(type = ExpandoValueService.class)
1537 protected ExpandoValueService expandoValueService;
1538 @BeanReference(type = ExpandoValuePersistence.class)
1539 protected ExpandoValuePersistence expandoValuePersistence;
1540 @BeanReference(type = MBMessageLocalService.class)
1541 protected MBMessageLocalService mbMessageLocalService;
1542 @BeanReference(type = MBMessageService.class)
1543 protected MBMessageService mbMessageService;
1544 @BeanReference(type = MBMessagePersistence.class)
1545 protected MBMessagePersistence mbMessagePersistence;
1546 @BeanReference(type = MBMessageFinder.class)
1547 protected MBMessageFinder mbMessageFinder;
1548 @BeanReference(type = SocialActivityLocalService.class)
1549 protected SocialActivityLocalService socialActivityLocalService;
1550 @BeanReference(type = SocialActivityPersistence.class)
1551 protected SocialActivityPersistence socialActivityPersistence;
1552 @BeanReference(type = SocialActivityFinder.class)
1553 protected SocialActivityFinder socialActivityFinder;
1554 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1555 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1556 private String _beanIdentifier;
1557 }