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.ResourceLocalService;
024 import com.liferay.portal.service.ResourceService;
025 import com.liferay.portal.service.UserLocalService;
026 import com.liferay.portal.service.UserService;
027 import com.liferay.portal.service.WebDAVPropsLocalService;
028 import com.liferay.portal.service.base.PrincipalBean;
029 import com.liferay.portal.service.persistence.ResourceFinder;
030 import com.liferay.portal.service.persistence.ResourcePersistence;
031 import com.liferay.portal.service.persistence.UserFinder;
032 import com.liferay.portal.service.persistence.UserPersistence;
033 import com.liferay.portal.service.persistence.WebDAVPropsPersistence;
034
035 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
036 import com.liferay.portlet.expando.service.ExpandoValueService;
037 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
038 import com.liferay.portlet.journal.service.JournalArticleImageLocalService;
039 import com.liferay.portlet.journal.service.JournalArticleLocalService;
040 import com.liferay.portlet.journal.service.JournalArticleResourceLocalService;
041 import com.liferay.portlet.journal.service.JournalArticleService;
042 import com.liferay.portlet.journal.service.JournalContentSearchLocalService;
043 import com.liferay.portlet.journal.service.JournalFeedLocalService;
044 import com.liferay.portlet.journal.service.JournalFeedService;
045 import com.liferay.portlet.journal.service.JournalStructureLocalService;
046 import com.liferay.portlet.journal.service.JournalStructureService;
047 import com.liferay.portlet.journal.service.JournalTemplateLocalService;
048 import com.liferay.portlet.journal.service.JournalTemplateService;
049 import com.liferay.portlet.journal.service.persistence.JournalArticleFinder;
050 import com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence;
051 import com.liferay.portlet.journal.service.persistence.JournalArticlePersistence;
052 import com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence;
053 import com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence;
054 import com.liferay.portlet.journal.service.persistence.JournalFeedFinder;
055 import com.liferay.portlet.journal.service.persistence.JournalFeedPersistence;
056 import com.liferay.portlet.journal.service.persistence.JournalStructureFinder;
057 import com.liferay.portlet.journal.service.persistence.JournalStructurePersistence;
058 import com.liferay.portlet.journal.service.persistence.JournalTemplateFinder;
059 import com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence;
060
061 import javax.sql.DataSource;
062
063
079 public abstract class JournalStructureServiceBaseImpl extends PrincipalBean
080 implements JournalStructureService {
081
086 public JournalArticleLocalService getJournalArticleLocalService() {
087 return journalArticleLocalService;
088 }
089
090
095 public void setJournalArticleLocalService(
096 JournalArticleLocalService journalArticleLocalService) {
097 this.journalArticleLocalService = journalArticleLocalService;
098 }
099
100
105 public JournalArticleService getJournalArticleService() {
106 return journalArticleService;
107 }
108
109
114 public void setJournalArticleService(
115 JournalArticleService journalArticleService) {
116 this.journalArticleService = journalArticleService;
117 }
118
119
124 public JournalArticlePersistence getJournalArticlePersistence() {
125 return journalArticlePersistence;
126 }
127
128
133 public void setJournalArticlePersistence(
134 JournalArticlePersistence journalArticlePersistence) {
135 this.journalArticlePersistence = journalArticlePersistence;
136 }
137
138
143 public JournalArticleFinder getJournalArticleFinder() {
144 return journalArticleFinder;
145 }
146
147
152 public void setJournalArticleFinder(
153 JournalArticleFinder journalArticleFinder) {
154 this.journalArticleFinder = journalArticleFinder;
155 }
156
157
162 public JournalArticleImageLocalService getJournalArticleImageLocalService() {
163 return journalArticleImageLocalService;
164 }
165
166
171 public void setJournalArticleImageLocalService(
172 JournalArticleImageLocalService journalArticleImageLocalService) {
173 this.journalArticleImageLocalService = journalArticleImageLocalService;
174 }
175
176
181 public JournalArticleImagePersistence getJournalArticleImagePersistence() {
182 return journalArticleImagePersistence;
183 }
184
185
190 public void setJournalArticleImagePersistence(
191 JournalArticleImagePersistence journalArticleImagePersistence) {
192 this.journalArticleImagePersistence = journalArticleImagePersistence;
193 }
194
195
200 public JournalArticleResourceLocalService getJournalArticleResourceLocalService() {
201 return journalArticleResourceLocalService;
202 }
203
204
209 public void setJournalArticleResourceLocalService(
210 JournalArticleResourceLocalService journalArticleResourceLocalService) {
211 this.journalArticleResourceLocalService = journalArticleResourceLocalService;
212 }
213
214
219 public JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
220 return journalArticleResourcePersistence;
221 }
222
223
228 public void setJournalArticleResourcePersistence(
229 JournalArticleResourcePersistence journalArticleResourcePersistence) {
230 this.journalArticleResourcePersistence = journalArticleResourcePersistence;
231 }
232
233
238 public JournalContentSearchLocalService getJournalContentSearchLocalService() {
239 return journalContentSearchLocalService;
240 }
241
242
247 public void setJournalContentSearchLocalService(
248 JournalContentSearchLocalService journalContentSearchLocalService) {
249 this.journalContentSearchLocalService = journalContentSearchLocalService;
250 }
251
252
257 public JournalContentSearchPersistence getJournalContentSearchPersistence() {
258 return journalContentSearchPersistence;
259 }
260
261
266 public void setJournalContentSearchPersistence(
267 JournalContentSearchPersistence journalContentSearchPersistence) {
268 this.journalContentSearchPersistence = journalContentSearchPersistence;
269 }
270
271
276 public JournalFeedLocalService getJournalFeedLocalService() {
277 return journalFeedLocalService;
278 }
279
280
285 public void setJournalFeedLocalService(
286 JournalFeedLocalService journalFeedLocalService) {
287 this.journalFeedLocalService = journalFeedLocalService;
288 }
289
290
295 public JournalFeedService getJournalFeedService() {
296 return journalFeedService;
297 }
298
299
304 public void setJournalFeedService(JournalFeedService journalFeedService) {
305 this.journalFeedService = journalFeedService;
306 }
307
308
313 public JournalFeedPersistence getJournalFeedPersistence() {
314 return journalFeedPersistence;
315 }
316
317
322 public void setJournalFeedPersistence(
323 JournalFeedPersistence journalFeedPersistence) {
324 this.journalFeedPersistence = journalFeedPersistence;
325 }
326
327
332 public JournalFeedFinder getJournalFeedFinder() {
333 return journalFeedFinder;
334 }
335
336
341 public void setJournalFeedFinder(JournalFeedFinder journalFeedFinder) {
342 this.journalFeedFinder = journalFeedFinder;
343 }
344
345
350 public JournalStructureLocalService getJournalStructureLocalService() {
351 return journalStructureLocalService;
352 }
353
354
359 public void setJournalStructureLocalService(
360 JournalStructureLocalService journalStructureLocalService) {
361 this.journalStructureLocalService = journalStructureLocalService;
362 }
363
364
369 public JournalStructureService getJournalStructureService() {
370 return journalStructureService;
371 }
372
373
378 public void setJournalStructureService(
379 JournalStructureService journalStructureService) {
380 this.journalStructureService = journalStructureService;
381 }
382
383
388 public JournalStructurePersistence getJournalStructurePersistence() {
389 return journalStructurePersistence;
390 }
391
392
397 public void setJournalStructurePersistence(
398 JournalStructurePersistence journalStructurePersistence) {
399 this.journalStructurePersistence = journalStructurePersistence;
400 }
401
402
407 public JournalStructureFinder getJournalStructureFinder() {
408 return journalStructureFinder;
409 }
410
411
416 public void setJournalStructureFinder(
417 JournalStructureFinder journalStructureFinder) {
418 this.journalStructureFinder = journalStructureFinder;
419 }
420
421
426 public JournalTemplateLocalService getJournalTemplateLocalService() {
427 return journalTemplateLocalService;
428 }
429
430
435 public void setJournalTemplateLocalService(
436 JournalTemplateLocalService journalTemplateLocalService) {
437 this.journalTemplateLocalService = journalTemplateLocalService;
438 }
439
440
445 public JournalTemplateService getJournalTemplateService() {
446 return journalTemplateService;
447 }
448
449
454 public void setJournalTemplateService(
455 JournalTemplateService journalTemplateService) {
456 this.journalTemplateService = journalTemplateService;
457 }
458
459
464 public JournalTemplatePersistence getJournalTemplatePersistence() {
465 return journalTemplatePersistence;
466 }
467
468
473 public void setJournalTemplatePersistence(
474 JournalTemplatePersistence journalTemplatePersistence) {
475 this.journalTemplatePersistence = journalTemplatePersistence;
476 }
477
478
483 public JournalTemplateFinder getJournalTemplateFinder() {
484 return journalTemplateFinder;
485 }
486
487
492 public void setJournalTemplateFinder(
493 JournalTemplateFinder journalTemplateFinder) {
494 this.journalTemplateFinder = journalTemplateFinder;
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 ResourceLocalService getResourceLocalService() {
521 return resourceLocalService;
522 }
523
524
529 public void setResourceLocalService(
530 ResourceLocalService resourceLocalService) {
531 this.resourceLocalService = resourceLocalService;
532 }
533
534
539 public ResourceService getResourceService() {
540 return resourceService;
541 }
542
543
548 public void setResourceService(ResourceService resourceService) {
549 this.resourceService = resourceService;
550 }
551
552
557 public ResourcePersistence getResourcePersistence() {
558 return resourcePersistence;
559 }
560
561
566 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
567 this.resourcePersistence = resourcePersistence;
568 }
569
570
575 public ResourceFinder getResourceFinder() {
576 return resourceFinder;
577 }
578
579
584 public void setResourceFinder(ResourceFinder resourceFinder) {
585 this.resourceFinder = resourceFinder;
586 }
587
588
593 public UserLocalService getUserLocalService() {
594 return userLocalService;
595 }
596
597
602 public void setUserLocalService(UserLocalService userLocalService) {
603 this.userLocalService = userLocalService;
604 }
605
606
611 public UserService getUserService() {
612 return userService;
613 }
614
615
620 public void setUserService(UserService userService) {
621 this.userService = userService;
622 }
623
624
629 public UserPersistence getUserPersistence() {
630 return userPersistence;
631 }
632
633
638 public void setUserPersistence(UserPersistence userPersistence) {
639 this.userPersistence = userPersistence;
640 }
641
642
647 public UserFinder getUserFinder() {
648 return userFinder;
649 }
650
651
656 public void setUserFinder(UserFinder userFinder) {
657 this.userFinder = userFinder;
658 }
659
660
665 public WebDAVPropsLocalService getWebDAVPropsLocalService() {
666 return webDAVPropsLocalService;
667 }
668
669
674 public void setWebDAVPropsLocalService(
675 WebDAVPropsLocalService webDAVPropsLocalService) {
676 this.webDAVPropsLocalService = webDAVPropsLocalService;
677 }
678
679
684 public WebDAVPropsPersistence getWebDAVPropsPersistence() {
685 return webDAVPropsPersistence;
686 }
687
688
693 public void setWebDAVPropsPersistence(
694 WebDAVPropsPersistence webDAVPropsPersistence) {
695 this.webDAVPropsPersistence = webDAVPropsPersistence;
696 }
697
698
703 public ExpandoValueLocalService getExpandoValueLocalService() {
704 return expandoValueLocalService;
705 }
706
707
712 public void setExpandoValueLocalService(
713 ExpandoValueLocalService expandoValueLocalService) {
714 this.expandoValueLocalService = expandoValueLocalService;
715 }
716
717
722 public ExpandoValueService getExpandoValueService() {
723 return expandoValueService;
724 }
725
726
731 public void setExpandoValueService(ExpandoValueService expandoValueService) {
732 this.expandoValueService = expandoValueService;
733 }
734
735
740 public ExpandoValuePersistence getExpandoValuePersistence() {
741 return expandoValuePersistence;
742 }
743
744
749 public void setExpandoValuePersistence(
750 ExpandoValuePersistence expandoValuePersistence) {
751 this.expandoValuePersistence = expandoValuePersistence;
752 }
753
754
759 protected void runSQL(String sql) throws SystemException {
760 try {
761 DataSource dataSource = journalStructurePersistence.getDataSource();
762
763 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
764 sql, new int[0]);
765
766 sqlUpdate.update();
767 }
768 catch (Exception e) {
769 throw new SystemException(e);
770 }
771 }
772
773 @BeanReference(type = JournalArticleLocalService.class)
774 protected JournalArticleLocalService journalArticleLocalService;
775 @BeanReference(type = JournalArticleService.class)
776 protected JournalArticleService journalArticleService;
777 @BeanReference(type = JournalArticlePersistence.class)
778 protected JournalArticlePersistence journalArticlePersistence;
779 @BeanReference(type = JournalArticleFinder.class)
780 protected JournalArticleFinder journalArticleFinder;
781 @BeanReference(type = JournalArticleImageLocalService.class)
782 protected JournalArticleImageLocalService journalArticleImageLocalService;
783 @BeanReference(type = JournalArticleImagePersistence.class)
784 protected JournalArticleImagePersistence journalArticleImagePersistence;
785 @BeanReference(type = JournalArticleResourceLocalService.class)
786 protected JournalArticleResourceLocalService journalArticleResourceLocalService;
787 @BeanReference(type = JournalArticleResourcePersistence.class)
788 protected JournalArticleResourcePersistence journalArticleResourcePersistence;
789 @BeanReference(type = JournalContentSearchLocalService.class)
790 protected JournalContentSearchLocalService journalContentSearchLocalService;
791 @BeanReference(type = JournalContentSearchPersistence.class)
792 protected JournalContentSearchPersistence journalContentSearchPersistence;
793 @BeanReference(type = JournalFeedLocalService.class)
794 protected JournalFeedLocalService journalFeedLocalService;
795 @BeanReference(type = JournalFeedService.class)
796 protected JournalFeedService journalFeedService;
797 @BeanReference(type = JournalFeedPersistence.class)
798 protected JournalFeedPersistence journalFeedPersistence;
799 @BeanReference(type = JournalFeedFinder.class)
800 protected JournalFeedFinder journalFeedFinder;
801 @BeanReference(type = JournalStructureLocalService.class)
802 protected JournalStructureLocalService journalStructureLocalService;
803 @BeanReference(type = JournalStructureService.class)
804 protected JournalStructureService journalStructureService;
805 @BeanReference(type = JournalStructurePersistence.class)
806 protected JournalStructurePersistence journalStructurePersistence;
807 @BeanReference(type = JournalStructureFinder.class)
808 protected JournalStructureFinder journalStructureFinder;
809 @BeanReference(type = JournalTemplateLocalService.class)
810 protected JournalTemplateLocalService journalTemplateLocalService;
811 @BeanReference(type = JournalTemplateService.class)
812 protected JournalTemplateService journalTemplateService;
813 @BeanReference(type = JournalTemplatePersistence.class)
814 protected JournalTemplatePersistence journalTemplatePersistence;
815 @BeanReference(type = JournalTemplateFinder.class)
816 protected JournalTemplateFinder journalTemplateFinder;
817 @BeanReference(type = CounterLocalService.class)
818 protected CounterLocalService counterLocalService;
819 @BeanReference(type = ResourceLocalService.class)
820 protected ResourceLocalService resourceLocalService;
821 @BeanReference(type = ResourceService.class)
822 protected ResourceService resourceService;
823 @BeanReference(type = ResourcePersistence.class)
824 protected ResourcePersistence resourcePersistence;
825 @BeanReference(type = ResourceFinder.class)
826 protected ResourceFinder resourceFinder;
827 @BeanReference(type = UserLocalService.class)
828 protected UserLocalService userLocalService;
829 @BeanReference(type = UserService.class)
830 protected UserService userService;
831 @BeanReference(type = UserPersistence.class)
832 protected UserPersistence userPersistence;
833 @BeanReference(type = UserFinder.class)
834 protected UserFinder userFinder;
835 @BeanReference(type = WebDAVPropsLocalService.class)
836 protected WebDAVPropsLocalService webDAVPropsLocalService;
837 @BeanReference(type = WebDAVPropsPersistence.class)
838 protected WebDAVPropsPersistence webDAVPropsPersistence;
839 @BeanReference(type = ExpandoValueLocalService.class)
840 protected ExpandoValueLocalService expandoValueLocalService;
841 @BeanReference(type = ExpandoValueService.class)
842 protected ExpandoValueService expandoValueService;
843 @BeanReference(type = ExpandoValuePersistence.class)
844 protected ExpandoValuePersistence expandoValuePersistence;
845 }