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.ResourceService;
029 import com.liferay.portal.service.UserLocalService;
030 import com.liferay.portal.service.UserService;
031 import com.liferay.portal.service.WebDAVPropsLocalService;
032 import com.liferay.portal.service.persistence.GroupFinder;
033 import com.liferay.portal.service.persistence.GroupPersistence;
034 import com.liferay.portal.service.persistence.ResourceFinder;
035 import com.liferay.portal.service.persistence.ResourcePersistence;
036 import com.liferay.portal.service.persistence.UserFinder;
037 import com.liferay.portal.service.persistence.UserPersistence;
038 import com.liferay.portal.service.persistence.WebDAVPropsPersistence;
039
040 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
041 import com.liferay.portlet.expando.service.ExpandoValueService;
042 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
043 import com.liferay.portlet.journal.model.JournalStructure;
044 import com.liferay.portlet.journal.service.JournalArticleImageLocalService;
045 import com.liferay.portlet.journal.service.JournalArticleLocalService;
046 import com.liferay.portlet.journal.service.JournalArticleResourceLocalService;
047 import com.liferay.portlet.journal.service.JournalArticleService;
048 import com.liferay.portlet.journal.service.JournalContentSearchLocalService;
049 import com.liferay.portlet.journal.service.JournalFeedLocalService;
050 import com.liferay.portlet.journal.service.JournalFeedService;
051 import com.liferay.portlet.journal.service.JournalStructureLocalService;
052 import com.liferay.portlet.journal.service.JournalStructureService;
053 import com.liferay.portlet.journal.service.JournalTemplateLocalService;
054 import com.liferay.portlet.journal.service.JournalTemplateService;
055 import com.liferay.portlet.journal.service.persistence.JournalArticleFinder;
056 import com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence;
057 import com.liferay.portlet.journal.service.persistence.JournalArticlePersistence;
058 import com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence;
059 import com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence;
060 import com.liferay.portlet.journal.service.persistence.JournalFeedFinder;
061 import com.liferay.portlet.journal.service.persistence.JournalFeedPersistence;
062 import com.liferay.portlet.journal.service.persistence.JournalStructureFinder;
063 import com.liferay.portlet.journal.service.persistence.JournalStructurePersistence;
064 import com.liferay.portlet.journal.service.persistence.JournalTemplateFinder;
065 import com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence;
066
067 import javax.sql.DataSource;
068
069
081 public abstract class JournalStructureServiceBaseImpl extends BaseServiceImpl
082 implements JournalStructureService, IdentifiableBean {
083
088
089
094 public JournalArticleLocalService getJournalArticleLocalService() {
095 return journalArticleLocalService;
096 }
097
098
103 public void setJournalArticleLocalService(
104 JournalArticleLocalService journalArticleLocalService) {
105 this.journalArticleLocalService = journalArticleLocalService;
106 }
107
108
113 public JournalArticleService getJournalArticleService() {
114 return journalArticleService;
115 }
116
117
122 public void setJournalArticleService(
123 JournalArticleService journalArticleService) {
124 this.journalArticleService = journalArticleService;
125 }
126
127
132 public JournalArticlePersistence getJournalArticlePersistence() {
133 return journalArticlePersistence;
134 }
135
136
141 public void setJournalArticlePersistence(
142 JournalArticlePersistence journalArticlePersistence) {
143 this.journalArticlePersistence = journalArticlePersistence;
144 }
145
146
151 public JournalArticleFinder getJournalArticleFinder() {
152 return journalArticleFinder;
153 }
154
155
160 public void setJournalArticleFinder(
161 JournalArticleFinder journalArticleFinder) {
162 this.journalArticleFinder = journalArticleFinder;
163 }
164
165
170 public JournalArticleImageLocalService getJournalArticleImageLocalService() {
171 return journalArticleImageLocalService;
172 }
173
174
179 public void setJournalArticleImageLocalService(
180 JournalArticleImageLocalService journalArticleImageLocalService) {
181 this.journalArticleImageLocalService = journalArticleImageLocalService;
182 }
183
184
189 public JournalArticleImagePersistence getJournalArticleImagePersistence() {
190 return journalArticleImagePersistence;
191 }
192
193
198 public void setJournalArticleImagePersistence(
199 JournalArticleImagePersistence journalArticleImagePersistence) {
200 this.journalArticleImagePersistence = journalArticleImagePersistence;
201 }
202
203
208 public JournalArticleResourceLocalService getJournalArticleResourceLocalService() {
209 return journalArticleResourceLocalService;
210 }
211
212
217 public void setJournalArticleResourceLocalService(
218 JournalArticleResourceLocalService journalArticleResourceLocalService) {
219 this.journalArticleResourceLocalService = journalArticleResourceLocalService;
220 }
221
222
227 public JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
228 return journalArticleResourcePersistence;
229 }
230
231
236 public void setJournalArticleResourcePersistence(
237 JournalArticleResourcePersistence journalArticleResourcePersistence) {
238 this.journalArticleResourcePersistence = journalArticleResourcePersistence;
239 }
240
241
246 public JournalContentSearchLocalService getJournalContentSearchLocalService() {
247 return journalContentSearchLocalService;
248 }
249
250
255 public void setJournalContentSearchLocalService(
256 JournalContentSearchLocalService journalContentSearchLocalService) {
257 this.journalContentSearchLocalService = journalContentSearchLocalService;
258 }
259
260
265 public JournalContentSearchPersistence getJournalContentSearchPersistence() {
266 return journalContentSearchPersistence;
267 }
268
269
274 public void setJournalContentSearchPersistence(
275 JournalContentSearchPersistence journalContentSearchPersistence) {
276 this.journalContentSearchPersistence = journalContentSearchPersistence;
277 }
278
279
284 public JournalFeedLocalService getJournalFeedLocalService() {
285 return journalFeedLocalService;
286 }
287
288
293 public void setJournalFeedLocalService(
294 JournalFeedLocalService journalFeedLocalService) {
295 this.journalFeedLocalService = journalFeedLocalService;
296 }
297
298
303 public JournalFeedService getJournalFeedService() {
304 return journalFeedService;
305 }
306
307
312 public void setJournalFeedService(JournalFeedService journalFeedService) {
313 this.journalFeedService = journalFeedService;
314 }
315
316
321 public JournalFeedPersistence getJournalFeedPersistence() {
322 return journalFeedPersistence;
323 }
324
325
330 public void setJournalFeedPersistence(
331 JournalFeedPersistence journalFeedPersistence) {
332 this.journalFeedPersistence = journalFeedPersistence;
333 }
334
335
340 public JournalFeedFinder getJournalFeedFinder() {
341 return journalFeedFinder;
342 }
343
344
349 public void setJournalFeedFinder(JournalFeedFinder journalFeedFinder) {
350 this.journalFeedFinder = journalFeedFinder;
351 }
352
353
358 public JournalStructureLocalService getJournalStructureLocalService() {
359 return journalStructureLocalService;
360 }
361
362
367 public void setJournalStructureLocalService(
368 JournalStructureLocalService journalStructureLocalService) {
369 this.journalStructureLocalService = journalStructureLocalService;
370 }
371
372
377 public JournalStructureService getJournalStructureService() {
378 return journalStructureService;
379 }
380
381
386 public void setJournalStructureService(
387 JournalStructureService journalStructureService) {
388 this.journalStructureService = journalStructureService;
389 }
390
391
396 public JournalStructurePersistence getJournalStructurePersistence() {
397 return journalStructurePersistence;
398 }
399
400
405 public void setJournalStructurePersistence(
406 JournalStructurePersistence journalStructurePersistence) {
407 this.journalStructurePersistence = journalStructurePersistence;
408 }
409
410
415 public JournalStructureFinder getJournalStructureFinder() {
416 return journalStructureFinder;
417 }
418
419
424 public void setJournalStructureFinder(
425 JournalStructureFinder journalStructureFinder) {
426 this.journalStructureFinder = journalStructureFinder;
427 }
428
429
434 public JournalTemplateLocalService getJournalTemplateLocalService() {
435 return journalTemplateLocalService;
436 }
437
438
443 public void setJournalTemplateLocalService(
444 JournalTemplateLocalService journalTemplateLocalService) {
445 this.journalTemplateLocalService = journalTemplateLocalService;
446 }
447
448
453 public JournalTemplateService getJournalTemplateService() {
454 return journalTemplateService;
455 }
456
457
462 public void setJournalTemplateService(
463 JournalTemplateService journalTemplateService) {
464 this.journalTemplateService = journalTemplateService;
465 }
466
467
472 public JournalTemplatePersistence getJournalTemplatePersistence() {
473 return journalTemplatePersistence;
474 }
475
476
481 public void setJournalTemplatePersistence(
482 JournalTemplatePersistence journalTemplatePersistence) {
483 this.journalTemplatePersistence = journalTemplatePersistence;
484 }
485
486
491 public JournalTemplateFinder getJournalTemplateFinder() {
492 return journalTemplateFinder;
493 }
494
495
500 public void setJournalTemplateFinder(
501 JournalTemplateFinder journalTemplateFinder) {
502 this.journalTemplateFinder = journalTemplateFinder;
503 }
504
505
510 public CounterLocalService getCounterLocalService() {
511 return counterLocalService;
512 }
513
514
519 public void setCounterLocalService(CounterLocalService counterLocalService) {
520 this.counterLocalService = counterLocalService;
521 }
522
523
528 public GroupLocalService getGroupLocalService() {
529 return groupLocalService;
530 }
531
532
537 public void setGroupLocalService(GroupLocalService groupLocalService) {
538 this.groupLocalService = groupLocalService;
539 }
540
541
546 public GroupService getGroupService() {
547 return groupService;
548 }
549
550
555 public void setGroupService(GroupService groupService) {
556 this.groupService = groupService;
557 }
558
559
564 public GroupPersistence getGroupPersistence() {
565 return groupPersistence;
566 }
567
568
573 public void setGroupPersistence(GroupPersistence groupPersistence) {
574 this.groupPersistence = groupPersistence;
575 }
576
577
582 public GroupFinder getGroupFinder() {
583 return groupFinder;
584 }
585
586
591 public void setGroupFinder(GroupFinder groupFinder) {
592 this.groupFinder = groupFinder;
593 }
594
595
600 public ResourceLocalService getResourceLocalService() {
601 return resourceLocalService;
602 }
603
604
609 public void setResourceLocalService(
610 ResourceLocalService resourceLocalService) {
611 this.resourceLocalService = resourceLocalService;
612 }
613
614
619 public ResourceService getResourceService() {
620 return resourceService;
621 }
622
623
628 public void setResourceService(ResourceService resourceService) {
629 this.resourceService = resourceService;
630 }
631
632
637 public ResourcePersistence getResourcePersistence() {
638 return resourcePersistence;
639 }
640
641
646 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
647 this.resourcePersistence = resourcePersistence;
648 }
649
650
655 public ResourceFinder getResourceFinder() {
656 return resourceFinder;
657 }
658
659
664 public void setResourceFinder(ResourceFinder resourceFinder) {
665 this.resourceFinder = resourceFinder;
666 }
667
668
673 public UserLocalService getUserLocalService() {
674 return userLocalService;
675 }
676
677
682 public void setUserLocalService(UserLocalService userLocalService) {
683 this.userLocalService = userLocalService;
684 }
685
686
691 public UserService getUserService() {
692 return userService;
693 }
694
695
700 public void setUserService(UserService userService) {
701 this.userService = userService;
702 }
703
704
709 public UserPersistence getUserPersistence() {
710 return userPersistence;
711 }
712
713
718 public void setUserPersistence(UserPersistence userPersistence) {
719 this.userPersistence = userPersistence;
720 }
721
722
727 public UserFinder getUserFinder() {
728 return userFinder;
729 }
730
731
736 public void setUserFinder(UserFinder userFinder) {
737 this.userFinder = userFinder;
738 }
739
740
745 public WebDAVPropsLocalService getWebDAVPropsLocalService() {
746 return webDAVPropsLocalService;
747 }
748
749
754 public void setWebDAVPropsLocalService(
755 WebDAVPropsLocalService webDAVPropsLocalService) {
756 this.webDAVPropsLocalService = webDAVPropsLocalService;
757 }
758
759
764 public WebDAVPropsPersistence getWebDAVPropsPersistence() {
765 return webDAVPropsPersistence;
766 }
767
768
773 public void setWebDAVPropsPersistence(
774 WebDAVPropsPersistence webDAVPropsPersistence) {
775 this.webDAVPropsPersistence = webDAVPropsPersistence;
776 }
777
778
783 public ExpandoValueLocalService getExpandoValueLocalService() {
784 return expandoValueLocalService;
785 }
786
787
792 public void setExpandoValueLocalService(
793 ExpandoValueLocalService expandoValueLocalService) {
794 this.expandoValueLocalService = expandoValueLocalService;
795 }
796
797
802 public ExpandoValueService getExpandoValueService() {
803 return expandoValueService;
804 }
805
806
811 public void setExpandoValueService(ExpandoValueService expandoValueService) {
812 this.expandoValueService = expandoValueService;
813 }
814
815
820 public ExpandoValuePersistence getExpandoValuePersistence() {
821 return expandoValuePersistence;
822 }
823
824
829 public void setExpandoValuePersistence(
830 ExpandoValuePersistence expandoValuePersistence) {
831 this.expandoValuePersistence = expandoValuePersistence;
832 }
833
834 public void afterPropertiesSet() {
835 }
836
837 public void destroy() {
838 }
839
840
845 public String getBeanIdentifier() {
846 return _beanIdentifier;
847 }
848
849
854 public void setBeanIdentifier(String beanIdentifier) {
855 _beanIdentifier = beanIdentifier;
856 }
857
858 protected Class<?> getModelClass() {
859 return JournalStructure.class;
860 }
861
862 protected String getModelClassName() {
863 return JournalStructure.class.getName();
864 }
865
866
871 protected void runSQL(String sql) throws SystemException {
872 try {
873 DataSource dataSource = journalStructurePersistence.getDataSource();
874
875 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
876 sql, new int[0]);
877
878 sqlUpdate.update();
879 }
880 catch (Exception e) {
881 throw new SystemException(e);
882 }
883 }
884
885 @BeanReference(type = JournalArticleLocalService.class)
886 protected JournalArticleLocalService journalArticleLocalService;
887 @BeanReference(type = JournalArticleService.class)
888 protected JournalArticleService journalArticleService;
889 @BeanReference(type = JournalArticlePersistence.class)
890 protected JournalArticlePersistence journalArticlePersistence;
891 @BeanReference(type = JournalArticleFinder.class)
892 protected JournalArticleFinder journalArticleFinder;
893 @BeanReference(type = JournalArticleImageLocalService.class)
894 protected JournalArticleImageLocalService journalArticleImageLocalService;
895 @BeanReference(type = JournalArticleImagePersistence.class)
896 protected JournalArticleImagePersistence journalArticleImagePersistence;
897 @BeanReference(type = JournalArticleResourceLocalService.class)
898 protected JournalArticleResourceLocalService journalArticleResourceLocalService;
899 @BeanReference(type = JournalArticleResourcePersistence.class)
900 protected JournalArticleResourcePersistence journalArticleResourcePersistence;
901 @BeanReference(type = JournalContentSearchLocalService.class)
902 protected JournalContentSearchLocalService journalContentSearchLocalService;
903 @BeanReference(type = JournalContentSearchPersistence.class)
904 protected JournalContentSearchPersistence journalContentSearchPersistence;
905 @BeanReference(type = JournalFeedLocalService.class)
906 protected JournalFeedLocalService journalFeedLocalService;
907 @BeanReference(type = JournalFeedService.class)
908 protected JournalFeedService journalFeedService;
909 @BeanReference(type = JournalFeedPersistence.class)
910 protected JournalFeedPersistence journalFeedPersistence;
911 @BeanReference(type = JournalFeedFinder.class)
912 protected JournalFeedFinder journalFeedFinder;
913 @BeanReference(type = JournalStructureLocalService.class)
914 protected JournalStructureLocalService journalStructureLocalService;
915 @BeanReference(type = JournalStructureService.class)
916 protected JournalStructureService journalStructureService;
917 @BeanReference(type = JournalStructurePersistence.class)
918 protected JournalStructurePersistence journalStructurePersistence;
919 @BeanReference(type = JournalStructureFinder.class)
920 protected JournalStructureFinder journalStructureFinder;
921 @BeanReference(type = JournalTemplateLocalService.class)
922 protected JournalTemplateLocalService journalTemplateLocalService;
923 @BeanReference(type = JournalTemplateService.class)
924 protected JournalTemplateService journalTemplateService;
925 @BeanReference(type = JournalTemplatePersistence.class)
926 protected JournalTemplatePersistence journalTemplatePersistence;
927 @BeanReference(type = JournalTemplateFinder.class)
928 protected JournalTemplateFinder journalTemplateFinder;
929 @BeanReference(type = CounterLocalService.class)
930 protected CounterLocalService counterLocalService;
931 @BeanReference(type = GroupLocalService.class)
932 protected GroupLocalService groupLocalService;
933 @BeanReference(type = GroupService.class)
934 protected GroupService groupService;
935 @BeanReference(type = GroupPersistence.class)
936 protected GroupPersistence groupPersistence;
937 @BeanReference(type = GroupFinder.class)
938 protected GroupFinder groupFinder;
939 @BeanReference(type = ResourceLocalService.class)
940 protected ResourceLocalService resourceLocalService;
941 @BeanReference(type = ResourceService.class)
942 protected ResourceService resourceService;
943 @BeanReference(type = ResourcePersistence.class)
944 protected ResourcePersistence resourcePersistence;
945 @BeanReference(type = ResourceFinder.class)
946 protected ResourceFinder resourceFinder;
947 @BeanReference(type = UserLocalService.class)
948 protected UserLocalService userLocalService;
949 @BeanReference(type = UserService.class)
950 protected UserService userService;
951 @BeanReference(type = UserPersistence.class)
952 protected UserPersistence userPersistence;
953 @BeanReference(type = UserFinder.class)
954 protected UserFinder userFinder;
955 @BeanReference(type = WebDAVPropsLocalService.class)
956 protected WebDAVPropsLocalService webDAVPropsLocalService;
957 @BeanReference(type = WebDAVPropsPersistence.class)
958 protected WebDAVPropsPersistence webDAVPropsPersistence;
959 @BeanReference(type = ExpandoValueLocalService.class)
960 protected ExpandoValueLocalService expandoValueLocalService;
961 @BeanReference(type = ExpandoValueService.class)
962 protected ExpandoValueService expandoValueService;
963 @BeanReference(type = ExpandoValuePersistence.class)
964 protected ExpandoValuePersistence expandoValuePersistence;
965 private String _beanIdentifier;
966 }