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.annotation.BeanReference;
020 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022 import com.liferay.portal.kernel.exception.SystemException;
023 import com.liferay.portal.service.ImageLocalService;
024 import com.liferay.portal.service.ImageService;
025 import com.liferay.portal.service.ResourceLocalService;
026 import com.liferay.portal.service.ResourceService;
027 import com.liferay.portal.service.UserLocalService;
028 import com.liferay.portal.service.UserService;
029 import com.liferay.portal.service.WebDAVPropsLocalService;
030 import com.liferay.portal.service.base.PrincipalBean;
031 import com.liferay.portal.service.persistence.ImagePersistence;
032 import com.liferay.portal.service.persistence.ResourceFinder;
033 import com.liferay.portal.service.persistence.ResourcePersistence;
034 import com.liferay.portal.service.persistence.UserFinder;
035 import com.liferay.portal.service.persistence.UserPersistence;
036 import com.liferay.portal.service.persistence.WebDAVPropsPersistence;
037
038 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
039 import com.liferay.portlet.expando.service.ExpandoValueService;
040 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
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.JournalStructureLocalService;
049 import com.liferay.portlet.journal.service.JournalStructureService;
050 import com.liferay.portlet.journal.service.JournalTemplateLocalService;
051 import com.liferay.portlet.journal.service.JournalTemplateService;
052 import com.liferay.portlet.journal.service.persistence.JournalArticleFinder;
053 import com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence;
054 import com.liferay.portlet.journal.service.persistence.JournalArticlePersistence;
055 import com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence;
056 import com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence;
057 import com.liferay.portlet.journal.service.persistence.JournalFeedFinder;
058 import com.liferay.portlet.journal.service.persistence.JournalFeedPersistence;
059 import com.liferay.portlet.journal.service.persistence.JournalStructureFinder;
060 import com.liferay.portlet.journal.service.persistence.JournalStructurePersistence;
061 import com.liferay.portlet.journal.service.persistence.JournalTemplateFinder;
062 import com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence;
063
064 import javax.sql.DataSource;
065
066
082 public abstract class JournalTemplateServiceBaseImpl extends PrincipalBean
083 implements JournalTemplateService {
084
089 public JournalArticleLocalService getJournalArticleLocalService() {
090 return journalArticleLocalService;
091 }
092
093
098 public void setJournalArticleLocalService(
099 JournalArticleLocalService journalArticleLocalService) {
100 this.journalArticleLocalService = journalArticleLocalService;
101 }
102
103
108 public JournalArticleService getJournalArticleService() {
109 return journalArticleService;
110 }
111
112
117 public void setJournalArticleService(
118 JournalArticleService journalArticleService) {
119 this.journalArticleService = journalArticleService;
120 }
121
122
127 public JournalArticlePersistence getJournalArticlePersistence() {
128 return journalArticlePersistence;
129 }
130
131
136 public void setJournalArticlePersistence(
137 JournalArticlePersistence journalArticlePersistence) {
138 this.journalArticlePersistence = journalArticlePersistence;
139 }
140
141
146 public JournalArticleFinder getJournalArticleFinder() {
147 return journalArticleFinder;
148 }
149
150
155 public void setJournalArticleFinder(
156 JournalArticleFinder journalArticleFinder) {
157 this.journalArticleFinder = journalArticleFinder;
158 }
159
160
165 public JournalArticleImageLocalService getJournalArticleImageLocalService() {
166 return journalArticleImageLocalService;
167 }
168
169
174 public void setJournalArticleImageLocalService(
175 JournalArticleImageLocalService journalArticleImageLocalService) {
176 this.journalArticleImageLocalService = journalArticleImageLocalService;
177 }
178
179
184 public JournalArticleImagePersistence getJournalArticleImagePersistence() {
185 return journalArticleImagePersistence;
186 }
187
188
193 public void setJournalArticleImagePersistence(
194 JournalArticleImagePersistence journalArticleImagePersistence) {
195 this.journalArticleImagePersistence = journalArticleImagePersistence;
196 }
197
198
203 public JournalArticleResourceLocalService getJournalArticleResourceLocalService() {
204 return journalArticleResourceLocalService;
205 }
206
207
212 public void setJournalArticleResourceLocalService(
213 JournalArticleResourceLocalService journalArticleResourceLocalService) {
214 this.journalArticleResourceLocalService = journalArticleResourceLocalService;
215 }
216
217
222 public JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
223 return journalArticleResourcePersistence;
224 }
225
226
231 public void setJournalArticleResourcePersistence(
232 JournalArticleResourcePersistence journalArticleResourcePersistence) {
233 this.journalArticleResourcePersistence = journalArticleResourcePersistence;
234 }
235
236
241 public JournalContentSearchLocalService getJournalContentSearchLocalService() {
242 return journalContentSearchLocalService;
243 }
244
245
250 public void setJournalContentSearchLocalService(
251 JournalContentSearchLocalService journalContentSearchLocalService) {
252 this.journalContentSearchLocalService = journalContentSearchLocalService;
253 }
254
255
260 public JournalContentSearchPersistence getJournalContentSearchPersistence() {
261 return journalContentSearchPersistence;
262 }
263
264
269 public void setJournalContentSearchPersistence(
270 JournalContentSearchPersistence journalContentSearchPersistence) {
271 this.journalContentSearchPersistence = journalContentSearchPersistence;
272 }
273
274
279 public JournalFeedLocalService getJournalFeedLocalService() {
280 return journalFeedLocalService;
281 }
282
283
288 public void setJournalFeedLocalService(
289 JournalFeedLocalService journalFeedLocalService) {
290 this.journalFeedLocalService = journalFeedLocalService;
291 }
292
293
298 public JournalFeedService getJournalFeedService() {
299 return journalFeedService;
300 }
301
302
307 public void setJournalFeedService(JournalFeedService journalFeedService) {
308 this.journalFeedService = journalFeedService;
309 }
310
311
316 public JournalFeedPersistence getJournalFeedPersistence() {
317 return journalFeedPersistence;
318 }
319
320
325 public void setJournalFeedPersistence(
326 JournalFeedPersistence journalFeedPersistence) {
327 this.journalFeedPersistence = journalFeedPersistence;
328 }
329
330
335 public JournalFeedFinder getJournalFeedFinder() {
336 return journalFeedFinder;
337 }
338
339
344 public void setJournalFeedFinder(JournalFeedFinder journalFeedFinder) {
345 this.journalFeedFinder = journalFeedFinder;
346 }
347
348
353 public JournalStructureLocalService getJournalStructureLocalService() {
354 return journalStructureLocalService;
355 }
356
357
362 public void setJournalStructureLocalService(
363 JournalStructureLocalService journalStructureLocalService) {
364 this.journalStructureLocalService = journalStructureLocalService;
365 }
366
367
372 public JournalStructureService getJournalStructureService() {
373 return journalStructureService;
374 }
375
376
381 public void setJournalStructureService(
382 JournalStructureService journalStructureService) {
383 this.journalStructureService = journalStructureService;
384 }
385
386
391 public JournalStructurePersistence getJournalStructurePersistence() {
392 return journalStructurePersistence;
393 }
394
395
400 public void setJournalStructurePersistence(
401 JournalStructurePersistence journalStructurePersistence) {
402 this.journalStructurePersistence = journalStructurePersistence;
403 }
404
405
410 public JournalStructureFinder getJournalStructureFinder() {
411 return journalStructureFinder;
412 }
413
414
419 public void setJournalStructureFinder(
420 JournalStructureFinder journalStructureFinder) {
421 this.journalStructureFinder = journalStructureFinder;
422 }
423
424
429 public JournalTemplateLocalService getJournalTemplateLocalService() {
430 return journalTemplateLocalService;
431 }
432
433
438 public void setJournalTemplateLocalService(
439 JournalTemplateLocalService journalTemplateLocalService) {
440 this.journalTemplateLocalService = journalTemplateLocalService;
441 }
442
443
448 public JournalTemplateService getJournalTemplateService() {
449 return journalTemplateService;
450 }
451
452
457 public void setJournalTemplateService(
458 JournalTemplateService journalTemplateService) {
459 this.journalTemplateService = journalTemplateService;
460 }
461
462
467 public JournalTemplatePersistence getJournalTemplatePersistence() {
468 return journalTemplatePersistence;
469 }
470
471
476 public void setJournalTemplatePersistence(
477 JournalTemplatePersistence journalTemplatePersistence) {
478 this.journalTemplatePersistence = journalTemplatePersistence;
479 }
480
481
486 public JournalTemplateFinder getJournalTemplateFinder() {
487 return journalTemplateFinder;
488 }
489
490
495 public void setJournalTemplateFinder(
496 JournalTemplateFinder journalTemplateFinder) {
497 this.journalTemplateFinder = journalTemplateFinder;
498 }
499
500
505 public CounterLocalService getCounterLocalService() {
506 return counterLocalService;
507 }
508
509
514 public void setCounterLocalService(CounterLocalService counterLocalService) {
515 this.counterLocalService = counterLocalService;
516 }
517
518
523 public ImageLocalService getImageLocalService() {
524 return imageLocalService;
525 }
526
527
532 public void setImageLocalService(ImageLocalService imageLocalService) {
533 this.imageLocalService = imageLocalService;
534 }
535
536
541 public ImageService getImageService() {
542 return imageService;
543 }
544
545
550 public void setImageService(ImageService imageService) {
551 this.imageService = imageService;
552 }
553
554
559 public ImagePersistence getImagePersistence() {
560 return imagePersistence;
561 }
562
563
568 public void setImagePersistence(ImagePersistence imagePersistence) {
569 this.imagePersistence = imagePersistence;
570 }
571
572
577 public ResourceLocalService getResourceLocalService() {
578 return resourceLocalService;
579 }
580
581
586 public void setResourceLocalService(
587 ResourceLocalService resourceLocalService) {
588 this.resourceLocalService = resourceLocalService;
589 }
590
591
596 public ResourceService getResourceService() {
597 return resourceService;
598 }
599
600
605 public void setResourceService(ResourceService resourceService) {
606 this.resourceService = resourceService;
607 }
608
609
614 public ResourcePersistence getResourcePersistence() {
615 return resourcePersistence;
616 }
617
618
623 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
624 this.resourcePersistence = resourcePersistence;
625 }
626
627
632 public ResourceFinder getResourceFinder() {
633 return resourceFinder;
634 }
635
636
641 public void setResourceFinder(ResourceFinder resourceFinder) {
642 this.resourceFinder = resourceFinder;
643 }
644
645
650 public UserLocalService getUserLocalService() {
651 return userLocalService;
652 }
653
654
659 public void setUserLocalService(UserLocalService userLocalService) {
660 this.userLocalService = userLocalService;
661 }
662
663
668 public UserService getUserService() {
669 return userService;
670 }
671
672
677 public void setUserService(UserService userService) {
678 this.userService = userService;
679 }
680
681
686 public UserPersistence getUserPersistence() {
687 return userPersistence;
688 }
689
690
695 public void setUserPersistence(UserPersistence userPersistence) {
696 this.userPersistence = userPersistence;
697 }
698
699
704 public UserFinder getUserFinder() {
705 return userFinder;
706 }
707
708
713 public void setUserFinder(UserFinder userFinder) {
714 this.userFinder = userFinder;
715 }
716
717
722 public WebDAVPropsLocalService getWebDAVPropsLocalService() {
723 return webDAVPropsLocalService;
724 }
725
726
731 public void setWebDAVPropsLocalService(
732 WebDAVPropsLocalService webDAVPropsLocalService) {
733 this.webDAVPropsLocalService = webDAVPropsLocalService;
734 }
735
736
741 public WebDAVPropsPersistence getWebDAVPropsPersistence() {
742 return webDAVPropsPersistence;
743 }
744
745
750 public void setWebDAVPropsPersistence(
751 WebDAVPropsPersistence webDAVPropsPersistence) {
752 this.webDAVPropsPersistence = webDAVPropsPersistence;
753 }
754
755
760 public ExpandoValueLocalService getExpandoValueLocalService() {
761 return expandoValueLocalService;
762 }
763
764
769 public void setExpandoValueLocalService(
770 ExpandoValueLocalService expandoValueLocalService) {
771 this.expandoValueLocalService = expandoValueLocalService;
772 }
773
774
779 public ExpandoValueService getExpandoValueService() {
780 return expandoValueService;
781 }
782
783
788 public void setExpandoValueService(ExpandoValueService expandoValueService) {
789 this.expandoValueService = expandoValueService;
790 }
791
792
797 public ExpandoValuePersistence getExpandoValuePersistence() {
798 return expandoValuePersistence;
799 }
800
801
806 public void setExpandoValuePersistence(
807 ExpandoValuePersistence expandoValuePersistence) {
808 this.expandoValuePersistence = expandoValuePersistence;
809 }
810
811
816 protected void runSQL(String sql) throws SystemException {
817 try {
818 DataSource dataSource = journalTemplatePersistence.getDataSource();
819
820 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
821 sql, new int[0]);
822
823 sqlUpdate.update();
824 }
825 catch (Exception e) {
826 throw new SystemException(e);
827 }
828 }
829
830 @BeanReference(type = JournalArticleLocalService.class)
831 protected JournalArticleLocalService journalArticleLocalService;
832 @BeanReference(type = JournalArticleService.class)
833 protected JournalArticleService journalArticleService;
834 @BeanReference(type = JournalArticlePersistence.class)
835 protected JournalArticlePersistence journalArticlePersistence;
836 @BeanReference(type = JournalArticleFinder.class)
837 protected JournalArticleFinder journalArticleFinder;
838 @BeanReference(type = JournalArticleImageLocalService.class)
839 protected JournalArticleImageLocalService journalArticleImageLocalService;
840 @BeanReference(type = JournalArticleImagePersistence.class)
841 protected JournalArticleImagePersistence journalArticleImagePersistence;
842 @BeanReference(type = JournalArticleResourceLocalService.class)
843 protected JournalArticleResourceLocalService journalArticleResourceLocalService;
844 @BeanReference(type = JournalArticleResourcePersistence.class)
845 protected JournalArticleResourcePersistence journalArticleResourcePersistence;
846 @BeanReference(type = JournalContentSearchLocalService.class)
847 protected JournalContentSearchLocalService journalContentSearchLocalService;
848 @BeanReference(type = JournalContentSearchPersistence.class)
849 protected JournalContentSearchPersistence journalContentSearchPersistence;
850 @BeanReference(type = JournalFeedLocalService.class)
851 protected JournalFeedLocalService journalFeedLocalService;
852 @BeanReference(type = JournalFeedService.class)
853 protected JournalFeedService journalFeedService;
854 @BeanReference(type = JournalFeedPersistence.class)
855 protected JournalFeedPersistence journalFeedPersistence;
856 @BeanReference(type = JournalFeedFinder.class)
857 protected JournalFeedFinder journalFeedFinder;
858 @BeanReference(type = JournalStructureLocalService.class)
859 protected JournalStructureLocalService journalStructureLocalService;
860 @BeanReference(type = JournalStructureService.class)
861 protected JournalStructureService journalStructureService;
862 @BeanReference(type = JournalStructurePersistence.class)
863 protected JournalStructurePersistence journalStructurePersistence;
864 @BeanReference(type = JournalStructureFinder.class)
865 protected JournalStructureFinder journalStructureFinder;
866 @BeanReference(type = JournalTemplateLocalService.class)
867 protected JournalTemplateLocalService journalTemplateLocalService;
868 @BeanReference(type = JournalTemplateService.class)
869 protected JournalTemplateService journalTemplateService;
870 @BeanReference(type = JournalTemplatePersistence.class)
871 protected JournalTemplatePersistence journalTemplatePersistence;
872 @BeanReference(type = JournalTemplateFinder.class)
873 protected JournalTemplateFinder journalTemplateFinder;
874 @BeanReference(type = CounterLocalService.class)
875 protected CounterLocalService counterLocalService;
876 @BeanReference(type = ImageLocalService.class)
877 protected ImageLocalService imageLocalService;
878 @BeanReference(type = ImageService.class)
879 protected ImageService imageService;
880 @BeanReference(type = ImagePersistence.class)
881 protected ImagePersistence imagePersistence;
882 @BeanReference(type = ResourceLocalService.class)
883 protected ResourceLocalService resourceLocalService;
884 @BeanReference(type = ResourceService.class)
885 protected ResourceService resourceService;
886 @BeanReference(type = ResourcePersistence.class)
887 protected ResourcePersistence resourcePersistence;
888 @BeanReference(type = ResourceFinder.class)
889 protected ResourceFinder resourceFinder;
890 @BeanReference(type = UserLocalService.class)
891 protected UserLocalService userLocalService;
892 @BeanReference(type = UserService.class)
893 protected UserService userService;
894 @BeanReference(type = UserPersistence.class)
895 protected UserPersistence userPersistence;
896 @BeanReference(type = UserFinder.class)
897 protected UserFinder userFinder;
898 @BeanReference(type = WebDAVPropsLocalService.class)
899 protected WebDAVPropsLocalService webDAVPropsLocalService;
900 @BeanReference(type = WebDAVPropsPersistence.class)
901 protected WebDAVPropsPersistence webDAVPropsPersistence;
902 @BeanReference(type = ExpandoValueLocalService.class)
903 protected ExpandoValueLocalService expandoValueLocalService;
904 @BeanReference(type = ExpandoValueService.class)
905 protected ExpandoValueService expandoValueService;
906 @BeanReference(type = ExpandoValuePersistence.class)
907 protected ExpandoValuePersistence expandoValuePersistence;
908 }