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.persistence.AssetEntryFinder;
036 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
037 import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
038 import com.liferay.portlet.documentlibrary.service.DLFileEntryService;
039 import com.liferay.portlet.documentlibrary.service.DLFileRankLocalService;
040 import com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService;
041 import com.liferay.portlet.documentlibrary.service.DLFileShortcutService;
042 import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService;
043 import com.liferay.portlet.documentlibrary.service.DLFileVersionService;
044 import com.liferay.portlet.documentlibrary.service.DLFolderLocalService;
045 import com.liferay.portlet.documentlibrary.service.DLFolderService;
046 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
047 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
048 import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
049 import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
050 import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
051 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
052 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
053
054 import javax.sql.DataSource;
055
056
072 public abstract class DLFileVersionServiceBaseImpl extends PrincipalBean
073 implements DLFileVersionService {
074
079 public DLFileEntryLocalService getDLFileEntryLocalService() {
080 return dlFileEntryLocalService;
081 }
082
083
088 public void setDLFileEntryLocalService(
089 DLFileEntryLocalService dlFileEntryLocalService) {
090 this.dlFileEntryLocalService = dlFileEntryLocalService;
091 }
092
093
098 public DLFileEntryService getDLFileEntryService() {
099 return dlFileEntryService;
100 }
101
102
107 public void setDLFileEntryService(DLFileEntryService dlFileEntryService) {
108 this.dlFileEntryService = dlFileEntryService;
109 }
110
111
116 public DLFileEntryPersistence getDLFileEntryPersistence() {
117 return dlFileEntryPersistence;
118 }
119
120
125 public void setDLFileEntryPersistence(
126 DLFileEntryPersistence dlFileEntryPersistence) {
127 this.dlFileEntryPersistence = dlFileEntryPersistence;
128 }
129
130
135 public DLFileEntryFinder getDLFileEntryFinder() {
136 return dlFileEntryFinder;
137 }
138
139
144 public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
145 this.dlFileEntryFinder = dlFileEntryFinder;
146 }
147
148
153 public DLFileRankLocalService getDLFileRankLocalService() {
154 return dlFileRankLocalService;
155 }
156
157
162 public void setDLFileRankLocalService(
163 DLFileRankLocalService dlFileRankLocalService) {
164 this.dlFileRankLocalService = dlFileRankLocalService;
165 }
166
167
172 public DLFileRankPersistence getDLFileRankPersistence() {
173 return dlFileRankPersistence;
174 }
175
176
181 public void setDLFileRankPersistence(
182 DLFileRankPersistence dlFileRankPersistence) {
183 this.dlFileRankPersistence = dlFileRankPersistence;
184 }
185
186
191 public DLFileShortcutLocalService getDLFileShortcutLocalService() {
192 return dlFileShortcutLocalService;
193 }
194
195
200 public void setDLFileShortcutLocalService(
201 DLFileShortcutLocalService dlFileShortcutLocalService) {
202 this.dlFileShortcutLocalService = dlFileShortcutLocalService;
203 }
204
205
210 public DLFileShortcutService getDLFileShortcutService() {
211 return dlFileShortcutService;
212 }
213
214
219 public void setDLFileShortcutService(
220 DLFileShortcutService dlFileShortcutService) {
221 this.dlFileShortcutService = dlFileShortcutService;
222 }
223
224
229 public DLFileShortcutPersistence getDLFileShortcutPersistence() {
230 return dlFileShortcutPersistence;
231 }
232
233
238 public void setDLFileShortcutPersistence(
239 DLFileShortcutPersistence dlFileShortcutPersistence) {
240 this.dlFileShortcutPersistence = dlFileShortcutPersistence;
241 }
242
243
248 public DLFileVersionLocalService getDLFileVersionLocalService() {
249 return dlFileVersionLocalService;
250 }
251
252
257 public void setDLFileVersionLocalService(
258 DLFileVersionLocalService dlFileVersionLocalService) {
259 this.dlFileVersionLocalService = dlFileVersionLocalService;
260 }
261
262
267 public DLFileVersionService getDLFileVersionService() {
268 return dlFileVersionService;
269 }
270
271
276 public void setDLFileVersionService(
277 DLFileVersionService dlFileVersionService) {
278 this.dlFileVersionService = dlFileVersionService;
279 }
280
281
286 public DLFileVersionPersistence getDLFileVersionPersistence() {
287 return dlFileVersionPersistence;
288 }
289
290
295 public void setDLFileVersionPersistence(
296 DLFileVersionPersistence dlFileVersionPersistence) {
297 this.dlFileVersionPersistence = dlFileVersionPersistence;
298 }
299
300
305 public DLFolderLocalService getDLFolderLocalService() {
306 return dlFolderLocalService;
307 }
308
309
314 public void setDLFolderLocalService(
315 DLFolderLocalService dlFolderLocalService) {
316 this.dlFolderLocalService = dlFolderLocalService;
317 }
318
319
324 public DLFolderService getDLFolderService() {
325 return dlFolderService;
326 }
327
328
333 public void setDLFolderService(DLFolderService dlFolderService) {
334 this.dlFolderService = dlFolderService;
335 }
336
337
342 public DLFolderPersistence getDLFolderPersistence() {
343 return dlFolderPersistence;
344 }
345
346
351 public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
352 this.dlFolderPersistence = dlFolderPersistence;
353 }
354
355
360 public DLFolderFinder getDLFolderFinder() {
361 return dlFolderFinder;
362 }
363
364
369 public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
370 this.dlFolderFinder = dlFolderFinder;
371 }
372
373
378 public CounterLocalService getCounterLocalService() {
379 return counterLocalService;
380 }
381
382
387 public void setCounterLocalService(CounterLocalService counterLocalService) {
388 this.counterLocalService = counterLocalService;
389 }
390
391
396 public ResourceLocalService getResourceLocalService() {
397 return resourceLocalService;
398 }
399
400
405 public void setResourceLocalService(
406 ResourceLocalService resourceLocalService) {
407 this.resourceLocalService = resourceLocalService;
408 }
409
410
415 public ResourceService getResourceService() {
416 return resourceService;
417 }
418
419
424 public void setResourceService(ResourceService resourceService) {
425 this.resourceService = resourceService;
426 }
427
428
433 public ResourcePersistence getResourcePersistence() {
434 return resourcePersistence;
435 }
436
437
442 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
443 this.resourcePersistence = resourcePersistence;
444 }
445
446
451 public ResourceFinder getResourceFinder() {
452 return resourceFinder;
453 }
454
455
460 public void setResourceFinder(ResourceFinder resourceFinder) {
461 this.resourceFinder = resourceFinder;
462 }
463
464
469 public UserLocalService getUserLocalService() {
470 return userLocalService;
471 }
472
473
478 public void setUserLocalService(UserLocalService userLocalService) {
479 this.userLocalService = userLocalService;
480 }
481
482
487 public UserService getUserService() {
488 return userService;
489 }
490
491
496 public void setUserService(UserService userService) {
497 this.userService = userService;
498 }
499
500
505 public UserPersistence getUserPersistence() {
506 return userPersistence;
507 }
508
509
514 public void setUserPersistence(UserPersistence userPersistence) {
515 this.userPersistence = userPersistence;
516 }
517
518
523 public UserFinder getUserFinder() {
524 return userFinder;
525 }
526
527
532 public void setUserFinder(UserFinder userFinder) {
533 this.userFinder = userFinder;
534 }
535
536
541 public AssetEntryLocalService getAssetEntryLocalService() {
542 return assetEntryLocalService;
543 }
544
545
550 public void setAssetEntryLocalService(
551 AssetEntryLocalService assetEntryLocalService) {
552 this.assetEntryLocalService = assetEntryLocalService;
553 }
554
555
560 public AssetEntryService getAssetEntryService() {
561 return assetEntryService;
562 }
563
564
569 public void setAssetEntryService(AssetEntryService assetEntryService) {
570 this.assetEntryService = assetEntryService;
571 }
572
573
578 public AssetEntryPersistence getAssetEntryPersistence() {
579 return assetEntryPersistence;
580 }
581
582
587 public void setAssetEntryPersistence(
588 AssetEntryPersistence assetEntryPersistence) {
589 this.assetEntryPersistence = assetEntryPersistence;
590 }
591
592
597 public AssetEntryFinder getAssetEntryFinder() {
598 return assetEntryFinder;
599 }
600
601
606 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
607 this.assetEntryFinder = assetEntryFinder;
608 }
609
610
615 protected void runSQL(String sql) throws SystemException {
616 try {
617 DataSource dataSource = dlFileVersionPersistence.getDataSource();
618
619 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
620 sql, new int[0]);
621
622 sqlUpdate.update();
623 }
624 catch (Exception e) {
625 throw new SystemException(e);
626 }
627 }
628
629 @BeanReference(type = DLFileEntryLocalService.class)
630 protected DLFileEntryLocalService dlFileEntryLocalService;
631 @BeanReference(type = DLFileEntryService.class)
632 protected DLFileEntryService dlFileEntryService;
633 @BeanReference(type = DLFileEntryPersistence.class)
634 protected DLFileEntryPersistence dlFileEntryPersistence;
635 @BeanReference(type = DLFileEntryFinder.class)
636 protected DLFileEntryFinder dlFileEntryFinder;
637 @BeanReference(type = DLFileRankLocalService.class)
638 protected DLFileRankLocalService dlFileRankLocalService;
639 @BeanReference(type = DLFileRankPersistence.class)
640 protected DLFileRankPersistence dlFileRankPersistence;
641 @BeanReference(type = DLFileShortcutLocalService.class)
642 protected DLFileShortcutLocalService dlFileShortcutLocalService;
643 @BeanReference(type = DLFileShortcutService.class)
644 protected DLFileShortcutService dlFileShortcutService;
645 @BeanReference(type = DLFileShortcutPersistence.class)
646 protected DLFileShortcutPersistence dlFileShortcutPersistence;
647 @BeanReference(type = DLFileVersionLocalService.class)
648 protected DLFileVersionLocalService dlFileVersionLocalService;
649 @BeanReference(type = DLFileVersionService.class)
650 protected DLFileVersionService dlFileVersionService;
651 @BeanReference(type = DLFileVersionPersistence.class)
652 protected DLFileVersionPersistence dlFileVersionPersistence;
653 @BeanReference(type = DLFolderLocalService.class)
654 protected DLFolderLocalService dlFolderLocalService;
655 @BeanReference(type = DLFolderService.class)
656 protected DLFolderService dlFolderService;
657 @BeanReference(type = DLFolderPersistence.class)
658 protected DLFolderPersistence dlFolderPersistence;
659 @BeanReference(type = DLFolderFinder.class)
660 protected DLFolderFinder dlFolderFinder;
661 @BeanReference(type = CounterLocalService.class)
662 protected CounterLocalService counterLocalService;
663 @BeanReference(type = ResourceLocalService.class)
664 protected ResourceLocalService resourceLocalService;
665 @BeanReference(type = ResourceService.class)
666 protected ResourceService resourceService;
667 @BeanReference(type = ResourcePersistence.class)
668 protected ResourcePersistence resourcePersistence;
669 @BeanReference(type = ResourceFinder.class)
670 protected ResourceFinder resourceFinder;
671 @BeanReference(type = UserLocalService.class)
672 protected UserLocalService userLocalService;
673 @BeanReference(type = UserService.class)
674 protected UserService userService;
675 @BeanReference(type = UserPersistence.class)
676 protected UserPersistence userPersistence;
677 @BeanReference(type = UserFinder.class)
678 protected UserFinder userFinder;
679 @BeanReference(type = AssetEntryLocalService.class)
680 protected AssetEntryLocalService assetEntryLocalService;
681 @BeanReference(type = AssetEntryService.class)
682 protected AssetEntryService assetEntryService;
683 @BeanReference(type = AssetEntryPersistence.class)
684 protected AssetEntryPersistence assetEntryPersistence;
685 @BeanReference(type = AssetEntryFinder.class)
686 protected AssetEntryFinder assetEntryFinder;
687 }