001
014
015 package com.liferay.portlet.documentlibrary.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.documentlibrary.model.DLFileVersion;
035 import com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService;
036 import com.liferay.portlet.documentlibrary.service.DLAppLocalService;
037 import com.liferay.portlet.documentlibrary.service.DLAppService;
038 import com.liferay.portlet.documentlibrary.service.DLContentLocalService;
039 import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
040 import com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService;
041 import com.liferay.portlet.documentlibrary.service.DLFileEntryService;
042 import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService;
043 import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService;
044 import com.liferay.portlet.documentlibrary.service.DLFileRankLocalService;
045 import com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService;
046 import com.liferay.portlet.documentlibrary.service.DLFileShortcutService;
047 import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService;
048 import com.liferay.portlet.documentlibrary.service.DLFileVersionService;
049 import com.liferay.portlet.documentlibrary.service.DLFolderLocalService;
050 import com.liferay.portlet.documentlibrary.service.DLFolderService;
051 import com.liferay.portlet.documentlibrary.service.DLSyncLocalService;
052 import com.liferay.portlet.documentlibrary.service.DLSyncService;
053 import com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence;
054 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
055 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistence;
056 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
057 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
058 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
059 import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder;
060 import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
061 import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
062 import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
063 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
064 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
065 import com.liferay.portlet.documentlibrary.service.persistence.DLSyncFinder;
066 import com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence;
067
068 import javax.sql.DataSource;
069
070
082 public abstract class DLFileVersionServiceBaseImpl extends BaseServiceImpl
083 implements DLFileVersionService, IdentifiableBean {
084
089
090
095 public DLAppLocalService getDLAppLocalService() {
096 return dlAppLocalService;
097 }
098
099
104 public void setDLAppLocalService(DLAppLocalService dlAppLocalService) {
105 this.dlAppLocalService = dlAppLocalService;
106 }
107
108
113 public DLAppService getDLAppService() {
114 return dlAppService;
115 }
116
117
122 public void setDLAppService(DLAppService dlAppService) {
123 this.dlAppService = dlAppService;
124 }
125
126
131 public DLAppHelperLocalService getDLAppHelperLocalService() {
132 return dlAppHelperLocalService;
133 }
134
135
140 public void setDLAppHelperLocalService(
141 DLAppHelperLocalService dlAppHelperLocalService) {
142 this.dlAppHelperLocalService = dlAppHelperLocalService;
143 }
144
145
150 public DLContentLocalService getDLContentLocalService() {
151 return dlContentLocalService;
152 }
153
154
159 public void setDLContentLocalService(
160 DLContentLocalService dlContentLocalService) {
161 this.dlContentLocalService = dlContentLocalService;
162 }
163
164
169 public DLContentPersistence getDLContentPersistence() {
170 return dlContentPersistence;
171 }
172
173
178 public void setDLContentPersistence(
179 DLContentPersistence dlContentPersistence) {
180 this.dlContentPersistence = dlContentPersistence;
181 }
182
183
188 public DLFileEntryLocalService getDLFileEntryLocalService() {
189 return dlFileEntryLocalService;
190 }
191
192
197 public void setDLFileEntryLocalService(
198 DLFileEntryLocalService dlFileEntryLocalService) {
199 this.dlFileEntryLocalService = dlFileEntryLocalService;
200 }
201
202
207 public DLFileEntryService getDLFileEntryService() {
208 return dlFileEntryService;
209 }
210
211
216 public void setDLFileEntryService(DLFileEntryService dlFileEntryService) {
217 this.dlFileEntryService = dlFileEntryService;
218 }
219
220
225 public DLFileEntryPersistence getDLFileEntryPersistence() {
226 return dlFileEntryPersistence;
227 }
228
229
234 public void setDLFileEntryPersistence(
235 DLFileEntryPersistence dlFileEntryPersistence) {
236 this.dlFileEntryPersistence = dlFileEntryPersistence;
237 }
238
239
244 public DLFileEntryFinder getDLFileEntryFinder() {
245 return dlFileEntryFinder;
246 }
247
248
253 public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
254 this.dlFileEntryFinder = dlFileEntryFinder;
255 }
256
257
262 public DLFileEntryMetadataLocalService getDLFileEntryMetadataLocalService() {
263 return dlFileEntryMetadataLocalService;
264 }
265
266
271 public void setDLFileEntryMetadataLocalService(
272 DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService) {
273 this.dlFileEntryMetadataLocalService = dlFileEntryMetadataLocalService;
274 }
275
276
281 public DLFileEntryMetadataPersistence getDLFileEntryMetadataPersistence() {
282 return dlFileEntryMetadataPersistence;
283 }
284
285
290 public void setDLFileEntryMetadataPersistence(
291 DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence) {
292 this.dlFileEntryMetadataPersistence = dlFileEntryMetadataPersistence;
293 }
294
295
300 public DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
301 return dlFileEntryTypeLocalService;
302 }
303
304
309 public void setDLFileEntryTypeLocalService(
310 DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
311 this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
312 }
313
314
319 public DLFileEntryTypeService getDLFileEntryTypeService() {
320 return dlFileEntryTypeService;
321 }
322
323
328 public void setDLFileEntryTypeService(
329 DLFileEntryTypeService dlFileEntryTypeService) {
330 this.dlFileEntryTypeService = dlFileEntryTypeService;
331 }
332
333
338 public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
339 return dlFileEntryTypePersistence;
340 }
341
342
347 public void setDLFileEntryTypePersistence(
348 DLFileEntryTypePersistence dlFileEntryTypePersistence) {
349 this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
350 }
351
352
357 public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
358 return dlFileEntryTypeFinder;
359 }
360
361
366 public void setDLFileEntryTypeFinder(
367 DLFileEntryTypeFinder dlFileEntryTypeFinder) {
368 this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
369 }
370
371
376 public DLFileRankLocalService getDLFileRankLocalService() {
377 return dlFileRankLocalService;
378 }
379
380
385 public void setDLFileRankLocalService(
386 DLFileRankLocalService dlFileRankLocalService) {
387 this.dlFileRankLocalService = dlFileRankLocalService;
388 }
389
390
395 public DLFileRankPersistence getDLFileRankPersistence() {
396 return dlFileRankPersistence;
397 }
398
399
404 public void setDLFileRankPersistence(
405 DLFileRankPersistence dlFileRankPersistence) {
406 this.dlFileRankPersistence = dlFileRankPersistence;
407 }
408
409
414 public DLFileRankFinder getDLFileRankFinder() {
415 return dlFileRankFinder;
416 }
417
418
423 public void setDLFileRankFinder(DLFileRankFinder dlFileRankFinder) {
424 this.dlFileRankFinder = dlFileRankFinder;
425 }
426
427
432 public DLFileShortcutLocalService getDLFileShortcutLocalService() {
433 return dlFileShortcutLocalService;
434 }
435
436
441 public void setDLFileShortcutLocalService(
442 DLFileShortcutLocalService dlFileShortcutLocalService) {
443 this.dlFileShortcutLocalService = dlFileShortcutLocalService;
444 }
445
446
451 public DLFileShortcutService getDLFileShortcutService() {
452 return dlFileShortcutService;
453 }
454
455
460 public void setDLFileShortcutService(
461 DLFileShortcutService dlFileShortcutService) {
462 this.dlFileShortcutService = dlFileShortcutService;
463 }
464
465
470 public DLFileShortcutPersistence getDLFileShortcutPersistence() {
471 return dlFileShortcutPersistence;
472 }
473
474
479 public void setDLFileShortcutPersistence(
480 DLFileShortcutPersistence dlFileShortcutPersistence) {
481 this.dlFileShortcutPersistence = dlFileShortcutPersistence;
482 }
483
484
489 public DLFileVersionLocalService getDLFileVersionLocalService() {
490 return dlFileVersionLocalService;
491 }
492
493
498 public void setDLFileVersionLocalService(
499 DLFileVersionLocalService dlFileVersionLocalService) {
500 this.dlFileVersionLocalService = dlFileVersionLocalService;
501 }
502
503
508 public DLFileVersionService getDLFileVersionService() {
509 return dlFileVersionService;
510 }
511
512
517 public void setDLFileVersionService(
518 DLFileVersionService dlFileVersionService) {
519 this.dlFileVersionService = dlFileVersionService;
520 }
521
522
527 public DLFileVersionPersistence getDLFileVersionPersistence() {
528 return dlFileVersionPersistence;
529 }
530
531
536 public void setDLFileVersionPersistence(
537 DLFileVersionPersistence dlFileVersionPersistence) {
538 this.dlFileVersionPersistence = dlFileVersionPersistence;
539 }
540
541
546 public DLFolderLocalService getDLFolderLocalService() {
547 return dlFolderLocalService;
548 }
549
550
555 public void setDLFolderLocalService(
556 DLFolderLocalService dlFolderLocalService) {
557 this.dlFolderLocalService = dlFolderLocalService;
558 }
559
560
565 public DLFolderService getDLFolderService() {
566 return dlFolderService;
567 }
568
569
574 public void setDLFolderService(DLFolderService dlFolderService) {
575 this.dlFolderService = dlFolderService;
576 }
577
578
583 public DLFolderPersistence getDLFolderPersistence() {
584 return dlFolderPersistence;
585 }
586
587
592 public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
593 this.dlFolderPersistence = dlFolderPersistence;
594 }
595
596
601 public DLFolderFinder getDLFolderFinder() {
602 return dlFolderFinder;
603 }
604
605
610 public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
611 this.dlFolderFinder = dlFolderFinder;
612 }
613
614
619 public DLSyncLocalService getDLSyncLocalService() {
620 return dlSyncLocalService;
621 }
622
623
628 public void setDLSyncLocalService(DLSyncLocalService dlSyncLocalService) {
629 this.dlSyncLocalService = dlSyncLocalService;
630 }
631
632
637 public DLSyncService getDLSyncService() {
638 return dlSyncService;
639 }
640
641
646 public void setDLSyncService(DLSyncService dlSyncService) {
647 this.dlSyncService = dlSyncService;
648 }
649
650
655 public DLSyncPersistence getDLSyncPersistence() {
656 return dlSyncPersistence;
657 }
658
659
664 public void setDLSyncPersistence(DLSyncPersistence dlSyncPersistence) {
665 this.dlSyncPersistence = dlSyncPersistence;
666 }
667
668
673 public DLSyncFinder getDLSyncFinder() {
674 return dlSyncFinder;
675 }
676
677
682 public void setDLSyncFinder(DLSyncFinder dlSyncFinder) {
683 this.dlSyncFinder = dlSyncFinder;
684 }
685
686
691 public CounterLocalService getCounterLocalService() {
692 return counterLocalService;
693 }
694
695
700 public void setCounterLocalService(CounterLocalService counterLocalService) {
701 this.counterLocalService = counterLocalService;
702 }
703
704
709 public ResourceLocalService getResourceLocalService() {
710 return resourceLocalService;
711 }
712
713
718 public void setResourceLocalService(
719 ResourceLocalService resourceLocalService) {
720 this.resourceLocalService = resourceLocalService;
721 }
722
723
728 public ResourceService getResourceService() {
729 return resourceService;
730 }
731
732
737 public void setResourceService(ResourceService resourceService) {
738 this.resourceService = resourceService;
739 }
740
741
746 public ResourcePersistence getResourcePersistence() {
747 return resourcePersistence;
748 }
749
750
755 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
756 this.resourcePersistence = resourcePersistence;
757 }
758
759
764 public ResourceFinder getResourceFinder() {
765 return resourceFinder;
766 }
767
768
773 public void setResourceFinder(ResourceFinder resourceFinder) {
774 this.resourceFinder = resourceFinder;
775 }
776
777
782 public UserLocalService getUserLocalService() {
783 return userLocalService;
784 }
785
786
791 public void setUserLocalService(UserLocalService userLocalService) {
792 this.userLocalService = userLocalService;
793 }
794
795
800 public UserService getUserService() {
801 return userService;
802 }
803
804
809 public void setUserService(UserService userService) {
810 this.userService = userService;
811 }
812
813
818 public UserPersistence getUserPersistence() {
819 return userPersistence;
820 }
821
822
827 public void setUserPersistence(UserPersistence userPersistence) {
828 this.userPersistence = userPersistence;
829 }
830
831
836 public UserFinder getUserFinder() {
837 return userFinder;
838 }
839
840
845 public void setUserFinder(UserFinder userFinder) {
846 this.userFinder = userFinder;
847 }
848
849 public void afterPropertiesSet() {
850 }
851
852 public void destroy() {
853 }
854
855
860 public String getBeanIdentifier() {
861 return _beanIdentifier;
862 }
863
864
869 public void setBeanIdentifier(String beanIdentifier) {
870 _beanIdentifier = beanIdentifier;
871 }
872
873 protected Class<?> getModelClass() {
874 return DLFileVersion.class;
875 }
876
877 protected String getModelClassName() {
878 return DLFileVersion.class.getName();
879 }
880
881
886 protected void runSQL(String sql) throws SystemException {
887 try {
888 DataSource dataSource = dlFileVersionPersistence.getDataSource();
889
890 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
891 sql, new int[0]);
892
893 sqlUpdate.update();
894 }
895 catch (Exception e) {
896 throw new SystemException(e);
897 }
898 }
899
900 @BeanReference(type = DLAppLocalService.class)
901 protected DLAppLocalService dlAppLocalService;
902 @BeanReference(type = DLAppService.class)
903 protected DLAppService dlAppService;
904 @BeanReference(type = DLAppHelperLocalService.class)
905 protected DLAppHelperLocalService dlAppHelperLocalService;
906 @BeanReference(type = DLContentLocalService.class)
907 protected DLContentLocalService dlContentLocalService;
908 @BeanReference(type = DLContentPersistence.class)
909 protected DLContentPersistence dlContentPersistence;
910 @BeanReference(type = DLFileEntryLocalService.class)
911 protected DLFileEntryLocalService dlFileEntryLocalService;
912 @BeanReference(type = DLFileEntryService.class)
913 protected DLFileEntryService dlFileEntryService;
914 @BeanReference(type = DLFileEntryPersistence.class)
915 protected DLFileEntryPersistence dlFileEntryPersistence;
916 @BeanReference(type = DLFileEntryFinder.class)
917 protected DLFileEntryFinder dlFileEntryFinder;
918 @BeanReference(type = DLFileEntryMetadataLocalService.class)
919 protected DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService;
920 @BeanReference(type = DLFileEntryMetadataPersistence.class)
921 protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence;
922 @BeanReference(type = DLFileEntryTypeLocalService.class)
923 protected DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
924 @BeanReference(type = DLFileEntryTypeService.class)
925 protected DLFileEntryTypeService dlFileEntryTypeService;
926 @BeanReference(type = DLFileEntryTypePersistence.class)
927 protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
928 @BeanReference(type = DLFileEntryTypeFinder.class)
929 protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
930 @BeanReference(type = DLFileRankLocalService.class)
931 protected DLFileRankLocalService dlFileRankLocalService;
932 @BeanReference(type = DLFileRankPersistence.class)
933 protected DLFileRankPersistence dlFileRankPersistence;
934 @BeanReference(type = DLFileRankFinder.class)
935 protected DLFileRankFinder dlFileRankFinder;
936 @BeanReference(type = DLFileShortcutLocalService.class)
937 protected DLFileShortcutLocalService dlFileShortcutLocalService;
938 @BeanReference(type = DLFileShortcutService.class)
939 protected DLFileShortcutService dlFileShortcutService;
940 @BeanReference(type = DLFileShortcutPersistence.class)
941 protected DLFileShortcutPersistence dlFileShortcutPersistence;
942 @BeanReference(type = DLFileVersionLocalService.class)
943 protected DLFileVersionLocalService dlFileVersionLocalService;
944 @BeanReference(type = DLFileVersionService.class)
945 protected DLFileVersionService dlFileVersionService;
946 @BeanReference(type = DLFileVersionPersistence.class)
947 protected DLFileVersionPersistence dlFileVersionPersistence;
948 @BeanReference(type = DLFolderLocalService.class)
949 protected DLFolderLocalService dlFolderLocalService;
950 @BeanReference(type = DLFolderService.class)
951 protected DLFolderService dlFolderService;
952 @BeanReference(type = DLFolderPersistence.class)
953 protected DLFolderPersistence dlFolderPersistence;
954 @BeanReference(type = DLFolderFinder.class)
955 protected DLFolderFinder dlFolderFinder;
956 @BeanReference(type = DLSyncLocalService.class)
957 protected DLSyncLocalService dlSyncLocalService;
958 @BeanReference(type = DLSyncService.class)
959 protected DLSyncService dlSyncService;
960 @BeanReference(type = DLSyncPersistence.class)
961 protected DLSyncPersistence dlSyncPersistence;
962 @BeanReference(type = DLSyncFinder.class)
963 protected DLSyncFinder dlSyncFinder;
964 @BeanReference(type = CounterLocalService.class)
965 protected CounterLocalService counterLocalService;
966 @BeanReference(type = ResourceLocalService.class)
967 protected ResourceLocalService resourceLocalService;
968 @BeanReference(type = ResourceService.class)
969 protected ResourceService resourceService;
970 @BeanReference(type = ResourcePersistence.class)
971 protected ResourcePersistence resourcePersistence;
972 @BeanReference(type = ResourceFinder.class)
973 protected ResourceFinder resourceFinder;
974 @BeanReference(type = UserLocalService.class)
975 protected UserLocalService userLocalService;
976 @BeanReference(type = UserService.class)
977 protected UserService userService;
978 @BeanReference(type = UserPersistence.class)
979 protected UserPersistence userPersistence;
980 @BeanReference(type = UserFinder.class)
981 protected UserFinder userFinder;
982 private String _beanIdentifier;
983 }