001
014
015 package com.liferay.portlet.documentlibrary.service.base;
016
017 import com.liferay.counter.service.CounterLocalService;
018
019 import com.liferay.documentlibrary.service.DLLocalService;
020 import com.liferay.documentlibrary.service.DLService;
021
022 import com.liferay.portal.kernel.annotation.BeanReference;
023 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
024 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
025 import com.liferay.portal.kernel.exception.SystemException;
026 import com.liferay.portal.service.GroupLocalService;
027 import com.liferay.portal.service.GroupService;
028 import com.liferay.portal.service.LayoutLocalService;
029 import com.liferay.portal.service.LayoutService;
030 import com.liferay.portal.service.LockLocalService;
031 import com.liferay.portal.service.ResourceLocalService;
032 import com.liferay.portal.service.ResourceService;
033 import com.liferay.portal.service.UserLocalService;
034 import com.liferay.portal.service.UserService;
035 import com.liferay.portal.service.WebDAVPropsLocalService;
036 import com.liferay.portal.service.base.PrincipalBean;
037 import com.liferay.portal.service.persistence.GroupFinder;
038 import com.liferay.portal.service.persistence.GroupPersistence;
039 import com.liferay.portal.service.persistence.LayoutFinder;
040 import com.liferay.portal.service.persistence.LayoutPersistence;
041 import com.liferay.portal.service.persistence.LockPersistence;
042 import com.liferay.portal.service.persistence.ResourceFinder;
043 import com.liferay.portal.service.persistence.ResourcePersistence;
044 import com.liferay.portal.service.persistence.UserFinder;
045 import com.liferay.portal.service.persistence.UserPersistence;
046 import com.liferay.portal.service.persistence.WebDAVPropsPersistence;
047
048 import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
049 import com.liferay.portlet.documentlibrary.service.DLFileEntryService;
050 import com.liferay.portlet.documentlibrary.service.DLFileRankLocalService;
051 import com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService;
052 import com.liferay.portlet.documentlibrary.service.DLFileShortcutService;
053 import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService;
054 import com.liferay.portlet.documentlibrary.service.DLFileVersionService;
055 import com.liferay.portlet.documentlibrary.service.DLFolderLocalService;
056 import com.liferay.portlet.documentlibrary.service.DLFolderService;
057 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
058 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
059 import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
060 import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
061 import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
062 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
063 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
064 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
065 import com.liferay.portlet.expando.service.ExpandoValueService;
066 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
067
068 import javax.sql.DataSource;
069
070
086 public abstract class DLFolderServiceBaseImpl extends PrincipalBean
087 implements DLFolderService {
088
093 public DLFileEntryLocalService getDLFileEntryLocalService() {
094 return dlFileEntryLocalService;
095 }
096
097
102 public void setDLFileEntryLocalService(
103 DLFileEntryLocalService dlFileEntryLocalService) {
104 this.dlFileEntryLocalService = dlFileEntryLocalService;
105 }
106
107
112 public DLFileEntryService getDLFileEntryService() {
113 return dlFileEntryService;
114 }
115
116
121 public void setDLFileEntryService(DLFileEntryService dlFileEntryService) {
122 this.dlFileEntryService = dlFileEntryService;
123 }
124
125
130 public DLFileEntryPersistence getDLFileEntryPersistence() {
131 return dlFileEntryPersistence;
132 }
133
134
139 public void setDLFileEntryPersistence(
140 DLFileEntryPersistence dlFileEntryPersistence) {
141 this.dlFileEntryPersistence = dlFileEntryPersistence;
142 }
143
144
149 public DLFileEntryFinder getDLFileEntryFinder() {
150 return dlFileEntryFinder;
151 }
152
153
158 public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
159 this.dlFileEntryFinder = dlFileEntryFinder;
160 }
161
162
167 public DLFileRankLocalService getDLFileRankLocalService() {
168 return dlFileRankLocalService;
169 }
170
171
176 public void setDLFileRankLocalService(
177 DLFileRankLocalService dlFileRankLocalService) {
178 this.dlFileRankLocalService = dlFileRankLocalService;
179 }
180
181
186 public DLFileRankPersistence getDLFileRankPersistence() {
187 return dlFileRankPersistence;
188 }
189
190
195 public void setDLFileRankPersistence(
196 DLFileRankPersistence dlFileRankPersistence) {
197 this.dlFileRankPersistence = dlFileRankPersistence;
198 }
199
200
205 public DLFileShortcutLocalService getDLFileShortcutLocalService() {
206 return dlFileShortcutLocalService;
207 }
208
209
214 public void setDLFileShortcutLocalService(
215 DLFileShortcutLocalService dlFileShortcutLocalService) {
216 this.dlFileShortcutLocalService = dlFileShortcutLocalService;
217 }
218
219
224 public DLFileShortcutService getDLFileShortcutService() {
225 return dlFileShortcutService;
226 }
227
228
233 public void setDLFileShortcutService(
234 DLFileShortcutService dlFileShortcutService) {
235 this.dlFileShortcutService = dlFileShortcutService;
236 }
237
238
243 public DLFileShortcutPersistence getDLFileShortcutPersistence() {
244 return dlFileShortcutPersistence;
245 }
246
247
252 public void setDLFileShortcutPersistence(
253 DLFileShortcutPersistence dlFileShortcutPersistence) {
254 this.dlFileShortcutPersistence = dlFileShortcutPersistence;
255 }
256
257
262 public DLFileVersionLocalService getDLFileVersionLocalService() {
263 return dlFileVersionLocalService;
264 }
265
266
271 public void setDLFileVersionLocalService(
272 DLFileVersionLocalService dlFileVersionLocalService) {
273 this.dlFileVersionLocalService = dlFileVersionLocalService;
274 }
275
276
281 public DLFileVersionService getDLFileVersionService() {
282 return dlFileVersionService;
283 }
284
285
290 public void setDLFileVersionService(
291 DLFileVersionService dlFileVersionService) {
292 this.dlFileVersionService = dlFileVersionService;
293 }
294
295
300 public DLFileVersionPersistence getDLFileVersionPersistence() {
301 return dlFileVersionPersistence;
302 }
303
304
309 public void setDLFileVersionPersistence(
310 DLFileVersionPersistence dlFileVersionPersistence) {
311 this.dlFileVersionPersistence = dlFileVersionPersistence;
312 }
313
314
319 public DLFolderLocalService getDLFolderLocalService() {
320 return dlFolderLocalService;
321 }
322
323
328 public void setDLFolderLocalService(
329 DLFolderLocalService dlFolderLocalService) {
330 this.dlFolderLocalService = dlFolderLocalService;
331 }
332
333
338 public DLFolderService getDLFolderService() {
339 return dlFolderService;
340 }
341
342
347 public void setDLFolderService(DLFolderService dlFolderService) {
348 this.dlFolderService = dlFolderService;
349 }
350
351
356 public DLFolderPersistence getDLFolderPersistence() {
357 return dlFolderPersistence;
358 }
359
360
365 public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
366 this.dlFolderPersistence = dlFolderPersistence;
367 }
368
369
374 public DLFolderFinder getDLFolderFinder() {
375 return dlFolderFinder;
376 }
377
378
383 public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
384 this.dlFolderFinder = dlFolderFinder;
385 }
386
387
392 public CounterLocalService getCounterLocalService() {
393 return counterLocalService;
394 }
395
396
401 public void setCounterLocalService(CounterLocalService counterLocalService) {
402 this.counterLocalService = counterLocalService;
403 }
404
405
410 public DLLocalService getDLLocalService() {
411 return dlLocalService;
412 }
413
414
419 public void setDLLocalService(DLLocalService dlLocalService) {
420 this.dlLocalService = dlLocalService;
421 }
422
423
428 public DLService getDLService() {
429 return dlService;
430 }
431
432
437 public void setDLService(DLService dlService) {
438 this.dlService = dlService;
439 }
440
441
446 public GroupLocalService getGroupLocalService() {
447 return groupLocalService;
448 }
449
450
455 public void setGroupLocalService(GroupLocalService groupLocalService) {
456 this.groupLocalService = groupLocalService;
457 }
458
459
464 public GroupService getGroupService() {
465 return groupService;
466 }
467
468
473 public void setGroupService(GroupService groupService) {
474 this.groupService = groupService;
475 }
476
477
482 public GroupPersistence getGroupPersistence() {
483 return groupPersistence;
484 }
485
486
491 public void setGroupPersistence(GroupPersistence groupPersistence) {
492 this.groupPersistence = groupPersistence;
493 }
494
495
500 public GroupFinder getGroupFinder() {
501 return groupFinder;
502 }
503
504
509 public void setGroupFinder(GroupFinder groupFinder) {
510 this.groupFinder = groupFinder;
511 }
512
513
518 public LayoutLocalService getLayoutLocalService() {
519 return layoutLocalService;
520 }
521
522
527 public void setLayoutLocalService(LayoutLocalService layoutLocalService) {
528 this.layoutLocalService = layoutLocalService;
529 }
530
531
536 public LayoutService getLayoutService() {
537 return layoutService;
538 }
539
540
545 public void setLayoutService(LayoutService layoutService) {
546 this.layoutService = layoutService;
547 }
548
549
554 public LayoutPersistence getLayoutPersistence() {
555 return layoutPersistence;
556 }
557
558
563 public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
564 this.layoutPersistence = layoutPersistence;
565 }
566
567
572 public LayoutFinder getLayoutFinder() {
573 return layoutFinder;
574 }
575
576
581 public void setLayoutFinder(LayoutFinder layoutFinder) {
582 this.layoutFinder = layoutFinder;
583 }
584
585
590 public LockLocalService getLockLocalService() {
591 return lockLocalService;
592 }
593
594
599 public void setLockLocalService(LockLocalService lockLocalService) {
600 this.lockLocalService = lockLocalService;
601 }
602
603
608 public LockPersistence getLockPersistence() {
609 return lockPersistence;
610 }
611
612
617 public void setLockPersistence(LockPersistence lockPersistence) {
618 this.lockPersistence = lockPersistence;
619 }
620
621
626 public ResourceLocalService getResourceLocalService() {
627 return resourceLocalService;
628 }
629
630
635 public void setResourceLocalService(
636 ResourceLocalService resourceLocalService) {
637 this.resourceLocalService = resourceLocalService;
638 }
639
640
645 public ResourceService getResourceService() {
646 return resourceService;
647 }
648
649
654 public void setResourceService(ResourceService resourceService) {
655 this.resourceService = resourceService;
656 }
657
658
663 public ResourcePersistence getResourcePersistence() {
664 return resourcePersistence;
665 }
666
667
672 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
673 this.resourcePersistence = resourcePersistence;
674 }
675
676
681 public ResourceFinder getResourceFinder() {
682 return resourceFinder;
683 }
684
685
690 public void setResourceFinder(ResourceFinder resourceFinder) {
691 this.resourceFinder = resourceFinder;
692 }
693
694
699 public UserLocalService getUserLocalService() {
700 return userLocalService;
701 }
702
703
708 public void setUserLocalService(UserLocalService userLocalService) {
709 this.userLocalService = userLocalService;
710 }
711
712
717 public UserService getUserService() {
718 return userService;
719 }
720
721
726 public void setUserService(UserService userService) {
727 this.userService = userService;
728 }
729
730
735 public UserPersistence getUserPersistence() {
736 return userPersistence;
737 }
738
739
744 public void setUserPersistence(UserPersistence userPersistence) {
745 this.userPersistence = userPersistence;
746 }
747
748
753 public UserFinder getUserFinder() {
754 return userFinder;
755 }
756
757
762 public void setUserFinder(UserFinder userFinder) {
763 this.userFinder = userFinder;
764 }
765
766
771 public WebDAVPropsLocalService getWebDAVPropsLocalService() {
772 return webDAVPropsLocalService;
773 }
774
775
780 public void setWebDAVPropsLocalService(
781 WebDAVPropsLocalService webDAVPropsLocalService) {
782 this.webDAVPropsLocalService = webDAVPropsLocalService;
783 }
784
785
790 public WebDAVPropsPersistence getWebDAVPropsPersistence() {
791 return webDAVPropsPersistence;
792 }
793
794
799 public void setWebDAVPropsPersistence(
800 WebDAVPropsPersistence webDAVPropsPersistence) {
801 this.webDAVPropsPersistence = webDAVPropsPersistence;
802 }
803
804
809 public ExpandoValueLocalService getExpandoValueLocalService() {
810 return expandoValueLocalService;
811 }
812
813
818 public void setExpandoValueLocalService(
819 ExpandoValueLocalService expandoValueLocalService) {
820 this.expandoValueLocalService = expandoValueLocalService;
821 }
822
823
828 public ExpandoValueService getExpandoValueService() {
829 return expandoValueService;
830 }
831
832
837 public void setExpandoValueService(ExpandoValueService expandoValueService) {
838 this.expandoValueService = expandoValueService;
839 }
840
841
846 public ExpandoValuePersistence getExpandoValuePersistence() {
847 return expandoValuePersistence;
848 }
849
850
855 public void setExpandoValuePersistence(
856 ExpandoValuePersistence expandoValuePersistence) {
857 this.expandoValuePersistence = expandoValuePersistence;
858 }
859
860
865 protected void runSQL(String sql) throws SystemException {
866 try {
867 DataSource dataSource = dlFolderPersistence.getDataSource();
868
869 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
870 sql, new int[0]);
871
872 sqlUpdate.update();
873 }
874 catch (Exception e) {
875 throw new SystemException(e);
876 }
877 }
878
879 @BeanReference(type = DLFileEntryLocalService.class)
880 protected DLFileEntryLocalService dlFileEntryLocalService;
881 @BeanReference(type = DLFileEntryService.class)
882 protected DLFileEntryService dlFileEntryService;
883 @BeanReference(type = DLFileEntryPersistence.class)
884 protected DLFileEntryPersistence dlFileEntryPersistence;
885 @BeanReference(type = DLFileEntryFinder.class)
886 protected DLFileEntryFinder dlFileEntryFinder;
887 @BeanReference(type = DLFileRankLocalService.class)
888 protected DLFileRankLocalService dlFileRankLocalService;
889 @BeanReference(type = DLFileRankPersistence.class)
890 protected DLFileRankPersistence dlFileRankPersistence;
891 @BeanReference(type = DLFileShortcutLocalService.class)
892 protected DLFileShortcutLocalService dlFileShortcutLocalService;
893 @BeanReference(type = DLFileShortcutService.class)
894 protected DLFileShortcutService dlFileShortcutService;
895 @BeanReference(type = DLFileShortcutPersistence.class)
896 protected DLFileShortcutPersistence dlFileShortcutPersistence;
897 @BeanReference(type = DLFileVersionLocalService.class)
898 protected DLFileVersionLocalService dlFileVersionLocalService;
899 @BeanReference(type = DLFileVersionService.class)
900 protected DLFileVersionService dlFileVersionService;
901 @BeanReference(type = DLFileVersionPersistence.class)
902 protected DLFileVersionPersistence dlFileVersionPersistence;
903 @BeanReference(type = DLFolderLocalService.class)
904 protected DLFolderLocalService dlFolderLocalService;
905 @BeanReference(type = DLFolderService.class)
906 protected DLFolderService dlFolderService;
907 @BeanReference(type = DLFolderPersistence.class)
908 protected DLFolderPersistence dlFolderPersistence;
909 @BeanReference(type = DLFolderFinder.class)
910 protected DLFolderFinder dlFolderFinder;
911 @BeanReference(type = CounterLocalService.class)
912 protected CounterLocalService counterLocalService;
913 @BeanReference(type = DLLocalService.class)
914 protected DLLocalService dlLocalService;
915 @BeanReference(type = DLService.class)
916 protected DLService dlService;
917 @BeanReference(type = GroupLocalService.class)
918 protected GroupLocalService groupLocalService;
919 @BeanReference(type = GroupService.class)
920 protected GroupService groupService;
921 @BeanReference(type = GroupPersistence.class)
922 protected GroupPersistence groupPersistence;
923 @BeanReference(type = GroupFinder.class)
924 protected GroupFinder groupFinder;
925 @BeanReference(type = LayoutLocalService.class)
926 protected LayoutLocalService layoutLocalService;
927 @BeanReference(type = LayoutService.class)
928 protected LayoutService layoutService;
929 @BeanReference(type = LayoutPersistence.class)
930 protected LayoutPersistence layoutPersistence;
931 @BeanReference(type = LayoutFinder.class)
932 protected LayoutFinder layoutFinder;
933 @BeanReference(type = LockLocalService.class)
934 protected LockLocalService lockLocalService;
935 @BeanReference(type = LockPersistence.class)
936 protected LockPersistence lockPersistence;
937 @BeanReference(type = ResourceLocalService.class)
938 protected ResourceLocalService resourceLocalService;
939 @BeanReference(type = ResourceService.class)
940 protected ResourceService resourceService;
941 @BeanReference(type = ResourcePersistence.class)
942 protected ResourcePersistence resourcePersistence;
943 @BeanReference(type = ResourceFinder.class)
944 protected ResourceFinder resourceFinder;
945 @BeanReference(type = UserLocalService.class)
946 protected UserLocalService userLocalService;
947 @BeanReference(type = UserService.class)
948 protected UserService userService;
949 @BeanReference(type = UserPersistence.class)
950 protected UserPersistence userPersistence;
951 @BeanReference(type = UserFinder.class)
952 protected UserFinder userFinder;
953 @BeanReference(type = WebDAVPropsLocalService.class)
954 protected WebDAVPropsLocalService webDAVPropsLocalService;
955 @BeanReference(type = WebDAVPropsPersistence.class)
956 protected WebDAVPropsPersistence webDAVPropsPersistence;
957 @BeanReference(type = ExpandoValueLocalService.class)
958 protected ExpandoValueLocalService expandoValueLocalService;
959 @BeanReference(type = ExpandoValueService.class)
960 protected ExpandoValueService expandoValueService;
961 @BeanReference(type = ExpandoValuePersistence.class)
962 protected ExpandoValuePersistence expandoValuePersistence;
963 }