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.annotation.BeanReference;
020 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022 import com.liferay.portal.kernel.exception.SystemException;
023 import com.liferay.portal.service.ResourceLocalService;
024 import com.liferay.portal.service.ResourceService;
025 import com.liferay.portal.service.UserLocalService;
026 import com.liferay.portal.service.UserService;
027 import com.liferay.portal.service.base.PrincipalBean;
028 import com.liferay.portal.service.persistence.ResourceFinder;
029 import com.liferay.portal.service.persistence.ResourcePersistence;
030 import com.liferay.portal.service.persistence.UserFinder;
031 import com.liferay.portal.service.persistence.UserPersistence;
032
033 import com.liferay.portlet.asset.service.AssetEntryLocalService;
034 import com.liferay.portlet.asset.service.AssetEntryService;
035 import com.liferay.portlet.asset.service.AssetTagLocalService;
036 import com.liferay.portlet.asset.service.AssetTagService;
037 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
038 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
039 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
040 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
041 import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
042 import com.liferay.portlet.documentlibrary.service.DLFileEntryService;
043 import com.liferay.portlet.documentlibrary.service.DLFileRankLocalService;
044 import com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService;
045 import com.liferay.portlet.documentlibrary.service.DLFileShortcutService;
046 import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService;
047 import com.liferay.portlet.documentlibrary.service.DLFileVersionService;
048 import com.liferay.portlet.documentlibrary.service.DLFolderLocalService;
049 import com.liferay.portlet.documentlibrary.service.DLFolderService;
050 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
051 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
052 import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
053 import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
054 import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
055 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
056 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
057
058 import javax.sql.DataSource;
059
060
076 public abstract class DLFileShortcutServiceBaseImpl extends PrincipalBean
077 implements DLFileShortcutService {
078
083 public DLFileEntryLocalService getDLFileEntryLocalService() {
084 return dlFileEntryLocalService;
085 }
086
087
092 public void setDLFileEntryLocalService(
093 DLFileEntryLocalService dlFileEntryLocalService) {
094 this.dlFileEntryLocalService = dlFileEntryLocalService;
095 }
096
097
102 public DLFileEntryService getDLFileEntryService() {
103 return dlFileEntryService;
104 }
105
106
111 public void setDLFileEntryService(DLFileEntryService dlFileEntryService) {
112 this.dlFileEntryService = dlFileEntryService;
113 }
114
115
120 public DLFileEntryPersistence getDLFileEntryPersistence() {
121 return dlFileEntryPersistence;
122 }
123
124
129 public void setDLFileEntryPersistence(
130 DLFileEntryPersistence dlFileEntryPersistence) {
131 this.dlFileEntryPersistence = dlFileEntryPersistence;
132 }
133
134
139 public DLFileEntryFinder getDLFileEntryFinder() {
140 return dlFileEntryFinder;
141 }
142
143
148 public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
149 this.dlFileEntryFinder = dlFileEntryFinder;
150 }
151
152
157 public DLFileRankLocalService getDLFileRankLocalService() {
158 return dlFileRankLocalService;
159 }
160
161
166 public void setDLFileRankLocalService(
167 DLFileRankLocalService dlFileRankLocalService) {
168 this.dlFileRankLocalService = dlFileRankLocalService;
169 }
170
171
176 public DLFileRankPersistence getDLFileRankPersistence() {
177 return dlFileRankPersistence;
178 }
179
180
185 public void setDLFileRankPersistence(
186 DLFileRankPersistence dlFileRankPersistence) {
187 this.dlFileRankPersistence = dlFileRankPersistence;
188 }
189
190
195 public DLFileShortcutLocalService getDLFileShortcutLocalService() {
196 return dlFileShortcutLocalService;
197 }
198
199
204 public void setDLFileShortcutLocalService(
205 DLFileShortcutLocalService dlFileShortcutLocalService) {
206 this.dlFileShortcutLocalService = dlFileShortcutLocalService;
207 }
208
209
214 public DLFileShortcutService getDLFileShortcutService() {
215 return dlFileShortcutService;
216 }
217
218
223 public void setDLFileShortcutService(
224 DLFileShortcutService dlFileShortcutService) {
225 this.dlFileShortcutService = dlFileShortcutService;
226 }
227
228
233 public DLFileShortcutPersistence getDLFileShortcutPersistence() {
234 return dlFileShortcutPersistence;
235 }
236
237
242 public void setDLFileShortcutPersistence(
243 DLFileShortcutPersistence dlFileShortcutPersistence) {
244 this.dlFileShortcutPersistence = dlFileShortcutPersistence;
245 }
246
247
252 public DLFileVersionLocalService getDLFileVersionLocalService() {
253 return dlFileVersionLocalService;
254 }
255
256
261 public void setDLFileVersionLocalService(
262 DLFileVersionLocalService dlFileVersionLocalService) {
263 this.dlFileVersionLocalService = dlFileVersionLocalService;
264 }
265
266
271 public DLFileVersionService getDLFileVersionService() {
272 return dlFileVersionService;
273 }
274
275
280 public void setDLFileVersionService(
281 DLFileVersionService dlFileVersionService) {
282 this.dlFileVersionService = dlFileVersionService;
283 }
284
285
290 public DLFileVersionPersistence getDLFileVersionPersistence() {
291 return dlFileVersionPersistence;
292 }
293
294
299 public void setDLFileVersionPersistence(
300 DLFileVersionPersistence dlFileVersionPersistence) {
301 this.dlFileVersionPersistence = dlFileVersionPersistence;
302 }
303
304
309 public DLFolderLocalService getDLFolderLocalService() {
310 return dlFolderLocalService;
311 }
312
313
318 public void setDLFolderLocalService(
319 DLFolderLocalService dlFolderLocalService) {
320 this.dlFolderLocalService = dlFolderLocalService;
321 }
322
323
328 public DLFolderService getDLFolderService() {
329 return dlFolderService;
330 }
331
332
337 public void setDLFolderService(DLFolderService dlFolderService) {
338 this.dlFolderService = dlFolderService;
339 }
340
341
346 public DLFolderPersistence getDLFolderPersistence() {
347 return dlFolderPersistence;
348 }
349
350
355 public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
356 this.dlFolderPersistence = dlFolderPersistence;
357 }
358
359
364 public DLFolderFinder getDLFolderFinder() {
365 return dlFolderFinder;
366 }
367
368
373 public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
374 this.dlFolderFinder = dlFolderFinder;
375 }
376
377
382 public CounterLocalService getCounterLocalService() {
383 return counterLocalService;
384 }
385
386
391 public void setCounterLocalService(CounterLocalService counterLocalService) {
392 this.counterLocalService = counterLocalService;
393 }
394
395
400 public ResourceLocalService getResourceLocalService() {
401 return resourceLocalService;
402 }
403
404
409 public void setResourceLocalService(
410 ResourceLocalService resourceLocalService) {
411 this.resourceLocalService = resourceLocalService;
412 }
413
414
419 public ResourceService getResourceService() {
420 return resourceService;
421 }
422
423
428 public void setResourceService(ResourceService resourceService) {
429 this.resourceService = resourceService;
430 }
431
432
437 public ResourcePersistence getResourcePersistence() {
438 return resourcePersistence;
439 }
440
441
446 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
447 this.resourcePersistence = resourcePersistence;
448 }
449
450
455 public ResourceFinder getResourceFinder() {
456 return resourceFinder;
457 }
458
459
464 public void setResourceFinder(ResourceFinder resourceFinder) {
465 this.resourceFinder = resourceFinder;
466 }
467
468
473 public UserLocalService getUserLocalService() {
474 return userLocalService;
475 }
476
477
482 public void setUserLocalService(UserLocalService userLocalService) {
483 this.userLocalService = userLocalService;
484 }
485
486
491 public UserService getUserService() {
492 return userService;
493 }
494
495
500 public void setUserService(UserService userService) {
501 this.userService = userService;
502 }
503
504
509 public UserPersistence getUserPersistence() {
510 return userPersistence;
511 }
512
513
518 public void setUserPersistence(UserPersistence userPersistence) {
519 this.userPersistence = userPersistence;
520 }
521
522
527 public UserFinder getUserFinder() {
528 return userFinder;
529 }
530
531
536 public void setUserFinder(UserFinder userFinder) {
537 this.userFinder = userFinder;
538 }
539
540
545 public AssetEntryLocalService getAssetEntryLocalService() {
546 return assetEntryLocalService;
547 }
548
549
554 public void setAssetEntryLocalService(
555 AssetEntryLocalService assetEntryLocalService) {
556 this.assetEntryLocalService = assetEntryLocalService;
557 }
558
559
564 public AssetEntryService getAssetEntryService() {
565 return assetEntryService;
566 }
567
568
573 public void setAssetEntryService(AssetEntryService assetEntryService) {
574 this.assetEntryService = assetEntryService;
575 }
576
577
582 public AssetEntryPersistence getAssetEntryPersistence() {
583 return assetEntryPersistence;
584 }
585
586
591 public void setAssetEntryPersistence(
592 AssetEntryPersistence assetEntryPersistence) {
593 this.assetEntryPersistence = assetEntryPersistence;
594 }
595
596
601 public AssetEntryFinder getAssetEntryFinder() {
602 return assetEntryFinder;
603 }
604
605
610 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
611 this.assetEntryFinder = assetEntryFinder;
612 }
613
614
619 public AssetTagLocalService getAssetTagLocalService() {
620 return assetTagLocalService;
621 }
622
623
628 public void setAssetTagLocalService(
629 AssetTagLocalService assetTagLocalService) {
630 this.assetTagLocalService = assetTagLocalService;
631 }
632
633
638 public AssetTagService getAssetTagService() {
639 return assetTagService;
640 }
641
642
647 public void setAssetTagService(AssetTagService assetTagService) {
648 this.assetTagService = assetTagService;
649 }
650
651
656 public AssetTagPersistence getAssetTagPersistence() {
657 return assetTagPersistence;
658 }
659
660
665 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
666 this.assetTagPersistence = assetTagPersistence;
667 }
668
669
674 public AssetTagFinder getAssetTagFinder() {
675 return assetTagFinder;
676 }
677
678
683 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
684 this.assetTagFinder = assetTagFinder;
685 }
686
687
692 protected void runSQL(String sql) throws SystemException {
693 try {
694 DataSource dataSource = dlFileShortcutPersistence.getDataSource();
695
696 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
697 sql, new int[0]);
698
699 sqlUpdate.update();
700 }
701 catch (Exception e) {
702 throw new SystemException(e);
703 }
704 }
705
706 @BeanReference(type = DLFileEntryLocalService.class)
707 protected DLFileEntryLocalService dlFileEntryLocalService;
708 @BeanReference(type = DLFileEntryService.class)
709 protected DLFileEntryService dlFileEntryService;
710 @BeanReference(type = DLFileEntryPersistence.class)
711 protected DLFileEntryPersistence dlFileEntryPersistence;
712 @BeanReference(type = DLFileEntryFinder.class)
713 protected DLFileEntryFinder dlFileEntryFinder;
714 @BeanReference(type = DLFileRankLocalService.class)
715 protected DLFileRankLocalService dlFileRankLocalService;
716 @BeanReference(type = DLFileRankPersistence.class)
717 protected DLFileRankPersistence dlFileRankPersistence;
718 @BeanReference(type = DLFileShortcutLocalService.class)
719 protected DLFileShortcutLocalService dlFileShortcutLocalService;
720 @BeanReference(type = DLFileShortcutService.class)
721 protected DLFileShortcutService dlFileShortcutService;
722 @BeanReference(type = DLFileShortcutPersistence.class)
723 protected DLFileShortcutPersistence dlFileShortcutPersistence;
724 @BeanReference(type = DLFileVersionLocalService.class)
725 protected DLFileVersionLocalService dlFileVersionLocalService;
726 @BeanReference(type = DLFileVersionService.class)
727 protected DLFileVersionService dlFileVersionService;
728 @BeanReference(type = DLFileVersionPersistence.class)
729 protected DLFileVersionPersistence dlFileVersionPersistence;
730 @BeanReference(type = DLFolderLocalService.class)
731 protected DLFolderLocalService dlFolderLocalService;
732 @BeanReference(type = DLFolderService.class)
733 protected DLFolderService dlFolderService;
734 @BeanReference(type = DLFolderPersistence.class)
735 protected DLFolderPersistence dlFolderPersistence;
736 @BeanReference(type = DLFolderFinder.class)
737 protected DLFolderFinder dlFolderFinder;
738 @BeanReference(type = CounterLocalService.class)
739 protected CounterLocalService counterLocalService;
740 @BeanReference(type = ResourceLocalService.class)
741 protected ResourceLocalService resourceLocalService;
742 @BeanReference(type = ResourceService.class)
743 protected ResourceService resourceService;
744 @BeanReference(type = ResourcePersistence.class)
745 protected ResourcePersistence resourcePersistence;
746 @BeanReference(type = ResourceFinder.class)
747 protected ResourceFinder resourceFinder;
748 @BeanReference(type = UserLocalService.class)
749 protected UserLocalService userLocalService;
750 @BeanReference(type = UserService.class)
751 protected UserService userService;
752 @BeanReference(type = UserPersistence.class)
753 protected UserPersistence userPersistence;
754 @BeanReference(type = UserFinder.class)
755 protected UserFinder userFinder;
756 @BeanReference(type = AssetEntryLocalService.class)
757 protected AssetEntryLocalService assetEntryLocalService;
758 @BeanReference(type = AssetEntryService.class)
759 protected AssetEntryService assetEntryService;
760 @BeanReference(type = AssetEntryPersistence.class)
761 protected AssetEntryPersistence assetEntryPersistence;
762 @BeanReference(type = AssetEntryFinder.class)
763 protected AssetEntryFinder assetEntryFinder;
764 @BeanReference(type = AssetTagLocalService.class)
765 protected AssetTagLocalService assetTagLocalService;
766 @BeanReference(type = AssetTagService.class)
767 protected AssetTagService assetTagService;
768 @BeanReference(type = AssetTagPersistence.class)
769 protected AssetTagPersistence assetTagPersistence;
770 @BeanReference(type = AssetTagFinder.class)
771 protected AssetTagFinder assetTagFinder;
772 }