001
014
015 package com.liferay.portlet.journal.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.GroupLocalService;
026 import com.liferay.portal.service.GroupService;
027 import com.liferay.portal.service.ResourceLocalService;
028 import com.liferay.portal.service.UserLocalService;
029 import com.liferay.portal.service.UserService;
030 import com.liferay.portal.service.WebDAVPropsLocalService;
031 import com.liferay.portal.service.persistence.GroupFinder;
032 import com.liferay.portal.service.persistence.GroupPersistence;
033 import com.liferay.portal.service.persistence.UserFinder;
034 import com.liferay.portal.service.persistence.UserPersistence;
035 import com.liferay.portal.service.persistence.WebDAVPropsPersistence;
036
037 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
038 import com.liferay.portlet.expando.service.ExpandoValueService;
039 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
040 import com.liferay.portlet.journal.model.JournalStructure;
041 import com.liferay.portlet.journal.service.JournalArticleImageLocalService;
042 import com.liferay.portlet.journal.service.JournalArticleLocalService;
043 import com.liferay.portlet.journal.service.JournalArticleResourceLocalService;
044 import com.liferay.portlet.journal.service.JournalArticleService;
045 import com.liferay.portlet.journal.service.JournalContentSearchLocalService;
046 import com.liferay.portlet.journal.service.JournalFeedLocalService;
047 import com.liferay.portlet.journal.service.JournalFeedService;
048 import com.liferay.portlet.journal.service.JournalFolderLocalService;
049 import com.liferay.portlet.journal.service.JournalFolderService;
050 import com.liferay.portlet.journal.service.JournalStructureLocalService;
051 import com.liferay.portlet.journal.service.JournalStructureService;
052 import com.liferay.portlet.journal.service.JournalTemplateLocalService;
053 import com.liferay.portlet.journal.service.JournalTemplateService;
054 import com.liferay.portlet.journal.service.persistence.JournalArticleFinder;
055 import com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence;
056 import com.liferay.portlet.journal.service.persistence.JournalArticlePersistence;
057 import com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence;
058 import com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence;
059 import com.liferay.portlet.journal.service.persistence.JournalFeedFinder;
060 import com.liferay.portlet.journal.service.persistence.JournalFeedPersistence;
061 import com.liferay.portlet.journal.service.persistence.JournalFolderFinder;
062 import com.liferay.portlet.journal.service.persistence.JournalFolderPersistence;
063 import com.liferay.portlet.journal.service.persistence.JournalStructureFinder;
064 import com.liferay.portlet.journal.service.persistence.JournalStructurePersistence;
065 import com.liferay.portlet.journal.service.persistence.JournalTemplateFinder;
066 import com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence;
067
068 import javax.sql.DataSource;
069
070
082 public abstract class JournalStructureServiceBaseImpl extends BaseServiceImpl
083 implements JournalStructureService, IdentifiableBean {
084
089
090
095 public JournalArticleLocalService getJournalArticleLocalService() {
096 return journalArticleLocalService;
097 }
098
099
104 public void setJournalArticleLocalService(
105 JournalArticleLocalService journalArticleLocalService) {
106 this.journalArticleLocalService = journalArticleLocalService;
107 }
108
109
114 public JournalArticleService getJournalArticleService() {
115 return journalArticleService;
116 }
117
118
123 public void setJournalArticleService(
124 JournalArticleService journalArticleService) {
125 this.journalArticleService = journalArticleService;
126 }
127
128
133 public JournalArticlePersistence getJournalArticlePersistence() {
134 return journalArticlePersistence;
135 }
136
137
142 public void setJournalArticlePersistence(
143 JournalArticlePersistence journalArticlePersistence) {
144 this.journalArticlePersistence = journalArticlePersistence;
145 }
146
147
152 public JournalArticleFinder getJournalArticleFinder() {
153 return journalArticleFinder;
154 }
155
156
161 public void setJournalArticleFinder(
162 JournalArticleFinder journalArticleFinder) {
163 this.journalArticleFinder = journalArticleFinder;
164 }
165
166
171 public JournalArticleImageLocalService getJournalArticleImageLocalService() {
172 return journalArticleImageLocalService;
173 }
174
175
180 public void setJournalArticleImageLocalService(
181 JournalArticleImageLocalService journalArticleImageLocalService) {
182 this.journalArticleImageLocalService = journalArticleImageLocalService;
183 }
184
185
190 public JournalArticleImagePersistence getJournalArticleImagePersistence() {
191 return journalArticleImagePersistence;
192 }
193
194
199 public void setJournalArticleImagePersistence(
200 JournalArticleImagePersistence journalArticleImagePersistence) {
201 this.journalArticleImagePersistence = journalArticleImagePersistence;
202 }
203
204
209 public JournalArticleResourceLocalService getJournalArticleResourceLocalService() {
210 return journalArticleResourceLocalService;
211 }
212
213
218 public void setJournalArticleResourceLocalService(
219 JournalArticleResourceLocalService journalArticleResourceLocalService) {
220 this.journalArticleResourceLocalService = journalArticleResourceLocalService;
221 }
222
223
228 public JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
229 return journalArticleResourcePersistence;
230 }
231
232
237 public void setJournalArticleResourcePersistence(
238 JournalArticleResourcePersistence journalArticleResourcePersistence) {
239 this.journalArticleResourcePersistence = journalArticleResourcePersistence;
240 }
241
242
247 public JournalContentSearchLocalService getJournalContentSearchLocalService() {
248 return journalContentSearchLocalService;
249 }
250
251
256 public void setJournalContentSearchLocalService(
257 JournalContentSearchLocalService journalContentSearchLocalService) {
258 this.journalContentSearchLocalService = journalContentSearchLocalService;
259 }
260
261
266 public JournalContentSearchPersistence getJournalContentSearchPersistence() {
267 return journalContentSearchPersistence;
268 }
269
270
275 public void setJournalContentSearchPersistence(
276 JournalContentSearchPersistence journalContentSearchPersistence) {
277 this.journalContentSearchPersistence = journalContentSearchPersistence;
278 }
279
280
285 public JournalFeedLocalService getJournalFeedLocalService() {
286 return journalFeedLocalService;
287 }
288
289
294 public void setJournalFeedLocalService(
295 JournalFeedLocalService journalFeedLocalService) {
296 this.journalFeedLocalService = journalFeedLocalService;
297 }
298
299
304 public JournalFeedService getJournalFeedService() {
305 return journalFeedService;
306 }
307
308
313 public void setJournalFeedService(JournalFeedService journalFeedService) {
314 this.journalFeedService = journalFeedService;
315 }
316
317
322 public JournalFeedPersistence getJournalFeedPersistence() {
323 return journalFeedPersistence;
324 }
325
326
331 public void setJournalFeedPersistence(
332 JournalFeedPersistence journalFeedPersistence) {
333 this.journalFeedPersistence = journalFeedPersistence;
334 }
335
336
341 public JournalFeedFinder getJournalFeedFinder() {
342 return journalFeedFinder;
343 }
344
345
350 public void setJournalFeedFinder(JournalFeedFinder journalFeedFinder) {
351 this.journalFeedFinder = journalFeedFinder;
352 }
353
354
359 public JournalFolderLocalService getJournalFolderLocalService() {
360 return journalFolderLocalService;
361 }
362
363
368 public void setJournalFolderLocalService(
369 JournalFolderLocalService journalFolderLocalService) {
370 this.journalFolderLocalService = journalFolderLocalService;
371 }
372
373
378 public JournalFolderService getJournalFolderService() {
379 return journalFolderService;
380 }
381
382
387 public void setJournalFolderService(
388 JournalFolderService journalFolderService) {
389 this.journalFolderService = journalFolderService;
390 }
391
392
397 public JournalFolderPersistence getJournalFolderPersistence() {
398 return journalFolderPersistence;
399 }
400
401
406 public void setJournalFolderPersistence(
407 JournalFolderPersistence journalFolderPersistence) {
408 this.journalFolderPersistence = journalFolderPersistence;
409 }
410
411
416 public JournalFolderFinder getJournalFolderFinder() {
417 return journalFolderFinder;
418 }
419
420
425 public void setJournalFolderFinder(JournalFolderFinder journalFolderFinder) {
426 this.journalFolderFinder = journalFolderFinder;
427 }
428
429
434 public JournalStructureLocalService getJournalStructureLocalService() {
435 return journalStructureLocalService;
436 }
437
438
443 public void setJournalStructureLocalService(
444 JournalStructureLocalService journalStructureLocalService) {
445 this.journalStructureLocalService = journalStructureLocalService;
446 }
447
448
453 public JournalStructureService getJournalStructureService() {
454 return journalStructureService;
455 }
456
457
462 public void setJournalStructureService(
463 JournalStructureService journalStructureService) {
464 this.journalStructureService = journalStructureService;
465 }
466
467
472 public JournalStructurePersistence getJournalStructurePersistence() {
473 return journalStructurePersistence;
474 }
475
476
481 public void setJournalStructurePersistence(
482 JournalStructurePersistence journalStructurePersistence) {
483 this.journalStructurePersistence = journalStructurePersistence;
484 }
485
486
491 public JournalStructureFinder getJournalStructureFinder() {
492 return journalStructureFinder;
493 }
494
495
500 public void setJournalStructureFinder(
501 JournalStructureFinder journalStructureFinder) {
502 this.journalStructureFinder = journalStructureFinder;
503 }
504
505
510 public JournalTemplateLocalService getJournalTemplateLocalService() {
511 return journalTemplateLocalService;
512 }
513
514
519 public void setJournalTemplateLocalService(
520 JournalTemplateLocalService journalTemplateLocalService) {
521 this.journalTemplateLocalService = journalTemplateLocalService;
522 }
523
524
529 public JournalTemplateService getJournalTemplateService() {
530 return journalTemplateService;
531 }
532
533
538 public void setJournalTemplateService(
539 JournalTemplateService journalTemplateService) {
540 this.journalTemplateService = journalTemplateService;
541 }
542
543
548 public JournalTemplatePersistence getJournalTemplatePersistence() {
549 return journalTemplatePersistence;
550 }
551
552
557 public void setJournalTemplatePersistence(
558 JournalTemplatePersistence journalTemplatePersistence) {
559 this.journalTemplatePersistence = journalTemplatePersistence;
560 }
561
562
567 public JournalTemplateFinder getJournalTemplateFinder() {
568 return journalTemplateFinder;
569 }
570
571
576 public void setJournalTemplateFinder(
577 JournalTemplateFinder journalTemplateFinder) {
578 this.journalTemplateFinder = journalTemplateFinder;
579 }
580
581
586 public CounterLocalService getCounterLocalService() {
587 return counterLocalService;
588 }
589
590
595 public void setCounterLocalService(CounterLocalService counterLocalService) {
596 this.counterLocalService = counterLocalService;
597 }
598
599
604 public GroupLocalService getGroupLocalService() {
605 return groupLocalService;
606 }
607
608
613 public void setGroupLocalService(GroupLocalService groupLocalService) {
614 this.groupLocalService = groupLocalService;
615 }
616
617
622 public GroupService getGroupService() {
623 return groupService;
624 }
625
626
631 public void setGroupService(GroupService groupService) {
632 this.groupService = groupService;
633 }
634
635
640 public GroupPersistence getGroupPersistence() {
641 return groupPersistence;
642 }
643
644
649 public void setGroupPersistence(GroupPersistence groupPersistence) {
650 this.groupPersistence = groupPersistence;
651 }
652
653
658 public GroupFinder getGroupFinder() {
659 return groupFinder;
660 }
661
662
667 public void setGroupFinder(GroupFinder groupFinder) {
668 this.groupFinder = groupFinder;
669 }
670
671
676 public ResourceLocalService getResourceLocalService() {
677 return resourceLocalService;
678 }
679
680
685 public void setResourceLocalService(
686 ResourceLocalService resourceLocalService) {
687 this.resourceLocalService = resourceLocalService;
688 }
689
690
695 public UserLocalService getUserLocalService() {
696 return userLocalService;
697 }
698
699
704 public void setUserLocalService(UserLocalService userLocalService) {
705 this.userLocalService = userLocalService;
706 }
707
708
713 public UserService getUserService() {
714 return userService;
715 }
716
717
722 public void setUserService(UserService userService) {
723 this.userService = userService;
724 }
725
726
731 public UserPersistence getUserPersistence() {
732 return userPersistence;
733 }
734
735
740 public void setUserPersistence(UserPersistence userPersistence) {
741 this.userPersistence = userPersistence;
742 }
743
744
749 public UserFinder getUserFinder() {
750 return userFinder;
751 }
752
753
758 public void setUserFinder(UserFinder userFinder) {
759 this.userFinder = userFinder;
760 }
761
762
767 public WebDAVPropsLocalService getWebDAVPropsLocalService() {
768 return webDAVPropsLocalService;
769 }
770
771
776 public void setWebDAVPropsLocalService(
777 WebDAVPropsLocalService webDAVPropsLocalService) {
778 this.webDAVPropsLocalService = webDAVPropsLocalService;
779 }
780
781
786 public WebDAVPropsPersistence getWebDAVPropsPersistence() {
787 return webDAVPropsPersistence;
788 }
789
790
795 public void setWebDAVPropsPersistence(
796 WebDAVPropsPersistence webDAVPropsPersistence) {
797 this.webDAVPropsPersistence = webDAVPropsPersistence;
798 }
799
800
805 public ExpandoValueLocalService getExpandoValueLocalService() {
806 return expandoValueLocalService;
807 }
808
809
814 public void setExpandoValueLocalService(
815 ExpandoValueLocalService expandoValueLocalService) {
816 this.expandoValueLocalService = expandoValueLocalService;
817 }
818
819
824 public ExpandoValueService getExpandoValueService() {
825 return expandoValueService;
826 }
827
828
833 public void setExpandoValueService(ExpandoValueService expandoValueService) {
834 this.expandoValueService = expandoValueService;
835 }
836
837
842 public ExpandoValuePersistence getExpandoValuePersistence() {
843 return expandoValuePersistence;
844 }
845
846
851 public void setExpandoValuePersistence(
852 ExpandoValuePersistence expandoValuePersistence) {
853 this.expandoValuePersistence = expandoValuePersistence;
854 }
855
856 public void afterPropertiesSet() {
857 }
858
859 public void destroy() {
860 }
861
862
867 public String getBeanIdentifier() {
868 return _beanIdentifier;
869 }
870
871
876 public void setBeanIdentifier(String beanIdentifier) {
877 _beanIdentifier = beanIdentifier;
878 }
879
880 protected Class<?> getModelClass() {
881 return JournalStructure.class;
882 }
883
884 protected String getModelClassName() {
885 return JournalStructure.class.getName();
886 }
887
888
893 protected void runSQL(String sql) throws SystemException {
894 try {
895 DataSource dataSource = journalStructurePersistence.getDataSource();
896
897 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
898 sql, new int[0]);
899
900 sqlUpdate.update();
901 }
902 catch (Exception e) {
903 throw new SystemException(e);
904 }
905 }
906
907 @BeanReference(type = JournalArticleLocalService.class)
908 protected JournalArticleLocalService journalArticleLocalService;
909 @BeanReference(type = JournalArticleService.class)
910 protected JournalArticleService journalArticleService;
911 @BeanReference(type = JournalArticlePersistence.class)
912 protected JournalArticlePersistence journalArticlePersistence;
913 @BeanReference(type = JournalArticleFinder.class)
914 protected JournalArticleFinder journalArticleFinder;
915 @BeanReference(type = JournalArticleImageLocalService.class)
916 protected JournalArticleImageLocalService journalArticleImageLocalService;
917 @BeanReference(type = JournalArticleImagePersistence.class)
918 protected JournalArticleImagePersistence journalArticleImagePersistence;
919 @BeanReference(type = JournalArticleResourceLocalService.class)
920 protected JournalArticleResourceLocalService journalArticleResourceLocalService;
921 @BeanReference(type = JournalArticleResourcePersistence.class)
922 protected JournalArticleResourcePersistence journalArticleResourcePersistence;
923 @BeanReference(type = JournalContentSearchLocalService.class)
924 protected JournalContentSearchLocalService journalContentSearchLocalService;
925 @BeanReference(type = JournalContentSearchPersistence.class)
926 protected JournalContentSearchPersistence journalContentSearchPersistence;
927 @BeanReference(type = JournalFeedLocalService.class)
928 protected JournalFeedLocalService journalFeedLocalService;
929 @BeanReference(type = JournalFeedService.class)
930 protected JournalFeedService journalFeedService;
931 @BeanReference(type = JournalFeedPersistence.class)
932 protected JournalFeedPersistence journalFeedPersistence;
933 @BeanReference(type = JournalFeedFinder.class)
934 protected JournalFeedFinder journalFeedFinder;
935 @BeanReference(type = JournalFolderLocalService.class)
936 protected JournalFolderLocalService journalFolderLocalService;
937 @BeanReference(type = JournalFolderService.class)
938 protected JournalFolderService journalFolderService;
939 @BeanReference(type = JournalFolderPersistence.class)
940 protected JournalFolderPersistence journalFolderPersistence;
941 @BeanReference(type = JournalFolderFinder.class)
942 protected JournalFolderFinder journalFolderFinder;
943 @BeanReference(type = JournalStructureLocalService.class)
944 protected JournalStructureLocalService journalStructureLocalService;
945 @BeanReference(type = JournalStructureService.class)
946 protected JournalStructureService journalStructureService;
947 @BeanReference(type = JournalStructurePersistence.class)
948 protected JournalStructurePersistence journalStructurePersistence;
949 @BeanReference(type = JournalStructureFinder.class)
950 protected JournalStructureFinder journalStructureFinder;
951 @BeanReference(type = JournalTemplateLocalService.class)
952 protected JournalTemplateLocalService journalTemplateLocalService;
953 @BeanReference(type = JournalTemplateService.class)
954 protected JournalTemplateService journalTemplateService;
955 @BeanReference(type = JournalTemplatePersistence.class)
956 protected JournalTemplatePersistence journalTemplatePersistence;
957 @BeanReference(type = JournalTemplateFinder.class)
958 protected JournalTemplateFinder journalTemplateFinder;
959 @BeanReference(type = CounterLocalService.class)
960 protected CounterLocalService counterLocalService;
961 @BeanReference(type = GroupLocalService.class)
962 protected GroupLocalService groupLocalService;
963 @BeanReference(type = GroupService.class)
964 protected GroupService groupService;
965 @BeanReference(type = GroupPersistence.class)
966 protected GroupPersistence groupPersistence;
967 @BeanReference(type = GroupFinder.class)
968 protected GroupFinder groupFinder;
969 @BeanReference(type = ResourceLocalService.class)
970 protected ResourceLocalService resourceLocalService;
971 @BeanReference(type = UserLocalService.class)
972 protected UserLocalService userLocalService;
973 @BeanReference(type = UserService.class)
974 protected UserService userService;
975 @BeanReference(type = UserPersistence.class)
976 protected UserPersistence userPersistence;
977 @BeanReference(type = UserFinder.class)
978 protected UserFinder userFinder;
979 @BeanReference(type = WebDAVPropsLocalService.class)
980 protected WebDAVPropsLocalService webDAVPropsLocalService;
981 @BeanReference(type = WebDAVPropsPersistence.class)
982 protected WebDAVPropsPersistence webDAVPropsPersistence;
983 @BeanReference(type = ExpandoValueLocalService.class)
984 protected ExpandoValueLocalService expandoValueLocalService;
985 @BeanReference(type = ExpandoValueService.class)
986 protected ExpandoValueService expandoValueService;
987 @BeanReference(type = ExpandoValuePersistence.class)
988 protected ExpandoValuePersistence expandoValuePersistence;
989 private String _beanIdentifier;
990 }