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.ImageLocalService;
028 import com.liferay.portal.service.ImageService;
029 import com.liferay.portal.service.ResourceLocalService;
030 import com.liferay.portal.service.ResourceService;
031 import com.liferay.portal.service.UserLocalService;
032 import com.liferay.portal.service.UserService;
033 import com.liferay.portal.service.WebDAVPropsLocalService;
034 import com.liferay.portal.service.persistence.GroupFinder;
035 import com.liferay.portal.service.persistence.GroupPersistence;
036 import com.liferay.portal.service.persistence.ImagePersistence;
037 import com.liferay.portal.service.persistence.ResourceFinder;
038 import com.liferay.portal.service.persistence.ResourcePersistence;
039 import com.liferay.portal.service.persistence.UserFinder;
040 import com.liferay.portal.service.persistence.UserPersistence;
041 import com.liferay.portal.service.persistence.WebDAVPropsPersistence;
042
043 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
044 import com.liferay.portlet.expando.service.ExpandoValueService;
045 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
046 import com.liferay.portlet.journal.model.JournalTemplate;
047 import com.liferay.portlet.journal.service.JournalArticleImageLocalService;
048 import com.liferay.portlet.journal.service.JournalArticleLocalService;
049 import com.liferay.portlet.journal.service.JournalArticleResourceLocalService;
050 import com.liferay.portlet.journal.service.JournalArticleService;
051 import com.liferay.portlet.journal.service.JournalContentSearchLocalService;
052 import com.liferay.portlet.journal.service.JournalFeedLocalService;
053 import com.liferay.portlet.journal.service.JournalFeedService;
054 import com.liferay.portlet.journal.service.JournalStructureLocalService;
055 import com.liferay.portlet.journal.service.JournalStructureService;
056 import com.liferay.portlet.journal.service.JournalTemplateLocalService;
057 import com.liferay.portlet.journal.service.JournalTemplateService;
058 import com.liferay.portlet.journal.service.persistence.JournalArticleFinder;
059 import com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence;
060 import com.liferay.portlet.journal.service.persistence.JournalArticlePersistence;
061 import com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence;
062 import com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence;
063 import com.liferay.portlet.journal.service.persistence.JournalFeedFinder;
064 import com.liferay.portlet.journal.service.persistence.JournalFeedPersistence;
065 import com.liferay.portlet.journal.service.persistence.JournalStructureFinder;
066 import com.liferay.portlet.journal.service.persistence.JournalStructurePersistence;
067 import com.liferay.portlet.journal.service.persistence.JournalTemplateFinder;
068 import com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence;
069
070 import javax.sql.DataSource;
071
072
084 public abstract class JournalTemplateServiceBaseImpl extends BaseServiceImpl
085 implements JournalTemplateService, IdentifiableBean {
086
091
092
097 public JournalArticleLocalService getJournalArticleLocalService() {
098 return journalArticleLocalService;
099 }
100
101
106 public void setJournalArticleLocalService(
107 JournalArticleLocalService journalArticleLocalService) {
108 this.journalArticleLocalService = journalArticleLocalService;
109 }
110
111
116 public JournalArticleService getJournalArticleService() {
117 return journalArticleService;
118 }
119
120
125 public void setJournalArticleService(
126 JournalArticleService journalArticleService) {
127 this.journalArticleService = journalArticleService;
128 }
129
130
135 public JournalArticlePersistence getJournalArticlePersistence() {
136 return journalArticlePersistence;
137 }
138
139
144 public void setJournalArticlePersistence(
145 JournalArticlePersistence journalArticlePersistence) {
146 this.journalArticlePersistence = journalArticlePersistence;
147 }
148
149
154 public JournalArticleFinder getJournalArticleFinder() {
155 return journalArticleFinder;
156 }
157
158
163 public void setJournalArticleFinder(
164 JournalArticleFinder journalArticleFinder) {
165 this.journalArticleFinder = journalArticleFinder;
166 }
167
168
173 public JournalArticleImageLocalService getJournalArticleImageLocalService() {
174 return journalArticleImageLocalService;
175 }
176
177
182 public void setJournalArticleImageLocalService(
183 JournalArticleImageLocalService journalArticleImageLocalService) {
184 this.journalArticleImageLocalService = journalArticleImageLocalService;
185 }
186
187
192 public JournalArticleImagePersistence getJournalArticleImagePersistence() {
193 return journalArticleImagePersistence;
194 }
195
196
201 public void setJournalArticleImagePersistence(
202 JournalArticleImagePersistence journalArticleImagePersistence) {
203 this.journalArticleImagePersistence = journalArticleImagePersistence;
204 }
205
206
211 public JournalArticleResourceLocalService getJournalArticleResourceLocalService() {
212 return journalArticleResourceLocalService;
213 }
214
215
220 public void setJournalArticleResourceLocalService(
221 JournalArticleResourceLocalService journalArticleResourceLocalService) {
222 this.journalArticleResourceLocalService = journalArticleResourceLocalService;
223 }
224
225
230 public JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
231 return journalArticleResourcePersistence;
232 }
233
234
239 public void setJournalArticleResourcePersistence(
240 JournalArticleResourcePersistence journalArticleResourcePersistence) {
241 this.journalArticleResourcePersistence = journalArticleResourcePersistence;
242 }
243
244
249 public JournalContentSearchLocalService getJournalContentSearchLocalService() {
250 return journalContentSearchLocalService;
251 }
252
253
258 public void setJournalContentSearchLocalService(
259 JournalContentSearchLocalService journalContentSearchLocalService) {
260 this.journalContentSearchLocalService = journalContentSearchLocalService;
261 }
262
263
268 public JournalContentSearchPersistence getJournalContentSearchPersistence() {
269 return journalContentSearchPersistence;
270 }
271
272
277 public void setJournalContentSearchPersistence(
278 JournalContentSearchPersistence journalContentSearchPersistence) {
279 this.journalContentSearchPersistence = journalContentSearchPersistence;
280 }
281
282
287 public JournalFeedLocalService getJournalFeedLocalService() {
288 return journalFeedLocalService;
289 }
290
291
296 public void setJournalFeedLocalService(
297 JournalFeedLocalService journalFeedLocalService) {
298 this.journalFeedLocalService = journalFeedLocalService;
299 }
300
301
306 public JournalFeedService getJournalFeedService() {
307 return journalFeedService;
308 }
309
310
315 public void setJournalFeedService(JournalFeedService journalFeedService) {
316 this.journalFeedService = journalFeedService;
317 }
318
319
324 public JournalFeedPersistence getJournalFeedPersistence() {
325 return journalFeedPersistence;
326 }
327
328
333 public void setJournalFeedPersistence(
334 JournalFeedPersistence journalFeedPersistence) {
335 this.journalFeedPersistence = journalFeedPersistence;
336 }
337
338
343 public JournalFeedFinder getJournalFeedFinder() {
344 return journalFeedFinder;
345 }
346
347
352 public void setJournalFeedFinder(JournalFeedFinder journalFeedFinder) {
353 this.journalFeedFinder = journalFeedFinder;
354 }
355
356
361 public JournalStructureLocalService getJournalStructureLocalService() {
362 return journalStructureLocalService;
363 }
364
365
370 public void setJournalStructureLocalService(
371 JournalStructureLocalService journalStructureLocalService) {
372 this.journalStructureLocalService = journalStructureLocalService;
373 }
374
375
380 public JournalStructureService getJournalStructureService() {
381 return journalStructureService;
382 }
383
384
389 public void setJournalStructureService(
390 JournalStructureService journalStructureService) {
391 this.journalStructureService = journalStructureService;
392 }
393
394
399 public JournalStructurePersistence getJournalStructurePersistence() {
400 return journalStructurePersistence;
401 }
402
403
408 public void setJournalStructurePersistence(
409 JournalStructurePersistence journalStructurePersistence) {
410 this.journalStructurePersistence = journalStructurePersistence;
411 }
412
413
418 public JournalStructureFinder getJournalStructureFinder() {
419 return journalStructureFinder;
420 }
421
422
427 public void setJournalStructureFinder(
428 JournalStructureFinder journalStructureFinder) {
429 this.journalStructureFinder = journalStructureFinder;
430 }
431
432
437 public JournalTemplateLocalService getJournalTemplateLocalService() {
438 return journalTemplateLocalService;
439 }
440
441
446 public void setJournalTemplateLocalService(
447 JournalTemplateLocalService journalTemplateLocalService) {
448 this.journalTemplateLocalService = journalTemplateLocalService;
449 }
450
451
456 public JournalTemplateService getJournalTemplateService() {
457 return journalTemplateService;
458 }
459
460
465 public void setJournalTemplateService(
466 JournalTemplateService journalTemplateService) {
467 this.journalTemplateService = journalTemplateService;
468 }
469
470
475 public JournalTemplatePersistence getJournalTemplatePersistence() {
476 return journalTemplatePersistence;
477 }
478
479
484 public void setJournalTemplatePersistence(
485 JournalTemplatePersistence journalTemplatePersistence) {
486 this.journalTemplatePersistence = journalTemplatePersistence;
487 }
488
489
494 public JournalTemplateFinder getJournalTemplateFinder() {
495 return journalTemplateFinder;
496 }
497
498
503 public void setJournalTemplateFinder(
504 JournalTemplateFinder journalTemplateFinder) {
505 this.journalTemplateFinder = journalTemplateFinder;
506 }
507
508
513 public CounterLocalService getCounterLocalService() {
514 return counterLocalService;
515 }
516
517
522 public void setCounterLocalService(CounterLocalService counterLocalService) {
523 this.counterLocalService = counterLocalService;
524 }
525
526
531 public GroupLocalService getGroupLocalService() {
532 return groupLocalService;
533 }
534
535
540 public void setGroupLocalService(GroupLocalService groupLocalService) {
541 this.groupLocalService = groupLocalService;
542 }
543
544
549 public GroupService getGroupService() {
550 return groupService;
551 }
552
553
558 public void setGroupService(GroupService groupService) {
559 this.groupService = groupService;
560 }
561
562
567 public GroupPersistence getGroupPersistence() {
568 return groupPersistence;
569 }
570
571
576 public void setGroupPersistence(GroupPersistence groupPersistence) {
577 this.groupPersistence = groupPersistence;
578 }
579
580
585 public GroupFinder getGroupFinder() {
586 return groupFinder;
587 }
588
589
594 public void setGroupFinder(GroupFinder groupFinder) {
595 this.groupFinder = groupFinder;
596 }
597
598
603 public ImageLocalService getImageLocalService() {
604 return imageLocalService;
605 }
606
607
612 public void setImageLocalService(ImageLocalService imageLocalService) {
613 this.imageLocalService = imageLocalService;
614 }
615
616
621 public ImageService getImageService() {
622 return imageService;
623 }
624
625
630 public void setImageService(ImageService imageService) {
631 this.imageService = imageService;
632 }
633
634
639 public ImagePersistence getImagePersistence() {
640 return imagePersistence;
641 }
642
643
648 public void setImagePersistence(ImagePersistence imagePersistence) {
649 this.imagePersistence = imagePersistence;
650 }
651
652
657 public ResourceLocalService getResourceLocalService() {
658 return resourceLocalService;
659 }
660
661
666 public void setResourceLocalService(
667 ResourceLocalService resourceLocalService) {
668 this.resourceLocalService = resourceLocalService;
669 }
670
671
676 public ResourceService getResourceService() {
677 return resourceService;
678 }
679
680
685 public void setResourceService(ResourceService resourceService) {
686 this.resourceService = resourceService;
687 }
688
689
694 public ResourcePersistence getResourcePersistence() {
695 return resourcePersistence;
696 }
697
698
703 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
704 this.resourcePersistence = resourcePersistence;
705 }
706
707
712 public ResourceFinder getResourceFinder() {
713 return resourceFinder;
714 }
715
716
721 public void setResourceFinder(ResourceFinder resourceFinder) {
722 this.resourceFinder = resourceFinder;
723 }
724
725
730 public UserLocalService getUserLocalService() {
731 return userLocalService;
732 }
733
734
739 public void setUserLocalService(UserLocalService userLocalService) {
740 this.userLocalService = userLocalService;
741 }
742
743
748 public UserService getUserService() {
749 return userService;
750 }
751
752
757 public void setUserService(UserService userService) {
758 this.userService = userService;
759 }
760
761
766 public UserPersistence getUserPersistence() {
767 return userPersistence;
768 }
769
770
775 public void setUserPersistence(UserPersistence userPersistence) {
776 this.userPersistence = userPersistence;
777 }
778
779
784 public UserFinder getUserFinder() {
785 return userFinder;
786 }
787
788
793 public void setUserFinder(UserFinder userFinder) {
794 this.userFinder = userFinder;
795 }
796
797
802 public WebDAVPropsLocalService getWebDAVPropsLocalService() {
803 return webDAVPropsLocalService;
804 }
805
806
811 public void setWebDAVPropsLocalService(
812 WebDAVPropsLocalService webDAVPropsLocalService) {
813 this.webDAVPropsLocalService = webDAVPropsLocalService;
814 }
815
816
821 public WebDAVPropsPersistence getWebDAVPropsPersistence() {
822 return webDAVPropsPersistence;
823 }
824
825
830 public void setWebDAVPropsPersistence(
831 WebDAVPropsPersistence webDAVPropsPersistence) {
832 this.webDAVPropsPersistence = webDAVPropsPersistence;
833 }
834
835
840 public ExpandoValueLocalService getExpandoValueLocalService() {
841 return expandoValueLocalService;
842 }
843
844
849 public void setExpandoValueLocalService(
850 ExpandoValueLocalService expandoValueLocalService) {
851 this.expandoValueLocalService = expandoValueLocalService;
852 }
853
854
859 public ExpandoValueService getExpandoValueService() {
860 return expandoValueService;
861 }
862
863
868 public void setExpandoValueService(ExpandoValueService expandoValueService) {
869 this.expandoValueService = expandoValueService;
870 }
871
872
877 public ExpandoValuePersistence getExpandoValuePersistence() {
878 return expandoValuePersistence;
879 }
880
881
886 public void setExpandoValuePersistence(
887 ExpandoValuePersistence expandoValuePersistence) {
888 this.expandoValuePersistence = expandoValuePersistence;
889 }
890
891 public void afterPropertiesSet() {
892 }
893
894 public void destroy() {
895 }
896
897
902 public String getBeanIdentifier() {
903 return _beanIdentifier;
904 }
905
906
911 public void setBeanIdentifier(String beanIdentifier) {
912 _beanIdentifier = beanIdentifier;
913 }
914
915 protected Class<?> getModelClass() {
916 return JournalTemplate.class;
917 }
918
919 protected String getModelClassName() {
920 return JournalTemplate.class.getName();
921 }
922
923
928 protected void runSQL(String sql) throws SystemException {
929 try {
930 DataSource dataSource = journalTemplatePersistence.getDataSource();
931
932 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
933 sql, new int[0]);
934
935 sqlUpdate.update();
936 }
937 catch (Exception e) {
938 throw new SystemException(e);
939 }
940 }
941
942 @BeanReference(type = JournalArticleLocalService.class)
943 protected JournalArticleLocalService journalArticleLocalService;
944 @BeanReference(type = JournalArticleService.class)
945 protected JournalArticleService journalArticleService;
946 @BeanReference(type = JournalArticlePersistence.class)
947 protected JournalArticlePersistence journalArticlePersistence;
948 @BeanReference(type = JournalArticleFinder.class)
949 protected JournalArticleFinder journalArticleFinder;
950 @BeanReference(type = JournalArticleImageLocalService.class)
951 protected JournalArticleImageLocalService journalArticleImageLocalService;
952 @BeanReference(type = JournalArticleImagePersistence.class)
953 protected JournalArticleImagePersistence journalArticleImagePersistence;
954 @BeanReference(type = JournalArticleResourceLocalService.class)
955 protected JournalArticleResourceLocalService journalArticleResourceLocalService;
956 @BeanReference(type = JournalArticleResourcePersistence.class)
957 protected JournalArticleResourcePersistence journalArticleResourcePersistence;
958 @BeanReference(type = JournalContentSearchLocalService.class)
959 protected JournalContentSearchLocalService journalContentSearchLocalService;
960 @BeanReference(type = JournalContentSearchPersistence.class)
961 protected JournalContentSearchPersistence journalContentSearchPersistence;
962 @BeanReference(type = JournalFeedLocalService.class)
963 protected JournalFeedLocalService journalFeedLocalService;
964 @BeanReference(type = JournalFeedService.class)
965 protected JournalFeedService journalFeedService;
966 @BeanReference(type = JournalFeedPersistence.class)
967 protected JournalFeedPersistence journalFeedPersistence;
968 @BeanReference(type = JournalFeedFinder.class)
969 protected JournalFeedFinder journalFeedFinder;
970 @BeanReference(type = JournalStructureLocalService.class)
971 protected JournalStructureLocalService journalStructureLocalService;
972 @BeanReference(type = JournalStructureService.class)
973 protected JournalStructureService journalStructureService;
974 @BeanReference(type = JournalStructurePersistence.class)
975 protected JournalStructurePersistence journalStructurePersistence;
976 @BeanReference(type = JournalStructureFinder.class)
977 protected JournalStructureFinder journalStructureFinder;
978 @BeanReference(type = JournalTemplateLocalService.class)
979 protected JournalTemplateLocalService journalTemplateLocalService;
980 @BeanReference(type = JournalTemplateService.class)
981 protected JournalTemplateService journalTemplateService;
982 @BeanReference(type = JournalTemplatePersistence.class)
983 protected JournalTemplatePersistence journalTemplatePersistence;
984 @BeanReference(type = JournalTemplateFinder.class)
985 protected JournalTemplateFinder journalTemplateFinder;
986 @BeanReference(type = CounterLocalService.class)
987 protected CounterLocalService counterLocalService;
988 @BeanReference(type = GroupLocalService.class)
989 protected GroupLocalService groupLocalService;
990 @BeanReference(type = GroupService.class)
991 protected GroupService groupService;
992 @BeanReference(type = GroupPersistence.class)
993 protected GroupPersistence groupPersistence;
994 @BeanReference(type = GroupFinder.class)
995 protected GroupFinder groupFinder;
996 @BeanReference(type = ImageLocalService.class)
997 protected ImageLocalService imageLocalService;
998 @BeanReference(type = ImageService.class)
999 protected ImageService imageService;
1000 @BeanReference(type = ImagePersistence.class)
1001 protected ImagePersistence imagePersistence;
1002 @BeanReference(type = ResourceLocalService.class)
1003 protected ResourceLocalService resourceLocalService;
1004 @BeanReference(type = ResourceService.class)
1005 protected ResourceService resourceService;
1006 @BeanReference(type = ResourcePersistence.class)
1007 protected ResourcePersistence resourcePersistence;
1008 @BeanReference(type = ResourceFinder.class)
1009 protected ResourceFinder resourceFinder;
1010 @BeanReference(type = UserLocalService.class)
1011 protected UserLocalService userLocalService;
1012 @BeanReference(type = UserService.class)
1013 protected UserService userService;
1014 @BeanReference(type = UserPersistence.class)
1015 protected UserPersistence userPersistence;
1016 @BeanReference(type = UserFinder.class)
1017 protected UserFinder userFinder;
1018 @BeanReference(type = WebDAVPropsLocalService.class)
1019 protected WebDAVPropsLocalService webDAVPropsLocalService;
1020 @BeanReference(type = WebDAVPropsPersistence.class)
1021 protected WebDAVPropsPersistence webDAVPropsPersistence;
1022 @BeanReference(type = ExpandoValueLocalService.class)
1023 protected ExpandoValueLocalService expandoValueLocalService;
1024 @BeanReference(type = ExpandoValueService.class)
1025 protected ExpandoValueService expandoValueService;
1026 @BeanReference(type = ExpandoValuePersistence.class)
1027 protected ExpandoValuePersistence expandoValuePersistence;
1028 private String _beanIdentifier;
1029 }