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.dao.orm.DynamicQuery;
023 import com.liferay.portal.kernel.exception.PortalException;
024 import com.liferay.portal.kernel.exception.SystemException;
025 import com.liferay.portal.kernel.util.OrderByComparator;
026 import com.liferay.portal.service.ResourceLocalService;
027 import com.liferay.portal.service.ResourceService;
028 import com.liferay.portal.service.UserLocalService;
029 import com.liferay.portal.service.UserService;
030 import com.liferay.portal.service.persistence.ResourceFinder;
031 import com.liferay.portal.service.persistence.ResourcePersistence;
032 import com.liferay.portal.service.persistence.UserFinder;
033 import com.liferay.portal.service.persistence.UserPersistence;
034
035 import com.liferay.portlet.asset.service.AssetEntryLocalService;
036 import com.liferay.portlet.asset.service.AssetEntryService;
037 import com.liferay.portlet.asset.service.AssetTagLocalService;
038 import com.liferay.portlet.asset.service.AssetTagService;
039 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
040 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
041 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
042 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
043 import com.liferay.portlet.documentlibrary.model.DLFileShortcut;
044 import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
045 import com.liferay.portlet.documentlibrary.service.DLFileEntryService;
046 import com.liferay.portlet.documentlibrary.service.DLFileRankLocalService;
047 import com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService;
048 import com.liferay.portlet.documentlibrary.service.DLFileShortcutService;
049 import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService;
050 import com.liferay.portlet.documentlibrary.service.DLFileVersionService;
051 import com.liferay.portlet.documentlibrary.service.DLFolderLocalService;
052 import com.liferay.portlet.documentlibrary.service.DLFolderService;
053 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
054 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
055 import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
056 import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
057 import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
058 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
059 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
060
061 import java.util.List;
062
063 import javax.sql.DataSource;
064
065
081 public abstract class DLFileShortcutLocalServiceBaseImpl
082 implements DLFileShortcutLocalService {
083
090 public DLFileShortcut addDLFileShortcut(DLFileShortcut dlFileShortcut)
091 throws SystemException {
092 dlFileShortcut.setNew(true);
093
094 return dlFileShortcutPersistence.update(dlFileShortcut, false);
095 }
096
097
103 public DLFileShortcut createDLFileShortcut(long fileShortcutId) {
104 return dlFileShortcutPersistence.create(fileShortcutId);
105 }
106
107
114 public void deleteDLFileShortcut(long fileShortcutId)
115 throws PortalException, SystemException {
116 dlFileShortcutPersistence.remove(fileShortcutId);
117 }
118
119
125 public void deleteDLFileShortcut(DLFileShortcut dlFileShortcut)
126 throws SystemException {
127 dlFileShortcutPersistence.remove(dlFileShortcut);
128 }
129
130
137 @SuppressWarnings("rawtypes")
138 public List dynamicQuery(DynamicQuery dynamicQuery)
139 throws SystemException {
140 return dlFileShortcutPersistence.findWithDynamicQuery(dynamicQuery);
141 }
142
143
156 @SuppressWarnings("rawtypes")
157 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
158 throws SystemException {
159 return dlFileShortcutPersistence.findWithDynamicQuery(dynamicQuery,
160 start, end);
161 }
162
163
177 @SuppressWarnings("rawtypes")
178 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
179 OrderByComparator orderByComparator) throws SystemException {
180 return dlFileShortcutPersistence.findWithDynamicQuery(dynamicQuery,
181 start, end, orderByComparator);
182 }
183
184
191 public long dynamicQueryCount(DynamicQuery dynamicQuery)
192 throws SystemException {
193 return dlFileShortcutPersistence.countWithDynamicQuery(dynamicQuery);
194 }
195
196
204 public DLFileShortcut getDLFileShortcut(long fileShortcutId)
205 throws PortalException, SystemException {
206 return dlFileShortcutPersistence.findByPrimaryKey(fileShortcutId);
207 }
208
209
218 public DLFileShortcut getDLFileShortcutByUuidAndGroupId(String uuid,
219 long groupId) throws PortalException, SystemException {
220 return dlFileShortcutPersistence.findByUUID_G(uuid, groupId);
221 }
222
223
235 public List<DLFileShortcut> getDLFileShortcuts(int start, int end)
236 throws SystemException {
237 return dlFileShortcutPersistence.findAll(start, end);
238 }
239
240
246 public int getDLFileShortcutsCount() throws SystemException {
247 return dlFileShortcutPersistence.countAll();
248 }
249
250
257 public DLFileShortcut updateDLFileShortcut(DLFileShortcut dlFileShortcut)
258 throws SystemException {
259 dlFileShortcut.setNew(false);
260
261 return dlFileShortcutPersistence.update(dlFileShortcut, true);
262 }
263
264
272 public DLFileShortcut updateDLFileShortcut(DLFileShortcut dlFileShortcut,
273 boolean merge) throws SystemException {
274 dlFileShortcut.setNew(false);
275
276 return dlFileShortcutPersistence.update(dlFileShortcut, merge);
277 }
278
279
284 public DLFileEntryLocalService getDLFileEntryLocalService() {
285 return dlFileEntryLocalService;
286 }
287
288
293 public void setDLFileEntryLocalService(
294 DLFileEntryLocalService dlFileEntryLocalService) {
295 this.dlFileEntryLocalService = dlFileEntryLocalService;
296 }
297
298
303 public DLFileEntryService getDLFileEntryService() {
304 return dlFileEntryService;
305 }
306
307
312 public void setDLFileEntryService(DLFileEntryService dlFileEntryService) {
313 this.dlFileEntryService = dlFileEntryService;
314 }
315
316
321 public DLFileEntryPersistence getDLFileEntryPersistence() {
322 return dlFileEntryPersistence;
323 }
324
325
330 public void setDLFileEntryPersistence(
331 DLFileEntryPersistence dlFileEntryPersistence) {
332 this.dlFileEntryPersistence = dlFileEntryPersistence;
333 }
334
335
340 public DLFileEntryFinder getDLFileEntryFinder() {
341 return dlFileEntryFinder;
342 }
343
344
349 public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
350 this.dlFileEntryFinder = dlFileEntryFinder;
351 }
352
353
358 public DLFileRankLocalService getDLFileRankLocalService() {
359 return dlFileRankLocalService;
360 }
361
362
367 public void setDLFileRankLocalService(
368 DLFileRankLocalService dlFileRankLocalService) {
369 this.dlFileRankLocalService = dlFileRankLocalService;
370 }
371
372
377 public DLFileRankPersistence getDLFileRankPersistence() {
378 return dlFileRankPersistence;
379 }
380
381
386 public void setDLFileRankPersistence(
387 DLFileRankPersistence dlFileRankPersistence) {
388 this.dlFileRankPersistence = dlFileRankPersistence;
389 }
390
391
396 public DLFileShortcutLocalService getDLFileShortcutLocalService() {
397 return dlFileShortcutLocalService;
398 }
399
400
405 public void setDLFileShortcutLocalService(
406 DLFileShortcutLocalService dlFileShortcutLocalService) {
407 this.dlFileShortcutLocalService = dlFileShortcutLocalService;
408 }
409
410
415 public DLFileShortcutService getDLFileShortcutService() {
416 return dlFileShortcutService;
417 }
418
419
424 public void setDLFileShortcutService(
425 DLFileShortcutService dlFileShortcutService) {
426 this.dlFileShortcutService = dlFileShortcutService;
427 }
428
429
434 public DLFileShortcutPersistence getDLFileShortcutPersistence() {
435 return dlFileShortcutPersistence;
436 }
437
438
443 public void setDLFileShortcutPersistence(
444 DLFileShortcutPersistence dlFileShortcutPersistence) {
445 this.dlFileShortcutPersistence = dlFileShortcutPersistence;
446 }
447
448
453 public DLFileVersionLocalService getDLFileVersionLocalService() {
454 return dlFileVersionLocalService;
455 }
456
457
462 public void setDLFileVersionLocalService(
463 DLFileVersionLocalService dlFileVersionLocalService) {
464 this.dlFileVersionLocalService = dlFileVersionLocalService;
465 }
466
467
472 public DLFileVersionService getDLFileVersionService() {
473 return dlFileVersionService;
474 }
475
476
481 public void setDLFileVersionService(
482 DLFileVersionService dlFileVersionService) {
483 this.dlFileVersionService = dlFileVersionService;
484 }
485
486
491 public DLFileVersionPersistence getDLFileVersionPersistence() {
492 return dlFileVersionPersistence;
493 }
494
495
500 public void setDLFileVersionPersistence(
501 DLFileVersionPersistence dlFileVersionPersistence) {
502 this.dlFileVersionPersistence = dlFileVersionPersistence;
503 }
504
505
510 public DLFolderLocalService getDLFolderLocalService() {
511 return dlFolderLocalService;
512 }
513
514
519 public void setDLFolderLocalService(
520 DLFolderLocalService dlFolderLocalService) {
521 this.dlFolderLocalService = dlFolderLocalService;
522 }
523
524
529 public DLFolderService getDLFolderService() {
530 return dlFolderService;
531 }
532
533
538 public void setDLFolderService(DLFolderService dlFolderService) {
539 this.dlFolderService = dlFolderService;
540 }
541
542
547 public DLFolderPersistence getDLFolderPersistence() {
548 return dlFolderPersistence;
549 }
550
551
556 public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
557 this.dlFolderPersistence = dlFolderPersistence;
558 }
559
560
565 public DLFolderFinder getDLFolderFinder() {
566 return dlFolderFinder;
567 }
568
569
574 public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
575 this.dlFolderFinder = dlFolderFinder;
576 }
577
578
583 public CounterLocalService getCounterLocalService() {
584 return counterLocalService;
585 }
586
587
592 public void setCounterLocalService(CounterLocalService counterLocalService) {
593 this.counterLocalService = counterLocalService;
594 }
595
596
601 public ResourceLocalService getResourceLocalService() {
602 return resourceLocalService;
603 }
604
605
610 public void setResourceLocalService(
611 ResourceLocalService resourceLocalService) {
612 this.resourceLocalService = resourceLocalService;
613 }
614
615
620 public ResourceService getResourceService() {
621 return resourceService;
622 }
623
624
629 public void setResourceService(ResourceService resourceService) {
630 this.resourceService = resourceService;
631 }
632
633
638 public ResourcePersistence getResourcePersistence() {
639 return resourcePersistence;
640 }
641
642
647 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
648 this.resourcePersistence = resourcePersistence;
649 }
650
651
656 public ResourceFinder getResourceFinder() {
657 return resourceFinder;
658 }
659
660
665 public void setResourceFinder(ResourceFinder resourceFinder) {
666 this.resourceFinder = resourceFinder;
667 }
668
669
674 public UserLocalService getUserLocalService() {
675 return userLocalService;
676 }
677
678
683 public void setUserLocalService(UserLocalService userLocalService) {
684 this.userLocalService = userLocalService;
685 }
686
687
692 public UserService getUserService() {
693 return userService;
694 }
695
696
701 public void setUserService(UserService userService) {
702 this.userService = userService;
703 }
704
705
710 public UserPersistence getUserPersistence() {
711 return userPersistence;
712 }
713
714
719 public void setUserPersistence(UserPersistence userPersistence) {
720 this.userPersistence = userPersistence;
721 }
722
723
728 public UserFinder getUserFinder() {
729 return userFinder;
730 }
731
732
737 public void setUserFinder(UserFinder userFinder) {
738 this.userFinder = userFinder;
739 }
740
741
746 public AssetEntryLocalService getAssetEntryLocalService() {
747 return assetEntryLocalService;
748 }
749
750
755 public void setAssetEntryLocalService(
756 AssetEntryLocalService assetEntryLocalService) {
757 this.assetEntryLocalService = assetEntryLocalService;
758 }
759
760
765 public AssetEntryService getAssetEntryService() {
766 return assetEntryService;
767 }
768
769
774 public void setAssetEntryService(AssetEntryService assetEntryService) {
775 this.assetEntryService = assetEntryService;
776 }
777
778
783 public AssetEntryPersistence getAssetEntryPersistence() {
784 return assetEntryPersistence;
785 }
786
787
792 public void setAssetEntryPersistence(
793 AssetEntryPersistence assetEntryPersistence) {
794 this.assetEntryPersistence = assetEntryPersistence;
795 }
796
797
802 public AssetEntryFinder getAssetEntryFinder() {
803 return assetEntryFinder;
804 }
805
806
811 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
812 this.assetEntryFinder = assetEntryFinder;
813 }
814
815
820 public AssetTagLocalService getAssetTagLocalService() {
821 return assetTagLocalService;
822 }
823
824
829 public void setAssetTagLocalService(
830 AssetTagLocalService assetTagLocalService) {
831 this.assetTagLocalService = assetTagLocalService;
832 }
833
834
839 public AssetTagService getAssetTagService() {
840 return assetTagService;
841 }
842
843
848 public void setAssetTagService(AssetTagService assetTagService) {
849 this.assetTagService = assetTagService;
850 }
851
852
857 public AssetTagPersistence getAssetTagPersistence() {
858 return assetTagPersistence;
859 }
860
861
866 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
867 this.assetTagPersistence = assetTagPersistence;
868 }
869
870
875 public AssetTagFinder getAssetTagFinder() {
876 return assetTagFinder;
877 }
878
879
884 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
885 this.assetTagFinder = assetTagFinder;
886 }
887
888
893 protected void runSQL(String sql) throws SystemException {
894 try {
895 DataSource dataSource = dlFileShortcutPersistence.getDataSource();
896
897 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
898 sql, new int[0]);
899
900 sqlUpdate.update();
901 }
902 catch (Exception e) {
903 throw new SystemException(e);
904 }
905 }
906
907 @BeanReference(type = DLFileEntryLocalService.class)
908 protected DLFileEntryLocalService dlFileEntryLocalService;
909 @BeanReference(type = DLFileEntryService.class)
910 protected DLFileEntryService dlFileEntryService;
911 @BeanReference(type = DLFileEntryPersistence.class)
912 protected DLFileEntryPersistence dlFileEntryPersistence;
913 @BeanReference(type = DLFileEntryFinder.class)
914 protected DLFileEntryFinder dlFileEntryFinder;
915 @BeanReference(type = DLFileRankLocalService.class)
916 protected DLFileRankLocalService dlFileRankLocalService;
917 @BeanReference(type = DLFileRankPersistence.class)
918 protected DLFileRankPersistence dlFileRankPersistence;
919 @BeanReference(type = DLFileShortcutLocalService.class)
920 protected DLFileShortcutLocalService dlFileShortcutLocalService;
921 @BeanReference(type = DLFileShortcutService.class)
922 protected DLFileShortcutService dlFileShortcutService;
923 @BeanReference(type = DLFileShortcutPersistence.class)
924 protected DLFileShortcutPersistence dlFileShortcutPersistence;
925 @BeanReference(type = DLFileVersionLocalService.class)
926 protected DLFileVersionLocalService dlFileVersionLocalService;
927 @BeanReference(type = DLFileVersionService.class)
928 protected DLFileVersionService dlFileVersionService;
929 @BeanReference(type = DLFileVersionPersistence.class)
930 protected DLFileVersionPersistence dlFileVersionPersistence;
931 @BeanReference(type = DLFolderLocalService.class)
932 protected DLFolderLocalService dlFolderLocalService;
933 @BeanReference(type = DLFolderService.class)
934 protected DLFolderService dlFolderService;
935 @BeanReference(type = DLFolderPersistence.class)
936 protected DLFolderPersistence dlFolderPersistence;
937 @BeanReference(type = DLFolderFinder.class)
938 protected DLFolderFinder dlFolderFinder;
939 @BeanReference(type = CounterLocalService.class)
940 protected CounterLocalService counterLocalService;
941 @BeanReference(type = ResourceLocalService.class)
942 protected ResourceLocalService resourceLocalService;
943 @BeanReference(type = ResourceService.class)
944 protected ResourceService resourceService;
945 @BeanReference(type = ResourcePersistence.class)
946 protected ResourcePersistence resourcePersistence;
947 @BeanReference(type = ResourceFinder.class)
948 protected ResourceFinder resourceFinder;
949 @BeanReference(type = UserLocalService.class)
950 protected UserLocalService userLocalService;
951 @BeanReference(type = UserService.class)
952 protected UserService userService;
953 @BeanReference(type = UserPersistence.class)
954 protected UserPersistence userPersistence;
955 @BeanReference(type = UserFinder.class)
956 protected UserFinder userFinder;
957 @BeanReference(type = AssetEntryLocalService.class)
958 protected AssetEntryLocalService assetEntryLocalService;
959 @BeanReference(type = AssetEntryService.class)
960 protected AssetEntryService assetEntryService;
961 @BeanReference(type = AssetEntryPersistence.class)
962 protected AssetEntryPersistence assetEntryPersistence;
963 @BeanReference(type = AssetEntryFinder.class)
964 protected AssetEntryFinder assetEntryFinder;
965 @BeanReference(type = AssetTagLocalService.class)
966 protected AssetTagLocalService assetTagLocalService;
967 @BeanReference(type = AssetTagService.class)
968 protected AssetTagService assetTagService;
969 @BeanReference(type = AssetTagPersistence.class)
970 protected AssetTagPersistence assetTagPersistence;
971 @BeanReference(type = AssetTagFinder.class)
972 protected AssetTagFinder assetTagFinder;
973 }