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.UserLocalService;
031 import com.liferay.portal.service.UserService;
032 import com.liferay.portal.service.WebDAVPropsLocalService;
033 import com.liferay.portal.service.persistence.GroupFinder;
034 import com.liferay.portal.service.persistence.GroupPersistence;
035 import com.liferay.portal.service.persistence.ImagePersistence;
036 import com.liferay.portal.service.persistence.UserFinder;
037 import com.liferay.portal.service.persistence.UserPersistence;
038 import com.liferay.portal.service.persistence.WebDAVPropsPersistence;
039
040 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
041 import com.liferay.portlet.expando.service.ExpandoValueService;
042 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
043 import com.liferay.portlet.journal.model.JournalTemplate;
044 import com.liferay.portlet.journal.service.JournalArticleImageLocalService;
045 import com.liferay.portlet.journal.service.JournalArticleLocalService;
046 import com.liferay.portlet.journal.service.JournalArticleResourceLocalService;
047 import com.liferay.portlet.journal.service.JournalArticleService;
048 import com.liferay.portlet.journal.service.JournalContentSearchLocalService;
049 import com.liferay.portlet.journal.service.JournalFeedLocalService;
050 import com.liferay.portlet.journal.service.JournalFeedService;
051 import com.liferay.portlet.journal.service.JournalFolderLocalService;
052 import com.liferay.portlet.journal.service.JournalFolderService;
053 import com.liferay.portlet.journal.service.JournalStructureLocalService;
054 import com.liferay.portlet.journal.service.JournalStructureService;
055 import com.liferay.portlet.journal.service.JournalTemplateLocalService;
056 import com.liferay.portlet.journal.service.JournalTemplateService;
057 import com.liferay.portlet.journal.service.persistence.JournalArticleFinder;
058 import com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence;
059 import com.liferay.portlet.journal.service.persistence.JournalArticlePersistence;
060 import com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence;
061 import com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence;
062 import com.liferay.portlet.journal.service.persistence.JournalFeedFinder;
063 import com.liferay.portlet.journal.service.persistence.JournalFeedPersistence;
064 import com.liferay.portlet.journal.service.persistence.JournalFolderFinder;
065 import com.liferay.portlet.journal.service.persistence.JournalFolderPersistence;
066 import com.liferay.portlet.journal.service.persistence.JournalStructureFinder;
067 import com.liferay.portlet.journal.service.persistence.JournalStructurePersistence;
068 import com.liferay.portlet.journal.service.persistence.JournalTemplateFinder;
069 import com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence;
070
071 import javax.sql.DataSource;
072
073
085 public abstract class JournalTemplateServiceBaseImpl extends BaseServiceImpl
086 implements JournalTemplateService, IdentifiableBean {
087
092
093
098 public JournalArticleLocalService getJournalArticleLocalService() {
099 return journalArticleLocalService;
100 }
101
102
107 public void setJournalArticleLocalService(
108 JournalArticleLocalService journalArticleLocalService) {
109 this.journalArticleLocalService = journalArticleLocalService;
110 }
111
112
117 public JournalArticleService getJournalArticleService() {
118 return journalArticleService;
119 }
120
121
126 public void setJournalArticleService(
127 JournalArticleService journalArticleService) {
128 this.journalArticleService = journalArticleService;
129 }
130
131
136 public JournalArticlePersistence getJournalArticlePersistence() {
137 return journalArticlePersistence;
138 }
139
140
145 public void setJournalArticlePersistence(
146 JournalArticlePersistence journalArticlePersistence) {
147 this.journalArticlePersistence = journalArticlePersistence;
148 }
149
150
155 public JournalArticleFinder getJournalArticleFinder() {
156 return journalArticleFinder;
157 }
158
159
164 public void setJournalArticleFinder(
165 JournalArticleFinder journalArticleFinder) {
166 this.journalArticleFinder = journalArticleFinder;
167 }
168
169
174 public JournalArticleImageLocalService getJournalArticleImageLocalService() {
175 return journalArticleImageLocalService;
176 }
177
178
183 public void setJournalArticleImageLocalService(
184 JournalArticleImageLocalService journalArticleImageLocalService) {
185 this.journalArticleImageLocalService = journalArticleImageLocalService;
186 }
187
188
193 public JournalArticleImagePersistence getJournalArticleImagePersistence() {
194 return journalArticleImagePersistence;
195 }
196
197
202 public void setJournalArticleImagePersistence(
203 JournalArticleImagePersistence journalArticleImagePersistence) {
204 this.journalArticleImagePersistence = journalArticleImagePersistence;
205 }
206
207
212 public JournalArticleResourceLocalService getJournalArticleResourceLocalService() {
213 return journalArticleResourceLocalService;
214 }
215
216
221 public void setJournalArticleResourceLocalService(
222 JournalArticleResourceLocalService journalArticleResourceLocalService) {
223 this.journalArticleResourceLocalService = journalArticleResourceLocalService;
224 }
225
226
231 public JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
232 return journalArticleResourcePersistence;
233 }
234
235
240 public void setJournalArticleResourcePersistence(
241 JournalArticleResourcePersistence journalArticleResourcePersistence) {
242 this.journalArticleResourcePersistence = journalArticleResourcePersistence;
243 }
244
245
250 public JournalContentSearchLocalService getJournalContentSearchLocalService() {
251 return journalContentSearchLocalService;
252 }
253
254
259 public void setJournalContentSearchLocalService(
260 JournalContentSearchLocalService journalContentSearchLocalService) {
261 this.journalContentSearchLocalService = journalContentSearchLocalService;
262 }
263
264
269 public JournalContentSearchPersistence getJournalContentSearchPersistence() {
270 return journalContentSearchPersistence;
271 }
272
273
278 public void setJournalContentSearchPersistence(
279 JournalContentSearchPersistence journalContentSearchPersistence) {
280 this.journalContentSearchPersistence = journalContentSearchPersistence;
281 }
282
283
288 public JournalFeedLocalService getJournalFeedLocalService() {
289 return journalFeedLocalService;
290 }
291
292
297 public void setJournalFeedLocalService(
298 JournalFeedLocalService journalFeedLocalService) {
299 this.journalFeedLocalService = journalFeedLocalService;
300 }
301
302
307 public JournalFeedService getJournalFeedService() {
308 return journalFeedService;
309 }
310
311
316 public void setJournalFeedService(JournalFeedService journalFeedService) {
317 this.journalFeedService = journalFeedService;
318 }
319
320
325 public JournalFeedPersistence getJournalFeedPersistence() {
326 return journalFeedPersistence;
327 }
328
329
334 public void setJournalFeedPersistence(
335 JournalFeedPersistence journalFeedPersistence) {
336 this.journalFeedPersistence = journalFeedPersistence;
337 }
338
339
344 public JournalFeedFinder getJournalFeedFinder() {
345 return journalFeedFinder;
346 }
347
348
353 public void setJournalFeedFinder(JournalFeedFinder journalFeedFinder) {
354 this.journalFeedFinder = journalFeedFinder;
355 }
356
357
362 public JournalFolderLocalService getJournalFolderLocalService() {
363 return journalFolderLocalService;
364 }
365
366
371 public void setJournalFolderLocalService(
372 JournalFolderLocalService journalFolderLocalService) {
373 this.journalFolderLocalService = journalFolderLocalService;
374 }
375
376
381 public JournalFolderService getJournalFolderService() {
382 return journalFolderService;
383 }
384
385
390 public void setJournalFolderService(
391 JournalFolderService journalFolderService) {
392 this.journalFolderService = journalFolderService;
393 }
394
395
400 public JournalFolderPersistence getJournalFolderPersistence() {
401 return journalFolderPersistence;
402 }
403
404
409 public void setJournalFolderPersistence(
410 JournalFolderPersistence journalFolderPersistence) {
411 this.journalFolderPersistence = journalFolderPersistence;
412 }
413
414
419 public JournalFolderFinder getJournalFolderFinder() {
420 return journalFolderFinder;
421 }
422
423
428 public void setJournalFolderFinder(JournalFolderFinder journalFolderFinder) {
429 this.journalFolderFinder = journalFolderFinder;
430 }
431
432
437 public JournalStructureLocalService getJournalStructureLocalService() {
438 return journalStructureLocalService;
439 }
440
441
446 public void setJournalStructureLocalService(
447 JournalStructureLocalService journalStructureLocalService) {
448 this.journalStructureLocalService = journalStructureLocalService;
449 }
450
451
456 public JournalStructureService getJournalStructureService() {
457 return journalStructureService;
458 }
459
460
465 public void setJournalStructureService(
466 JournalStructureService journalStructureService) {
467 this.journalStructureService = journalStructureService;
468 }
469
470
475 public JournalStructurePersistence getJournalStructurePersistence() {
476 return journalStructurePersistence;
477 }
478
479
484 public void setJournalStructurePersistence(
485 JournalStructurePersistence journalStructurePersistence) {
486 this.journalStructurePersistence = journalStructurePersistence;
487 }
488
489
494 public JournalStructureFinder getJournalStructureFinder() {
495 return journalStructureFinder;
496 }
497
498
503 public void setJournalStructureFinder(
504 JournalStructureFinder journalStructureFinder) {
505 this.journalStructureFinder = journalStructureFinder;
506 }
507
508
513 public JournalTemplateLocalService getJournalTemplateLocalService() {
514 return journalTemplateLocalService;
515 }
516
517
522 public void setJournalTemplateLocalService(
523 JournalTemplateLocalService journalTemplateLocalService) {
524 this.journalTemplateLocalService = journalTemplateLocalService;
525 }
526
527
532 public JournalTemplateService getJournalTemplateService() {
533 return journalTemplateService;
534 }
535
536
541 public void setJournalTemplateService(
542 JournalTemplateService journalTemplateService) {
543 this.journalTemplateService = journalTemplateService;
544 }
545
546
551 public JournalTemplatePersistence getJournalTemplatePersistence() {
552 return journalTemplatePersistence;
553 }
554
555
560 public void setJournalTemplatePersistence(
561 JournalTemplatePersistence journalTemplatePersistence) {
562 this.journalTemplatePersistence = journalTemplatePersistence;
563 }
564
565
570 public JournalTemplateFinder getJournalTemplateFinder() {
571 return journalTemplateFinder;
572 }
573
574
579 public void setJournalTemplateFinder(
580 JournalTemplateFinder journalTemplateFinder) {
581 this.journalTemplateFinder = journalTemplateFinder;
582 }
583
584
589 public CounterLocalService getCounterLocalService() {
590 return counterLocalService;
591 }
592
593
598 public void setCounterLocalService(CounterLocalService counterLocalService) {
599 this.counterLocalService = counterLocalService;
600 }
601
602
607 public GroupLocalService getGroupLocalService() {
608 return groupLocalService;
609 }
610
611
616 public void setGroupLocalService(GroupLocalService groupLocalService) {
617 this.groupLocalService = groupLocalService;
618 }
619
620
625 public GroupService getGroupService() {
626 return groupService;
627 }
628
629
634 public void setGroupService(GroupService groupService) {
635 this.groupService = groupService;
636 }
637
638
643 public GroupPersistence getGroupPersistence() {
644 return groupPersistence;
645 }
646
647
652 public void setGroupPersistence(GroupPersistence groupPersistence) {
653 this.groupPersistence = groupPersistence;
654 }
655
656
661 public GroupFinder getGroupFinder() {
662 return groupFinder;
663 }
664
665
670 public void setGroupFinder(GroupFinder groupFinder) {
671 this.groupFinder = groupFinder;
672 }
673
674
679 public ImageLocalService getImageLocalService() {
680 return imageLocalService;
681 }
682
683
688 public void setImageLocalService(ImageLocalService imageLocalService) {
689 this.imageLocalService = imageLocalService;
690 }
691
692
697 public ImageService getImageService() {
698 return imageService;
699 }
700
701
706 public void setImageService(ImageService imageService) {
707 this.imageService = imageService;
708 }
709
710
715 public ImagePersistence getImagePersistence() {
716 return imagePersistence;
717 }
718
719
724 public void setImagePersistence(ImagePersistence imagePersistence) {
725 this.imagePersistence = imagePersistence;
726 }
727
728
733 public ResourceLocalService getResourceLocalService() {
734 return resourceLocalService;
735 }
736
737
742 public void setResourceLocalService(
743 ResourceLocalService resourceLocalService) {
744 this.resourceLocalService = resourceLocalService;
745 }
746
747
752 public UserLocalService getUserLocalService() {
753 return userLocalService;
754 }
755
756
761 public void setUserLocalService(UserLocalService userLocalService) {
762 this.userLocalService = userLocalService;
763 }
764
765
770 public UserService getUserService() {
771 return userService;
772 }
773
774
779 public void setUserService(UserService userService) {
780 this.userService = userService;
781 }
782
783
788 public UserPersistence getUserPersistence() {
789 return userPersistence;
790 }
791
792
797 public void setUserPersistence(UserPersistence userPersistence) {
798 this.userPersistence = userPersistence;
799 }
800
801
806 public UserFinder getUserFinder() {
807 return userFinder;
808 }
809
810
815 public void setUserFinder(UserFinder userFinder) {
816 this.userFinder = userFinder;
817 }
818
819
824 public WebDAVPropsLocalService getWebDAVPropsLocalService() {
825 return webDAVPropsLocalService;
826 }
827
828
833 public void setWebDAVPropsLocalService(
834 WebDAVPropsLocalService webDAVPropsLocalService) {
835 this.webDAVPropsLocalService = webDAVPropsLocalService;
836 }
837
838
843 public WebDAVPropsPersistence getWebDAVPropsPersistence() {
844 return webDAVPropsPersistence;
845 }
846
847
852 public void setWebDAVPropsPersistence(
853 WebDAVPropsPersistence webDAVPropsPersistence) {
854 this.webDAVPropsPersistence = webDAVPropsPersistence;
855 }
856
857
862 public ExpandoValueLocalService getExpandoValueLocalService() {
863 return expandoValueLocalService;
864 }
865
866
871 public void setExpandoValueLocalService(
872 ExpandoValueLocalService expandoValueLocalService) {
873 this.expandoValueLocalService = expandoValueLocalService;
874 }
875
876
881 public ExpandoValueService getExpandoValueService() {
882 return expandoValueService;
883 }
884
885
890 public void setExpandoValueService(ExpandoValueService expandoValueService) {
891 this.expandoValueService = expandoValueService;
892 }
893
894
899 public ExpandoValuePersistence getExpandoValuePersistence() {
900 return expandoValuePersistence;
901 }
902
903
908 public void setExpandoValuePersistence(
909 ExpandoValuePersistence expandoValuePersistence) {
910 this.expandoValuePersistence = expandoValuePersistence;
911 }
912
913 public void afterPropertiesSet() {
914 }
915
916 public void destroy() {
917 }
918
919
924 public String getBeanIdentifier() {
925 return _beanIdentifier;
926 }
927
928
933 public void setBeanIdentifier(String beanIdentifier) {
934 _beanIdentifier = beanIdentifier;
935 }
936
937 protected Class<?> getModelClass() {
938 return JournalTemplate.class;
939 }
940
941 protected String getModelClassName() {
942 return JournalTemplate.class.getName();
943 }
944
945
950 protected void runSQL(String sql) throws SystemException {
951 try {
952 DataSource dataSource = journalTemplatePersistence.getDataSource();
953
954 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
955 sql, new int[0]);
956
957 sqlUpdate.update();
958 }
959 catch (Exception e) {
960 throw new SystemException(e);
961 }
962 }
963
964 @BeanReference(type = JournalArticleLocalService.class)
965 protected JournalArticleLocalService journalArticleLocalService;
966 @BeanReference(type = JournalArticleService.class)
967 protected JournalArticleService journalArticleService;
968 @BeanReference(type = JournalArticlePersistence.class)
969 protected JournalArticlePersistence journalArticlePersistence;
970 @BeanReference(type = JournalArticleFinder.class)
971 protected JournalArticleFinder journalArticleFinder;
972 @BeanReference(type = JournalArticleImageLocalService.class)
973 protected JournalArticleImageLocalService journalArticleImageLocalService;
974 @BeanReference(type = JournalArticleImagePersistence.class)
975 protected JournalArticleImagePersistence journalArticleImagePersistence;
976 @BeanReference(type = JournalArticleResourceLocalService.class)
977 protected JournalArticleResourceLocalService journalArticleResourceLocalService;
978 @BeanReference(type = JournalArticleResourcePersistence.class)
979 protected JournalArticleResourcePersistence journalArticleResourcePersistence;
980 @BeanReference(type = JournalContentSearchLocalService.class)
981 protected JournalContentSearchLocalService journalContentSearchLocalService;
982 @BeanReference(type = JournalContentSearchPersistence.class)
983 protected JournalContentSearchPersistence journalContentSearchPersistence;
984 @BeanReference(type = JournalFeedLocalService.class)
985 protected JournalFeedLocalService journalFeedLocalService;
986 @BeanReference(type = JournalFeedService.class)
987 protected JournalFeedService journalFeedService;
988 @BeanReference(type = JournalFeedPersistence.class)
989 protected JournalFeedPersistence journalFeedPersistence;
990 @BeanReference(type = JournalFeedFinder.class)
991 protected JournalFeedFinder journalFeedFinder;
992 @BeanReference(type = JournalFolderLocalService.class)
993 protected JournalFolderLocalService journalFolderLocalService;
994 @BeanReference(type = JournalFolderService.class)
995 protected JournalFolderService journalFolderService;
996 @BeanReference(type = JournalFolderPersistence.class)
997 protected JournalFolderPersistence journalFolderPersistence;
998 @BeanReference(type = JournalFolderFinder.class)
999 protected JournalFolderFinder journalFolderFinder;
1000 @BeanReference(type = JournalStructureLocalService.class)
1001 protected JournalStructureLocalService journalStructureLocalService;
1002 @BeanReference(type = JournalStructureService.class)
1003 protected JournalStructureService journalStructureService;
1004 @BeanReference(type = JournalStructurePersistence.class)
1005 protected JournalStructurePersistence journalStructurePersistence;
1006 @BeanReference(type = JournalStructureFinder.class)
1007 protected JournalStructureFinder journalStructureFinder;
1008 @BeanReference(type = JournalTemplateLocalService.class)
1009 protected JournalTemplateLocalService journalTemplateLocalService;
1010 @BeanReference(type = JournalTemplateService.class)
1011 protected JournalTemplateService journalTemplateService;
1012 @BeanReference(type = JournalTemplatePersistence.class)
1013 protected JournalTemplatePersistence journalTemplatePersistence;
1014 @BeanReference(type = JournalTemplateFinder.class)
1015 protected JournalTemplateFinder journalTemplateFinder;
1016 @BeanReference(type = CounterLocalService.class)
1017 protected CounterLocalService counterLocalService;
1018 @BeanReference(type = GroupLocalService.class)
1019 protected GroupLocalService groupLocalService;
1020 @BeanReference(type = GroupService.class)
1021 protected GroupService groupService;
1022 @BeanReference(type = GroupPersistence.class)
1023 protected GroupPersistence groupPersistence;
1024 @BeanReference(type = GroupFinder.class)
1025 protected GroupFinder groupFinder;
1026 @BeanReference(type = ImageLocalService.class)
1027 protected ImageLocalService imageLocalService;
1028 @BeanReference(type = ImageService.class)
1029 protected ImageService imageService;
1030 @BeanReference(type = ImagePersistence.class)
1031 protected ImagePersistence imagePersistence;
1032 @BeanReference(type = ResourceLocalService.class)
1033 protected ResourceLocalService resourceLocalService;
1034 @BeanReference(type = UserLocalService.class)
1035 protected UserLocalService userLocalService;
1036 @BeanReference(type = UserService.class)
1037 protected UserService userService;
1038 @BeanReference(type = UserPersistence.class)
1039 protected UserPersistence userPersistence;
1040 @BeanReference(type = UserFinder.class)
1041 protected UserFinder userFinder;
1042 @BeanReference(type = WebDAVPropsLocalService.class)
1043 protected WebDAVPropsLocalService webDAVPropsLocalService;
1044 @BeanReference(type = WebDAVPropsPersistence.class)
1045 protected WebDAVPropsPersistence webDAVPropsPersistence;
1046 @BeanReference(type = ExpandoValueLocalService.class)
1047 protected ExpandoValueLocalService expandoValueLocalService;
1048 @BeanReference(type = ExpandoValueService.class)
1049 protected ExpandoValueService expandoValueService;
1050 @BeanReference(type = ExpandoValuePersistence.class)
1051 protected ExpandoValuePersistence expandoValuePersistence;
1052 private String _beanIdentifier;
1053 }