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.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.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
034 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
035 import com.liferay.portlet.expando.service.ExpandoValueService;
036 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
037 import com.liferay.portlet.journal.model.JournalFeed;
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
075 public abstract class JournalFeedServiceBaseImpl extends BaseServiceImpl
076 implements JournalFeedService, IdentifiableBean {
077
082
083
088 public JournalArticleLocalService getJournalArticleLocalService() {
089 return journalArticleLocalService;
090 }
091
092
097 public void setJournalArticleLocalService(
098 JournalArticleLocalService journalArticleLocalService) {
099 this.journalArticleLocalService = journalArticleLocalService;
100 }
101
102
107 public JournalArticleService getJournalArticleService() {
108 return journalArticleService;
109 }
110
111
116 public void setJournalArticleService(
117 JournalArticleService journalArticleService) {
118 this.journalArticleService = journalArticleService;
119 }
120
121
126 public JournalArticlePersistence getJournalArticlePersistence() {
127 return journalArticlePersistence;
128 }
129
130
135 public void setJournalArticlePersistence(
136 JournalArticlePersistence journalArticlePersistence) {
137 this.journalArticlePersistence = journalArticlePersistence;
138 }
139
140
145 public JournalArticleFinder getJournalArticleFinder() {
146 return journalArticleFinder;
147 }
148
149
154 public void setJournalArticleFinder(
155 JournalArticleFinder journalArticleFinder) {
156 this.journalArticleFinder = journalArticleFinder;
157 }
158
159
164 public JournalArticleImageLocalService getJournalArticleImageLocalService() {
165 return journalArticleImageLocalService;
166 }
167
168
173 public void setJournalArticleImageLocalService(
174 JournalArticleImageLocalService journalArticleImageLocalService) {
175 this.journalArticleImageLocalService = journalArticleImageLocalService;
176 }
177
178
183 public JournalArticleImagePersistence getJournalArticleImagePersistence() {
184 return journalArticleImagePersistence;
185 }
186
187
192 public void setJournalArticleImagePersistence(
193 JournalArticleImagePersistence journalArticleImagePersistence) {
194 this.journalArticleImagePersistence = journalArticleImagePersistence;
195 }
196
197
202 public JournalArticleResourceLocalService getJournalArticleResourceLocalService() {
203 return journalArticleResourceLocalService;
204 }
205
206
211 public void setJournalArticleResourceLocalService(
212 JournalArticleResourceLocalService journalArticleResourceLocalService) {
213 this.journalArticleResourceLocalService = journalArticleResourceLocalService;
214 }
215
216
221 public JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
222 return journalArticleResourcePersistence;
223 }
224
225
230 public void setJournalArticleResourcePersistence(
231 JournalArticleResourcePersistence journalArticleResourcePersistence) {
232 this.journalArticleResourcePersistence = journalArticleResourcePersistence;
233 }
234
235
240 public JournalContentSearchLocalService getJournalContentSearchLocalService() {
241 return journalContentSearchLocalService;
242 }
243
244
249 public void setJournalContentSearchLocalService(
250 JournalContentSearchLocalService journalContentSearchLocalService) {
251 this.journalContentSearchLocalService = journalContentSearchLocalService;
252 }
253
254
259 public JournalContentSearchPersistence getJournalContentSearchPersistence() {
260 return journalContentSearchPersistence;
261 }
262
263
268 public void setJournalContentSearchPersistence(
269 JournalContentSearchPersistence journalContentSearchPersistence) {
270 this.journalContentSearchPersistence = journalContentSearchPersistence;
271 }
272
273
278 public JournalFeedLocalService getJournalFeedLocalService() {
279 return journalFeedLocalService;
280 }
281
282
287 public void setJournalFeedLocalService(
288 JournalFeedLocalService journalFeedLocalService) {
289 this.journalFeedLocalService = journalFeedLocalService;
290 }
291
292
297 public JournalFeedService getJournalFeedService() {
298 return journalFeedService;
299 }
300
301
306 public void setJournalFeedService(JournalFeedService journalFeedService) {
307 this.journalFeedService = journalFeedService;
308 }
309
310
315 public JournalFeedPersistence getJournalFeedPersistence() {
316 return journalFeedPersistence;
317 }
318
319
324 public void setJournalFeedPersistence(
325 JournalFeedPersistence journalFeedPersistence) {
326 this.journalFeedPersistence = journalFeedPersistence;
327 }
328
329
334 public JournalFeedFinder getJournalFeedFinder() {
335 return journalFeedFinder;
336 }
337
338
343 public void setJournalFeedFinder(JournalFeedFinder journalFeedFinder) {
344 this.journalFeedFinder = journalFeedFinder;
345 }
346
347
352 public JournalStructureLocalService getJournalStructureLocalService() {
353 return journalStructureLocalService;
354 }
355
356
361 public void setJournalStructureLocalService(
362 JournalStructureLocalService journalStructureLocalService) {
363 this.journalStructureLocalService = journalStructureLocalService;
364 }
365
366
371 public JournalStructureService getJournalStructureService() {
372 return journalStructureService;
373 }
374
375
380 public void setJournalStructureService(
381 JournalStructureService journalStructureService) {
382 this.journalStructureService = journalStructureService;
383 }
384
385
390 public JournalStructurePersistence getJournalStructurePersistence() {
391 return journalStructurePersistence;
392 }
393
394
399 public void setJournalStructurePersistence(
400 JournalStructurePersistence journalStructurePersistence) {
401 this.journalStructurePersistence = journalStructurePersistence;
402 }
403
404
409 public JournalStructureFinder getJournalStructureFinder() {
410 return journalStructureFinder;
411 }
412
413
418 public void setJournalStructureFinder(
419 JournalStructureFinder journalStructureFinder) {
420 this.journalStructureFinder = journalStructureFinder;
421 }
422
423
428 public JournalTemplateLocalService getJournalTemplateLocalService() {
429 return journalTemplateLocalService;
430 }
431
432
437 public void setJournalTemplateLocalService(
438 JournalTemplateLocalService journalTemplateLocalService) {
439 this.journalTemplateLocalService = journalTemplateLocalService;
440 }
441
442
447 public JournalTemplateService getJournalTemplateService() {
448 return journalTemplateService;
449 }
450
451
456 public void setJournalTemplateService(
457 JournalTemplateService journalTemplateService) {
458 this.journalTemplateService = journalTemplateService;
459 }
460
461
466 public JournalTemplatePersistence getJournalTemplatePersistence() {
467 return journalTemplatePersistence;
468 }
469
470
475 public void setJournalTemplatePersistence(
476 JournalTemplatePersistence journalTemplatePersistence) {
477 this.journalTemplatePersistence = journalTemplatePersistence;
478 }
479
480
485 public JournalTemplateFinder getJournalTemplateFinder() {
486 return journalTemplateFinder;
487 }
488
489
494 public void setJournalTemplateFinder(
495 JournalTemplateFinder journalTemplateFinder) {
496 this.journalTemplateFinder = journalTemplateFinder;
497 }
498
499
504 public CounterLocalService getCounterLocalService() {
505 return counterLocalService;
506 }
507
508
513 public void setCounterLocalService(CounterLocalService counterLocalService) {
514 this.counterLocalService = counterLocalService;
515 }
516
517
522 public ResourceLocalService getResourceLocalService() {
523 return resourceLocalService;
524 }
525
526
531 public void setResourceLocalService(
532 ResourceLocalService resourceLocalService) {
533 this.resourceLocalService = resourceLocalService;
534 }
535
536
541 public ResourceService getResourceService() {
542 return resourceService;
543 }
544
545
550 public void setResourceService(ResourceService resourceService) {
551 this.resourceService = resourceService;
552 }
553
554
559 public ResourcePersistence getResourcePersistence() {
560 return resourcePersistence;
561 }
562
563
568 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
569 this.resourcePersistence = resourcePersistence;
570 }
571
572
577 public ResourceFinder getResourceFinder() {
578 return resourceFinder;
579 }
580
581
586 public void setResourceFinder(ResourceFinder resourceFinder) {
587 this.resourceFinder = resourceFinder;
588 }
589
590
595 public UserLocalService getUserLocalService() {
596 return userLocalService;
597 }
598
599
604 public void setUserLocalService(UserLocalService userLocalService) {
605 this.userLocalService = userLocalService;
606 }
607
608
613 public UserService getUserService() {
614 return userService;
615 }
616
617
622 public void setUserService(UserService userService) {
623 this.userService = userService;
624 }
625
626
631 public UserPersistence getUserPersistence() {
632 return userPersistence;
633 }
634
635
640 public void setUserPersistence(UserPersistence userPersistence) {
641 this.userPersistence = userPersistence;
642 }
643
644
649 public UserFinder getUserFinder() {
650 return userFinder;
651 }
652
653
658 public void setUserFinder(UserFinder userFinder) {
659 this.userFinder = userFinder;
660 }
661
662
667 public ExpandoValueLocalService getExpandoValueLocalService() {
668 return expandoValueLocalService;
669 }
670
671
676 public void setExpandoValueLocalService(
677 ExpandoValueLocalService expandoValueLocalService) {
678 this.expandoValueLocalService = expandoValueLocalService;
679 }
680
681
686 public ExpandoValueService getExpandoValueService() {
687 return expandoValueService;
688 }
689
690
695 public void setExpandoValueService(ExpandoValueService expandoValueService) {
696 this.expandoValueService = expandoValueService;
697 }
698
699
704 public ExpandoValuePersistence getExpandoValuePersistence() {
705 return expandoValuePersistence;
706 }
707
708
713 public void setExpandoValuePersistence(
714 ExpandoValuePersistence expandoValuePersistence) {
715 this.expandoValuePersistence = expandoValuePersistence;
716 }
717
718 public void afterPropertiesSet() {
719 }
720
721 public void destroy() {
722 }
723
724
729 public String getBeanIdentifier() {
730 return _beanIdentifier;
731 }
732
733
738 public void setBeanIdentifier(String beanIdentifier) {
739 _beanIdentifier = beanIdentifier;
740 }
741
742 protected Class<?> getModelClass() {
743 return JournalFeed.class;
744 }
745
746 protected String getModelClassName() {
747 return JournalFeed.class.getName();
748 }
749
750
755 protected void runSQL(String sql) throws SystemException {
756 try {
757 DataSource dataSource = journalFeedPersistence.getDataSource();
758
759 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
760 sql, new int[0]);
761
762 sqlUpdate.update();
763 }
764 catch (Exception e) {
765 throw new SystemException(e);
766 }
767 }
768
769 @BeanReference(type = JournalArticleLocalService.class)
770 protected JournalArticleLocalService journalArticleLocalService;
771 @BeanReference(type = JournalArticleService.class)
772 protected JournalArticleService journalArticleService;
773 @BeanReference(type = JournalArticlePersistence.class)
774 protected JournalArticlePersistence journalArticlePersistence;
775 @BeanReference(type = JournalArticleFinder.class)
776 protected JournalArticleFinder journalArticleFinder;
777 @BeanReference(type = JournalArticleImageLocalService.class)
778 protected JournalArticleImageLocalService journalArticleImageLocalService;
779 @BeanReference(type = JournalArticleImagePersistence.class)
780 protected JournalArticleImagePersistence journalArticleImagePersistence;
781 @BeanReference(type = JournalArticleResourceLocalService.class)
782 protected JournalArticleResourceLocalService journalArticleResourceLocalService;
783 @BeanReference(type = JournalArticleResourcePersistence.class)
784 protected JournalArticleResourcePersistence journalArticleResourcePersistence;
785 @BeanReference(type = JournalContentSearchLocalService.class)
786 protected JournalContentSearchLocalService journalContentSearchLocalService;
787 @BeanReference(type = JournalContentSearchPersistence.class)
788 protected JournalContentSearchPersistence journalContentSearchPersistence;
789 @BeanReference(type = JournalFeedLocalService.class)
790 protected JournalFeedLocalService journalFeedLocalService;
791 @BeanReference(type = JournalFeedService.class)
792 protected JournalFeedService journalFeedService;
793 @BeanReference(type = JournalFeedPersistence.class)
794 protected JournalFeedPersistence journalFeedPersistence;
795 @BeanReference(type = JournalFeedFinder.class)
796 protected JournalFeedFinder journalFeedFinder;
797 @BeanReference(type = JournalStructureLocalService.class)
798 protected JournalStructureLocalService journalStructureLocalService;
799 @BeanReference(type = JournalStructureService.class)
800 protected JournalStructureService journalStructureService;
801 @BeanReference(type = JournalStructurePersistence.class)
802 protected JournalStructurePersistence journalStructurePersistence;
803 @BeanReference(type = JournalStructureFinder.class)
804 protected JournalStructureFinder journalStructureFinder;
805 @BeanReference(type = JournalTemplateLocalService.class)
806 protected JournalTemplateLocalService journalTemplateLocalService;
807 @BeanReference(type = JournalTemplateService.class)
808 protected JournalTemplateService journalTemplateService;
809 @BeanReference(type = JournalTemplatePersistence.class)
810 protected JournalTemplatePersistence journalTemplatePersistence;
811 @BeanReference(type = JournalTemplateFinder.class)
812 protected JournalTemplateFinder journalTemplateFinder;
813 @BeanReference(type = CounterLocalService.class)
814 protected CounterLocalService counterLocalService;
815 @BeanReference(type = ResourceLocalService.class)
816 protected ResourceLocalService resourceLocalService;
817 @BeanReference(type = ResourceService.class)
818 protected ResourceService resourceService;
819 @BeanReference(type = ResourcePersistence.class)
820 protected ResourcePersistence resourcePersistence;
821 @BeanReference(type = ResourceFinder.class)
822 protected ResourceFinder resourceFinder;
823 @BeanReference(type = UserLocalService.class)
824 protected UserLocalService userLocalService;
825 @BeanReference(type = UserService.class)
826 protected UserService userService;
827 @BeanReference(type = UserPersistence.class)
828 protected UserPersistence userPersistence;
829 @BeanReference(type = UserFinder.class)
830 protected UserFinder userFinder;
831 @BeanReference(type = ExpandoValueLocalService.class)
832 protected ExpandoValueLocalService expandoValueLocalService;
833 @BeanReference(type = ExpandoValueService.class)
834 protected ExpandoValueService expandoValueService;
835 @BeanReference(type = ExpandoValuePersistence.class)
836 protected ExpandoValuePersistence expandoValuePersistence;
837 private String _beanIdentifier;
838 }