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.RepositoryLocalService;
026 import com.liferay.portal.service.RepositoryService;
027 import com.liferay.portal.service.ResourceLocalService;
028 import com.liferay.portal.service.ResourceService;
029 import com.liferay.portal.service.UserLocalService;
030 import com.liferay.portal.service.UserService;
031 import com.liferay.portal.service.persistence.RepositoryPersistence;
032 import com.liferay.portal.service.persistence.ResourceFinder;
033 import com.liferay.portal.service.persistence.ResourcePersistence;
034 import com.liferay.portal.service.persistence.UserFinder;
035 import com.liferay.portal.service.persistence.UserPersistence;
036
037 import com.liferay.portlet.documentlibrary.model.DLSync;
038 import com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService;
039 import com.liferay.portlet.documentlibrary.service.DLAppLocalService;
040 import com.liferay.portlet.documentlibrary.service.DLAppService;
041 import com.liferay.portlet.documentlibrary.service.DLContentLocalService;
042 import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
043 import com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService;
044 import com.liferay.portlet.documentlibrary.service.DLFileEntryService;
045 import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService;
046 import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService;
047 import com.liferay.portlet.documentlibrary.service.DLFileRankLocalService;
048 import com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService;
049 import com.liferay.portlet.documentlibrary.service.DLFileShortcutService;
050 import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService;
051 import com.liferay.portlet.documentlibrary.service.DLFileVersionService;
052 import com.liferay.portlet.documentlibrary.service.DLFolderLocalService;
053 import com.liferay.portlet.documentlibrary.service.DLFolderService;
054 import com.liferay.portlet.documentlibrary.service.DLSyncLocalService;
055 import com.liferay.portlet.documentlibrary.service.DLSyncService;
056 import com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence;
057 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
058 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistence;
059 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
060 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
061 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
062 import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder;
063 import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
064 import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
065 import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
066 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
067 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
068 import com.liferay.portlet.documentlibrary.service.persistence.DLSyncFinder;
069 import com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence;
070
071 import javax.sql.DataSource;
072
073
085 public abstract class DLSyncServiceBaseImpl extends BaseServiceImpl
086 implements DLSyncService, IdentifiableBean {
087
092
093
098 public DLAppLocalService getDLAppLocalService() {
099 return dlAppLocalService;
100 }
101
102
107 public void setDLAppLocalService(DLAppLocalService dlAppLocalService) {
108 this.dlAppLocalService = dlAppLocalService;
109 }
110
111
116 public DLAppService getDLAppService() {
117 return dlAppService;
118 }
119
120
125 public void setDLAppService(DLAppService dlAppService) {
126 this.dlAppService = dlAppService;
127 }
128
129
134 public DLAppHelperLocalService getDLAppHelperLocalService() {
135 return dlAppHelperLocalService;
136 }
137
138
143 public void setDLAppHelperLocalService(
144 DLAppHelperLocalService dlAppHelperLocalService) {
145 this.dlAppHelperLocalService = dlAppHelperLocalService;
146 }
147
148
153 public DLContentLocalService getDLContentLocalService() {
154 return dlContentLocalService;
155 }
156
157
162 public void setDLContentLocalService(
163 DLContentLocalService dlContentLocalService) {
164 this.dlContentLocalService = dlContentLocalService;
165 }
166
167
172 public DLContentPersistence getDLContentPersistence() {
173 return dlContentPersistence;
174 }
175
176
181 public void setDLContentPersistence(
182 DLContentPersistence dlContentPersistence) {
183 this.dlContentPersistence = dlContentPersistence;
184 }
185
186
191 public DLFileEntryLocalService getDLFileEntryLocalService() {
192 return dlFileEntryLocalService;
193 }
194
195
200 public void setDLFileEntryLocalService(
201 DLFileEntryLocalService dlFileEntryLocalService) {
202 this.dlFileEntryLocalService = dlFileEntryLocalService;
203 }
204
205
210 public DLFileEntryService getDLFileEntryService() {
211 return dlFileEntryService;
212 }
213
214
219 public void setDLFileEntryService(DLFileEntryService dlFileEntryService) {
220 this.dlFileEntryService = dlFileEntryService;
221 }
222
223
228 public DLFileEntryPersistence getDLFileEntryPersistence() {
229 return dlFileEntryPersistence;
230 }
231
232
237 public void setDLFileEntryPersistence(
238 DLFileEntryPersistence dlFileEntryPersistence) {
239 this.dlFileEntryPersistence = dlFileEntryPersistence;
240 }
241
242
247 public DLFileEntryFinder getDLFileEntryFinder() {
248 return dlFileEntryFinder;
249 }
250
251
256 public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
257 this.dlFileEntryFinder = dlFileEntryFinder;
258 }
259
260
265 public DLFileEntryMetadataLocalService getDLFileEntryMetadataLocalService() {
266 return dlFileEntryMetadataLocalService;
267 }
268
269
274 public void setDLFileEntryMetadataLocalService(
275 DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService) {
276 this.dlFileEntryMetadataLocalService = dlFileEntryMetadataLocalService;
277 }
278
279
284 public DLFileEntryMetadataPersistence getDLFileEntryMetadataPersistence() {
285 return dlFileEntryMetadataPersistence;
286 }
287
288
293 public void setDLFileEntryMetadataPersistence(
294 DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence) {
295 this.dlFileEntryMetadataPersistence = dlFileEntryMetadataPersistence;
296 }
297
298
303 public DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
304 return dlFileEntryTypeLocalService;
305 }
306
307
312 public void setDLFileEntryTypeLocalService(
313 DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
314 this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
315 }
316
317
322 public DLFileEntryTypeService getDLFileEntryTypeService() {
323 return dlFileEntryTypeService;
324 }
325
326
331 public void setDLFileEntryTypeService(
332 DLFileEntryTypeService dlFileEntryTypeService) {
333 this.dlFileEntryTypeService = dlFileEntryTypeService;
334 }
335
336
341 public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
342 return dlFileEntryTypePersistence;
343 }
344
345
350 public void setDLFileEntryTypePersistence(
351 DLFileEntryTypePersistence dlFileEntryTypePersistence) {
352 this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
353 }
354
355
360 public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
361 return dlFileEntryTypeFinder;
362 }
363
364
369 public void setDLFileEntryTypeFinder(
370 DLFileEntryTypeFinder dlFileEntryTypeFinder) {
371 this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
372 }
373
374
379 public DLFileRankLocalService getDLFileRankLocalService() {
380 return dlFileRankLocalService;
381 }
382
383
388 public void setDLFileRankLocalService(
389 DLFileRankLocalService dlFileRankLocalService) {
390 this.dlFileRankLocalService = dlFileRankLocalService;
391 }
392
393
398 public DLFileRankPersistence getDLFileRankPersistence() {
399 return dlFileRankPersistence;
400 }
401
402
407 public void setDLFileRankPersistence(
408 DLFileRankPersistence dlFileRankPersistence) {
409 this.dlFileRankPersistence = dlFileRankPersistence;
410 }
411
412
417 public DLFileRankFinder getDLFileRankFinder() {
418 return dlFileRankFinder;
419 }
420
421
426 public void setDLFileRankFinder(DLFileRankFinder dlFileRankFinder) {
427 this.dlFileRankFinder = dlFileRankFinder;
428 }
429
430
435 public DLFileShortcutLocalService getDLFileShortcutLocalService() {
436 return dlFileShortcutLocalService;
437 }
438
439
444 public void setDLFileShortcutLocalService(
445 DLFileShortcutLocalService dlFileShortcutLocalService) {
446 this.dlFileShortcutLocalService = dlFileShortcutLocalService;
447 }
448
449
454 public DLFileShortcutService getDLFileShortcutService() {
455 return dlFileShortcutService;
456 }
457
458
463 public void setDLFileShortcutService(
464 DLFileShortcutService dlFileShortcutService) {
465 this.dlFileShortcutService = dlFileShortcutService;
466 }
467
468
473 public DLFileShortcutPersistence getDLFileShortcutPersistence() {
474 return dlFileShortcutPersistence;
475 }
476
477
482 public void setDLFileShortcutPersistence(
483 DLFileShortcutPersistence dlFileShortcutPersistence) {
484 this.dlFileShortcutPersistence = dlFileShortcutPersistence;
485 }
486
487
492 public DLFileVersionLocalService getDLFileVersionLocalService() {
493 return dlFileVersionLocalService;
494 }
495
496
501 public void setDLFileVersionLocalService(
502 DLFileVersionLocalService dlFileVersionLocalService) {
503 this.dlFileVersionLocalService = dlFileVersionLocalService;
504 }
505
506
511 public DLFileVersionService getDLFileVersionService() {
512 return dlFileVersionService;
513 }
514
515
520 public void setDLFileVersionService(
521 DLFileVersionService dlFileVersionService) {
522 this.dlFileVersionService = dlFileVersionService;
523 }
524
525
530 public DLFileVersionPersistence getDLFileVersionPersistence() {
531 return dlFileVersionPersistence;
532 }
533
534
539 public void setDLFileVersionPersistence(
540 DLFileVersionPersistence dlFileVersionPersistence) {
541 this.dlFileVersionPersistence = dlFileVersionPersistence;
542 }
543
544
549 public DLFolderLocalService getDLFolderLocalService() {
550 return dlFolderLocalService;
551 }
552
553
558 public void setDLFolderLocalService(
559 DLFolderLocalService dlFolderLocalService) {
560 this.dlFolderLocalService = dlFolderLocalService;
561 }
562
563
568 public DLFolderService getDLFolderService() {
569 return dlFolderService;
570 }
571
572
577 public void setDLFolderService(DLFolderService dlFolderService) {
578 this.dlFolderService = dlFolderService;
579 }
580
581
586 public DLFolderPersistence getDLFolderPersistence() {
587 return dlFolderPersistence;
588 }
589
590
595 public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
596 this.dlFolderPersistence = dlFolderPersistence;
597 }
598
599
604 public DLFolderFinder getDLFolderFinder() {
605 return dlFolderFinder;
606 }
607
608
613 public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
614 this.dlFolderFinder = dlFolderFinder;
615 }
616
617
622 public DLSyncLocalService getDLSyncLocalService() {
623 return dlSyncLocalService;
624 }
625
626
631 public void setDLSyncLocalService(DLSyncLocalService dlSyncLocalService) {
632 this.dlSyncLocalService = dlSyncLocalService;
633 }
634
635
640 public DLSyncService getDLSyncService() {
641 return dlSyncService;
642 }
643
644
649 public void setDLSyncService(DLSyncService dlSyncService) {
650 this.dlSyncService = dlSyncService;
651 }
652
653
658 public DLSyncPersistence getDLSyncPersistence() {
659 return dlSyncPersistence;
660 }
661
662
667 public void setDLSyncPersistence(DLSyncPersistence dlSyncPersistence) {
668 this.dlSyncPersistence = dlSyncPersistence;
669 }
670
671
676 public DLSyncFinder getDLSyncFinder() {
677 return dlSyncFinder;
678 }
679
680
685 public void setDLSyncFinder(DLSyncFinder dlSyncFinder) {
686 this.dlSyncFinder = dlSyncFinder;
687 }
688
689
694 public CounterLocalService getCounterLocalService() {
695 return counterLocalService;
696 }
697
698
703 public void setCounterLocalService(CounterLocalService counterLocalService) {
704 this.counterLocalService = counterLocalService;
705 }
706
707
712 public RepositoryLocalService getRepositoryLocalService() {
713 return repositoryLocalService;
714 }
715
716
721 public void setRepositoryLocalService(
722 RepositoryLocalService repositoryLocalService) {
723 this.repositoryLocalService = repositoryLocalService;
724 }
725
726
731 public RepositoryService getRepositoryService() {
732 return repositoryService;
733 }
734
735
740 public void setRepositoryService(RepositoryService repositoryService) {
741 this.repositoryService = repositoryService;
742 }
743
744
749 public RepositoryPersistence getRepositoryPersistence() {
750 return repositoryPersistence;
751 }
752
753
758 public void setRepositoryPersistence(
759 RepositoryPersistence repositoryPersistence) {
760 this.repositoryPersistence = repositoryPersistence;
761 }
762
763
768 public ResourceLocalService getResourceLocalService() {
769 return resourceLocalService;
770 }
771
772
777 public void setResourceLocalService(
778 ResourceLocalService resourceLocalService) {
779 this.resourceLocalService = resourceLocalService;
780 }
781
782
787 public ResourceService getResourceService() {
788 return resourceService;
789 }
790
791
796 public void setResourceService(ResourceService resourceService) {
797 this.resourceService = resourceService;
798 }
799
800
805 public ResourcePersistence getResourcePersistence() {
806 return resourcePersistence;
807 }
808
809
814 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
815 this.resourcePersistence = resourcePersistence;
816 }
817
818
823 public ResourceFinder getResourceFinder() {
824 return resourceFinder;
825 }
826
827
832 public void setResourceFinder(ResourceFinder resourceFinder) {
833 this.resourceFinder = resourceFinder;
834 }
835
836
841 public UserLocalService getUserLocalService() {
842 return userLocalService;
843 }
844
845
850 public void setUserLocalService(UserLocalService userLocalService) {
851 this.userLocalService = userLocalService;
852 }
853
854
859 public UserService getUserService() {
860 return userService;
861 }
862
863
868 public void setUserService(UserService userService) {
869 this.userService = userService;
870 }
871
872
877 public UserPersistence getUserPersistence() {
878 return userPersistence;
879 }
880
881
886 public void setUserPersistence(UserPersistence userPersistence) {
887 this.userPersistence = userPersistence;
888 }
889
890
895 public UserFinder getUserFinder() {
896 return userFinder;
897 }
898
899
904 public void setUserFinder(UserFinder userFinder) {
905 this.userFinder = userFinder;
906 }
907
908 public void afterPropertiesSet() {
909 }
910
911 public void destroy() {
912 }
913
914
919 public String getBeanIdentifier() {
920 return _beanIdentifier;
921 }
922
923
928 public void setBeanIdentifier(String beanIdentifier) {
929 _beanIdentifier = beanIdentifier;
930 }
931
932 protected Class<?> getModelClass() {
933 return DLSync.class;
934 }
935
936 protected String getModelClassName() {
937 return DLSync.class.getName();
938 }
939
940
945 protected void runSQL(String sql) throws SystemException {
946 try {
947 DataSource dataSource = dlSyncPersistence.getDataSource();
948
949 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
950 sql, new int[0]);
951
952 sqlUpdate.update();
953 }
954 catch (Exception e) {
955 throw new SystemException(e);
956 }
957 }
958
959 @BeanReference(type = DLAppLocalService.class)
960 protected DLAppLocalService dlAppLocalService;
961 @BeanReference(type = DLAppService.class)
962 protected DLAppService dlAppService;
963 @BeanReference(type = DLAppHelperLocalService.class)
964 protected DLAppHelperLocalService dlAppHelperLocalService;
965 @BeanReference(type = DLContentLocalService.class)
966 protected DLContentLocalService dlContentLocalService;
967 @BeanReference(type = DLContentPersistence.class)
968 protected DLContentPersistence dlContentPersistence;
969 @BeanReference(type = DLFileEntryLocalService.class)
970 protected DLFileEntryLocalService dlFileEntryLocalService;
971 @BeanReference(type = DLFileEntryService.class)
972 protected DLFileEntryService dlFileEntryService;
973 @BeanReference(type = DLFileEntryPersistence.class)
974 protected DLFileEntryPersistence dlFileEntryPersistence;
975 @BeanReference(type = DLFileEntryFinder.class)
976 protected DLFileEntryFinder dlFileEntryFinder;
977 @BeanReference(type = DLFileEntryMetadataLocalService.class)
978 protected DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService;
979 @BeanReference(type = DLFileEntryMetadataPersistence.class)
980 protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence;
981 @BeanReference(type = DLFileEntryTypeLocalService.class)
982 protected DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
983 @BeanReference(type = DLFileEntryTypeService.class)
984 protected DLFileEntryTypeService dlFileEntryTypeService;
985 @BeanReference(type = DLFileEntryTypePersistence.class)
986 protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
987 @BeanReference(type = DLFileEntryTypeFinder.class)
988 protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
989 @BeanReference(type = DLFileRankLocalService.class)
990 protected DLFileRankLocalService dlFileRankLocalService;
991 @BeanReference(type = DLFileRankPersistence.class)
992 protected DLFileRankPersistence dlFileRankPersistence;
993 @BeanReference(type = DLFileRankFinder.class)
994 protected DLFileRankFinder dlFileRankFinder;
995 @BeanReference(type = DLFileShortcutLocalService.class)
996 protected DLFileShortcutLocalService dlFileShortcutLocalService;
997 @BeanReference(type = DLFileShortcutService.class)
998 protected DLFileShortcutService dlFileShortcutService;
999 @BeanReference(type = DLFileShortcutPersistence.class)
1000 protected DLFileShortcutPersistence dlFileShortcutPersistence;
1001 @BeanReference(type = DLFileVersionLocalService.class)
1002 protected DLFileVersionLocalService dlFileVersionLocalService;
1003 @BeanReference(type = DLFileVersionService.class)
1004 protected DLFileVersionService dlFileVersionService;
1005 @BeanReference(type = DLFileVersionPersistence.class)
1006 protected DLFileVersionPersistence dlFileVersionPersistence;
1007 @BeanReference(type = DLFolderLocalService.class)
1008 protected DLFolderLocalService dlFolderLocalService;
1009 @BeanReference(type = DLFolderService.class)
1010 protected DLFolderService dlFolderService;
1011 @BeanReference(type = DLFolderPersistence.class)
1012 protected DLFolderPersistence dlFolderPersistence;
1013 @BeanReference(type = DLFolderFinder.class)
1014 protected DLFolderFinder dlFolderFinder;
1015 @BeanReference(type = DLSyncLocalService.class)
1016 protected DLSyncLocalService dlSyncLocalService;
1017 @BeanReference(type = DLSyncService.class)
1018 protected DLSyncService dlSyncService;
1019 @BeanReference(type = DLSyncPersistence.class)
1020 protected DLSyncPersistence dlSyncPersistence;
1021 @BeanReference(type = DLSyncFinder.class)
1022 protected DLSyncFinder dlSyncFinder;
1023 @BeanReference(type = CounterLocalService.class)
1024 protected CounterLocalService counterLocalService;
1025 @BeanReference(type = RepositoryLocalService.class)
1026 protected RepositoryLocalService repositoryLocalService;
1027 @BeanReference(type = RepositoryService.class)
1028 protected RepositoryService repositoryService;
1029 @BeanReference(type = RepositoryPersistence.class)
1030 protected RepositoryPersistence repositoryPersistence;
1031 @BeanReference(type = ResourceLocalService.class)
1032 protected ResourceLocalService resourceLocalService;
1033 @BeanReference(type = ResourceService.class)
1034 protected ResourceService resourceService;
1035 @BeanReference(type = ResourcePersistence.class)
1036 protected ResourcePersistence resourcePersistence;
1037 @BeanReference(type = ResourceFinder.class)
1038 protected ResourceFinder resourceFinder;
1039 @BeanReference(type = UserLocalService.class)
1040 protected UserLocalService userLocalService;
1041 @BeanReference(type = UserService.class)
1042 protected UserService userService;
1043 @BeanReference(type = UserPersistence.class)
1044 protected UserPersistence userPersistence;
1045 @BeanReference(type = UserFinder.class)
1046 protected UserFinder userFinder;
1047 private String _beanIdentifier;
1048 }