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.base.PrincipalBean;
028 import com.liferay.portal.service.persistence.ResourceFinder;
029 import com.liferay.portal.service.persistence.ResourcePersistence;
030 import com.liferay.portal.service.persistence.UserFinder;
031 import com.liferay.portal.service.persistence.UserPersistence;
032
033 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
034 import com.liferay.portlet.expando.service.ExpandoValueService;
035 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
036 import com.liferay.portlet.journal.service.JournalArticleImageLocalService;
037 import com.liferay.portlet.journal.service.JournalArticleLocalService;
038 import com.liferay.portlet.journal.service.JournalArticleResourceLocalService;
039 import com.liferay.portlet.journal.service.JournalArticleService;
040 import com.liferay.portlet.journal.service.JournalContentSearchLocalService;
041 import com.liferay.portlet.journal.service.JournalFeedLocalService;
042 import com.liferay.portlet.journal.service.JournalFeedService;
043 import com.liferay.portlet.journal.service.JournalStructureLocalService;
044 import com.liferay.portlet.journal.service.JournalStructureService;
045 import com.liferay.portlet.journal.service.JournalTemplateLocalService;
046 import com.liferay.portlet.journal.service.JournalTemplateService;
047 import com.liferay.portlet.journal.service.persistence.JournalArticleFinder;
048 import com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence;
049 import com.liferay.portlet.journal.service.persistence.JournalArticlePersistence;
050 import com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence;
051 import com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence;
052 import com.liferay.portlet.journal.service.persistence.JournalFeedFinder;
053 import com.liferay.portlet.journal.service.persistence.JournalFeedPersistence;
054 import com.liferay.portlet.journal.service.persistence.JournalStructureFinder;
055 import com.liferay.portlet.journal.service.persistence.JournalStructurePersistence;
056 import com.liferay.portlet.journal.service.persistence.JournalTemplateFinder;
057 import com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence;
058
059 import javax.sql.DataSource;
060
061
077 public abstract class JournalFeedServiceBaseImpl extends PrincipalBean
078 implements JournalFeedService {
079
084 public JournalArticleLocalService getJournalArticleLocalService() {
085 return journalArticleLocalService;
086 }
087
088
093 public void setJournalArticleLocalService(
094 JournalArticleLocalService journalArticleLocalService) {
095 this.journalArticleLocalService = journalArticleLocalService;
096 }
097
098
103 public JournalArticleService getJournalArticleService() {
104 return journalArticleService;
105 }
106
107
112 public void setJournalArticleService(
113 JournalArticleService journalArticleService) {
114 this.journalArticleService = journalArticleService;
115 }
116
117
122 public JournalArticlePersistence getJournalArticlePersistence() {
123 return journalArticlePersistence;
124 }
125
126
131 public void setJournalArticlePersistence(
132 JournalArticlePersistence journalArticlePersistence) {
133 this.journalArticlePersistence = journalArticlePersistence;
134 }
135
136
141 public JournalArticleFinder getJournalArticleFinder() {
142 return journalArticleFinder;
143 }
144
145
150 public void setJournalArticleFinder(
151 JournalArticleFinder journalArticleFinder) {
152 this.journalArticleFinder = journalArticleFinder;
153 }
154
155
160 public JournalArticleImageLocalService getJournalArticleImageLocalService() {
161 return journalArticleImageLocalService;
162 }
163
164
169 public void setJournalArticleImageLocalService(
170 JournalArticleImageLocalService journalArticleImageLocalService) {
171 this.journalArticleImageLocalService = journalArticleImageLocalService;
172 }
173
174
179 public JournalArticleImagePersistence getJournalArticleImagePersistence() {
180 return journalArticleImagePersistence;
181 }
182
183
188 public void setJournalArticleImagePersistence(
189 JournalArticleImagePersistence journalArticleImagePersistence) {
190 this.journalArticleImagePersistence = journalArticleImagePersistence;
191 }
192
193
198 public JournalArticleResourceLocalService getJournalArticleResourceLocalService() {
199 return journalArticleResourceLocalService;
200 }
201
202
207 public void setJournalArticleResourceLocalService(
208 JournalArticleResourceLocalService journalArticleResourceLocalService) {
209 this.journalArticleResourceLocalService = journalArticleResourceLocalService;
210 }
211
212
217 public JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
218 return journalArticleResourcePersistence;
219 }
220
221
226 public void setJournalArticleResourcePersistence(
227 JournalArticleResourcePersistence journalArticleResourcePersistence) {
228 this.journalArticleResourcePersistence = journalArticleResourcePersistence;
229 }
230
231
236 public JournalContentSearchLocalService getJournalContentSearchLocalService() {
237 return journalContentSearchLocalService;
238 }
239
240
245 public void setJournalContentSearchLocalService(
246 JournalContentSearchLocalService journalContentSearchLocalService) {
247 this.journalContentSearchLocalService = journalContentSearchLocalService;
248 }
249
250
255 public JournalContentSearchPersistence getJournalContentSearchPersistence() {
256 return journalContentSearchPersistence;
257 }
258
259
264 public void setJournalContentSearchPersistence(
265 JournalContentSearchPersistence journalContentSearchPersistence) {
266 this.journalContentSearchPersistence = journalContentSearchPersistence;
267 }
268
269
274 public JournalFeedLocalService getJournalFeedLocalService() {
275 return journalFeedLocalService;
276 }
277
278
283 public void setJournalFeedLocalService(
284 JournalFeedLocalService journalFeedLocalService) {
285 this.journalFeedLocalService = journalFeedLocalService;
286 }
287
288
293 public JournalFeedService getJournalFeedService() {
294 return journalFeedService;
295 }
296
297
302 public void setJournalFeedService(JournalFeedService journalFeedService) {
303 this.journalFeedService = journalFeedService;
304 }
305
306
311 public JournalFeedPersistence getJournalFeedPersistence() {
312 return journalFeedPersistence;
313 }
314
315
320 public void setJournalFeedPersistence(
321 JournalFeedPersistence journalFeedPersistence) {
322 this.journalFeedPersistence = journalFeedPersistence;
323 }
324
325
330 public JournalFeedFinder getJournalFeedFinder() {
331 return journalFeedFinder;
332 }
333
334
339 public void setJournalFeedFinder(JournalFeedFinder journalFeedFinder) {
340 this.journalFeedFinder = journalFeedFinder;
341 }
342
343
348 public JournalStructureLocalService getJournalStructureLocalService() {
349 return journalStructureLocalService;
350 }
351
352
357 public void setJournalStructureLocalService(
358 JournalStructureLocalService journalStructureLocalService) {
359 this.journalStructureLocalService = journalStructureLocalService;
360 }
361
362
367 public JournalStructureService getJournalStructureService() {
368 return journalStructureService;
369 }
370
371
376 public void setJournalStructureService(
377 JournalStructureService journalStructureService) {
378 this.journalStructureService = journalStructureService;
379 }
380
381
386 public JournalStructurePersistence getJournalStructurePersistence() {
387 return journalStructurePersistence;
388 }
389
390
395 public void setJournalStructurePersistence(
396 JournalStructurePersistence journalStructurePersistence) {
397 this.journalStructurePersistence = journalStructurePersistence;
398 }
399
400
405 public JournalStructureFinder getJournalStructureFinder() {
406 return journalStructureFinder;
407 }
408
409
414 public void setJournalStructureFinder(
415 JournalStructureFinder journalStructureFinder) {
416 this.journalStructureFinder = journalStructureFinder;
417 }
418
419
424 public JournalTemplateLocalService getJournalTemplateLocalService() {
425 return journalTemplateLocalService;
426 }
427
428
433 public void setJournalTemplateLocalService(
434 JournalTemplateLocalService journalTemplateLocalService) {
435 this.journalTemplateLocalService = journalTemplateLocalService;
436 }
437
438
443 public JournalTemplateService getJournalTemplateService() {
444 return journalTemplateService;
445 }
446
447
452 public void setJournalTemplateService(
453 JournalTemplateService journalTemplateService) {
454 this.journalTemplateService = journalTemplateService;
455 }
456
457
462 public JournalTemplatePersistence getJournalTemplatePersistence() {
463 return journalTemplatePersistence;
464 }
465
466
471 public void setJournalTemplatePersistence(
472 JournalTemplatePersistence journalTemplatePersistence) {
473 this.journalTemplatePersistence = journalTemplatePersistence;
474 }
475
476
481 public JournalTemplateFinder getJournalTemplateFinder() {
482 return journalTemplateFinder;
483 }
484
485
490 public void setJournalTemplateFinder(
491 JournalTemplateFinder journalTemplateFinder) {
492 this.journalTemplateFinder = journalTemplateFinder;
493 }
494
495
500 public CounterLocalService getCounterLocalService() {
501 return counterLocalService;
502 }
503
504
509 public void setCounterLocalService(CounterLocalService counterLocalService) {
510 this.counterLocalService = counterLocalService;
511 }
512
513
518 public ResourceLocalService getResourceLocalService() {
519 return resourceLocalService;
520 }
521
522
527 public void setResourceLocalService(
528 ResourceLocalService resourceLocalService) {
529 this.resourceLocalService = resourceLocalService;
530 }
531
532
537 public ResourceService getResourceService() {
538 return resourceService;
539 }
540
541
546 public void setResourceService(ResourceService resourceService) {
547 this.resourceService = resourceService;
548 }
549
550
555 public ResourcePersistence getResourcePersistence() {
556 return resourcePersistence;
557 }
558
559
564 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
565 this.resourcePersistence = resourcePersistence;
566 }
567
568
573 public ResourceFinder getResourceFinder() {
574 return resourceFinder;
575 }
576
577
582 public void setResourceFinder(ResourceFinder resourceFinder) {
583 this.resourceFinder = resourceFinder;
584 }
585
586
591 public UserLocalService getUserLocalService() {
592 return userLocalService;
593 }
594
595
600 public void setUserLocalService(UserLocalService userLocalService) {
601 this.userLocalService = userLocalService;
602 }
603
604
609 public UserService getUserService() {
610 return userService;
611 }
612
613
618 public void setUserService(UserService userService) {
619 this.userService = userService;
620 }
621
622
627 public UserPersistence getUserPersistence() {
628 return userPersistence;
629 }
630
631
636 public void setUserPersistence(UserPersistence userPersistence) {
637 this.userPersistence = userPersistence;
638 }
639
640
645 public UserFinder getUserFinder() {
646 return userFinder;
647 }
648
649
654 public void setUserFinder(UserFinder userFinder) {
655 this.userFinder = userFinder;
656 }
657
658
663 public ExpandoValueLocalService getExpandoValueLocalService() {
664 return expandoValueLocalService;
665 }
666
667
672 public void setExpandoValueLocalService(
673 ExpandoValueLocalService expandoValueLocalService) {
674 this.expandoValueLocalService = expandoValueLocalService;
675 }
676
677
682 public ExpandoValueService getExpandoValueService() {
683 return expandoValueService;
684 }
685
686
691 public void setExpandoValueService(ExpandoValueService expandoValueService) {
692 this.expandoValueService = expandoValueService;
693 }
694
695
700 public ExpandoValuePersistence getExpandoValuePersistence() {
701 return expandoValuePersistence;
702 }
703
704
709 public void setExpandoValuePersistence(
710 ExpandoValuePersistence expandoValuePersistence) {
711 this.expandoValuePersistence = expandoValuePersistence;
712 }
713
714
719 protected void runSQL(String sql) throws SystemException {
720 try {
721 DataSource dataSource = journalFeedPersistence.getDataSource();
722
723 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
724 sql, new int[0]);
725
726 sqlUpdate.update();
727 }
728 catch (Exception e) {
729 throw new SystemException(e);
730 }
731 }
732
733 @BeanReference(type = JournalArticleLocalService.class)
734 protected JournalArticleLocalService journalArticleLocalService;
735 @BeanReference(type = JournalArticleService.class)
736 protected JournalArticleService journalArticleService;
737 @BeanReference(type = JournalArticlePersistence.class)
738 protected JournalArticlePersistence journalArticlePersistence;
739 @BeanReference(type = JournalArticleFinder.class)
740 protected JournalArticleFinder journalArticleFinder;
741 @BeanReference(type = JournalArticleImageLocalService.class)
742 protected JournalArticleImageLocalService journalArticleImageLocalService;
743 @BeanReference(type = JournalArticleImagePersistence.class)
744 protected JournalArticleImagePersistence journalArticleImagePersistence;
745 @BeanReference(type = JournalArticleResourceLocalService.class)
746 protected JournalArticleResourceLocalService journalArticleResourceLocalService;
747 @BeanReference(type = JournalArticleResourcePersistence.class)
748 protected JournalArticleResourcePersistence journalArticleResourcePersistence;
749 @BeanReference(type = JournalContentSearchLocalService.class)
750 protected JournalContentSearchLocalService journalContentSearchLocalService;
751 @BeanReference(type = JournalContentSearchPersistence.class)
752 protected JournalContentSearchPersistence journalContentSearchPersistence;
753 @BeanReference(type = JournalFeedLocalService.class)
754 protected JournalFeedLocalService journalFeedLocalService;
755 @BeanReference(type = JournalFeedService.class)
756 protected JournalFeedService journalFeedService;
757 @BeanReference(type = JournalFeedPersistence.class)
758 protected JournalFeedPersistence journalFeedPersistence;
759 @BeanReference(type = JournalFeedFinder.class)
760 protected JournalFeedFinder journalFeedFinder;
761 @BeanReference(type = JournalStructureLocalService.class)
762 protected JournalStructureLocalService journalStructureLocalService;
763 @BeanReference(type = JournalStructureService.class)
764 protected JournalStructureService journalStructureService;
765 @BeanReference(type = JournalStructurePersistence.class)
766 protected JournalStructurePersistence journalStructurePersistence;
767 @BeanReference(type = JournalStructureFinder.class)
768 protected JournalStructureFinder journalStructureFinder;
769 @BeanReference(type = JournalTemplateLocalService.class)
770 protected JournalTemplateLocalService journalTemplateLocalService;
771 @BeanReference(type = JournalTemplateService.class)
772 protected JournalTemplateService journalTemplateService;
773 @BeanReference(type = JournalTemplatePersistence.class)
774 protected JournalTemplatePersistence journalTemplatePersistence;
775 @BeanReference(type = JournalTemplateFinder.class)
776 protected JournalTemplateFinder journalTemplateFinder;
777 @BeanReference(type = CounterLocalService.class)
778 protected CounterLocalService counterLocalService;
779 @BeanReference(type = ResourceLocalService.class)
780 protected ResourceLocalService resourceLocalService;
781 @BeanReference(type = ResourceService.class)
782 protected ResourceService resourceService;
783 @BeanReference(type = ResourcePersistence.class)
784 protected ResourcePersistence resourcePersistence;
785 @BeanReference(type = ResourceFinder.class)
786 protected ResourceFinder resourceFinder;
787 @BeanReference(type = UserLocalService.class)
788 protected UserLocalService userLocalService;
789 @BeanReference(type = UserService.class)
790 protected UserService userService;
791 @BeanReference(type = UserPersistence.class)
792 protected UserPersistence userPersistence;
793 @BeanReference(type = UserFinder.class)
794 protected UserFinder userFinder;
795 @BeanReference(type = ExpandoValueLocalService.class)
796 protected ExpandoValueLocalService expandoValueLocalService;
797 @BeanReference(type = ExpandoValueService.class)
798 protected ExpandoValueService expandoValueService;
799 @BeanReference(type = ExpandoValuePersistence.class)
800 protected ExpandoValuePersistence expandoValuePersistence;
801 }