001
014
015 package com.liferay.portlet.documentlibrary.service.base;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.asset.kernel.service.persistence.AssetCategoryFinder;
020 import com.liferay.asset.kernel.service.persistence.AssetCategoryPersistence;
021 import com.liferay.asset.kernel.service.persistence.AssetEntryFinder;
022 import com.liferay.asset.kernel.service.persistence.AssetEntryPersistence;
023 import com.liferay.asset.kernel.service.persistence.AssetLinkPersistence;
024 import com.liferay.asset.kernel.service.persistence.AssetTagFinder;
025 import com.liferay.asset.kernel.service.persistence.AssetTagPersistence;
026
027 import com.liferay.document.library.kernel.model.DLFileEntry;
028 import com.liferay.document.library.kernel.service.DLFileEntryLocalService;
029 import com.liferay.document.library.kernel.service.persistence.DLFileEntryFinder;
030 import com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataFinder;
031 import com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence;
032 import com.liferay.document.library.kernel.service.persistence.DLFileEntryPersistence;
033 import com.liferay.document.library.kernel.service.persistence.DLFileEntryTypeFinder;
034 import com.liferay.document.library.kernel.service.persistence.DLFileEntryTypePersistence;
035 import com.liferay.document.library.kernel.service.persistence.DLFileVersionPersistence;
036 import com.liferay.document.library.kernel.service.persistence.DLFolderFinder;
037 import com.liferay.document.library.kernel.service.persistence.DLFolderPersistence;
038
039 import com.liferay.expando.kernel.service.persistence.ExpandoRowPersistence;
040 import com.liferay.expando.kernel.service.persistence.ExpandoTablePersistence;
041
042 import com.liferay.exportimport.kernel.lar.ExportImportHelperUtil;
043 import com.liferay.exportimport.kernel.lar.ManifestSummary;
044 import com.liferay.exportimport.kernel.lar.PortletDataContext;
045 import com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil;
046 import com.liferay.exportimport.kernel.lar.StagedModelType;
047
048 import com.liferay.portal.kernel.bean.BeanReference;
049 import com.liferay.portal.kernel.dao.db.DB;
050 import com.liferay.portal.kernel.dao.db.DBManagerUtil;
051 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
052 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
053 import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
054 import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
055 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
056 import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
057 import com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery;
058 import com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery;
059 import com.liferay.portal.kernel.dao.orm.Projection;
060 import com.liferay.portal.kernel.dao.orm.Property;
061 import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil;
062 import com.liferay.portal.kernel.exception.PortalException;
063 import com.liferay.portal.kernel.exception.SystemException;
064 import com.liferay.portal.kernel.model.PersistedModel;
065 import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
066 import com.liferay.portal.kernel.search.Indexable;
067 import com.liferay.portal.kernel.search.IndexableType;
068 import com.liferay.portal.kernel.service.BaseLocalServiceImpl;
069 import com.liferay.portal.kernel.service.PersistedModelLocalServiceRegistry;
070 import com.liferay.portal.kernel.service.persistence.ClassNamePersistence;
071 import com.liferay.portal.kernel.service.persistence.GroupFinder;
072 import com.liferay.portal.kernel.service.persistence.GroupPersistence;
073 import com.liferay.portal.kernel.service.persistence.ImagePersistence;
074 import com.liferay.portal.kernel.service.persistence.RepositoryPersistence;
075 import com.liferay.portal.kernel.service.persistence.UserFinder;
076 import com.liferay.portal.kernel.service.persistence.UserPersistence;
077 import com.liferay.portal.kernel.service.persistence.WebDAVPropsPersistence;
078 import com.liferay.portal.kernel.service.persistence.WorkflowInstanceLinkPersistence;
079 import com.liferay.portal.kernel.util.OrderByComparator;
080 import com.liferay.portal.kernel.util.PortalUtil;
081
082 import com.liferay.ratings.kernel.service.persistence.RatingsStatsFinder;
083 import com.liferay.ratings.kernel.service.persistence.RatingsStatsPersistence;
084
085 import com.liferay.trash.kernel.service.persistence.TrashEntryPersistence;
086
087 import java.io.Serializable;
088
089 import java.util.List;
090
091 import javax.sql.DataSource;
092
093
105 @ProviderType
106 public abstract class DLFileEntryLocalServiceBaseImpl
107 extends BaseLocalServiceImpl implements DLFileEntryLocalService,
108 IdentifiableOSGiService {
109
114
115
121 @Indexable(type = IndexableType.REINDEX)
122 @Override
123 public DLFileEntry addDLFileEntry(DLFileEntry dlFileEntry) {
124 dlFileEntry.setNew(true);
125
126 return dlFileEntryPersistence.update(dlFileEntry);
127 }
128
129
135 @Override
136 public DLFileEntry createDLFileEntry(long fileEntryId) {
137 return dlFileEntryPersistence.create(fileEntryId);
138 }
139
140
147 @Indexable(type = IndexableType.DELETE)
148 @Override
149 public DLFileEntry deleteDLFileEntry(long fileEntryId)
150 throws PortalException {
151 return dlFileEntryPersistence.remove(fileEntryId);
152 }
153
154
160 @Indexable(type = IndexableType.DELETE)
161 @Override
162 public DLFileEntry deleteDLFileEntry(DLFileEntry dlFileEntry) {
163 return dlFileEntryPersistence.remove(dlFileEntry);
164 }
165
166 @Override
167 public DynamicQuery dynamicQuery() {
168 Class<?> clazz = getClass();
169
170 return DynamicQueryFactoryUtil.forClass(DLFileEntry.class,
171 clazz.getClassLoader());
172 }
173
174
180 @Override
181 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
182 return dlFileEntryPersistence.findWithDynamicQuery(dynamicQuery);
183 }
184
185
197 @Override
198 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
199 int end) {
200 return dlFileEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
201 end);
202 }
203
204
217 @Override
218 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
219 int end, OrderByComparator<T> orderByComparator) {
220 return dlFileEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
221 end, orderByComparator);
222 }
223
224
230 @Override
231 public long dynamicQueryCount(DynamicQuery dynamicQuery) {
232 return dlFileEntryPersistence.countWithDynamicQuery(dynamicQuery);
233 }
234
235
242 @Override
243 public long dynamicQueryCount(DynamicQuery dynamicQuery,
244 Projection projection) {
245 return dlFileEntryPersistence.countWithDynamicQuery(dynamicQuery,
246 projection);
247 }
248
249 @Override
250 public DLFileEntry fetchDLFileEntry(long fileEntryId) {
251 return dlFileEntryPersistence.fetchByPrimaryKey(fileEntryId);
252 }
253
254
261 @Override
262 public DLFileEntry fetchDLFileEntryByUuidAndGroupId(String uuid,
263 long groupId) {
264 return dlFileEntryPersistence.fetchByUUID_G(uuid, groupId);
265 }
266
267
274 @Override
275 public DLFileEntry getDLFileEntry(long fileEntryId)
276 throws PortalException {
277 return dlFileEntryPersistence.findByPrimaryKey(fileEntryId);
278 }
279
280 @Override
281 public ActionableDynamicQuery getActionableDynamicQuery() {
282 ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
283
284 actionableDynamicQuery.setBaseLocalService(dlFileEntryLocalService);
285 actionableDynamicQuery.setClassLoader(getClassLoader());
286 actionableDynamicQuery.setModelClass(DLFileEntry.class);
287
288 actionableDynamicQuery.setPrimaryKeyPropertyName("fileEntryId");
289
290 return actionableDynamicQuery;
291 }
292
293 @Override
294 public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
295 IndexableActionableDynamicQuery indexableActionableDynamicQuery = new IndexableActionableDynamicQuery();
296
297 indexableActionableDynamicQuery.setBaseLocalService(dlFileEntryLocalService);
298 indexableActionableDynamicQuery.setClassLoader(getClassLoader());
299 indexableActionableDynamicQuery.setModelClass(DLFileEntry.class);
300
301 indexableActionableDynamicQuery.setPrimaryKeyPropertyName("fileEntryId");
302
303 return indexableActionableDynamicQuery;
304 }
305
306 protected void initActionableDynamicQuery(
307 ActionableDynamicQuery actionableDynamicQuery) {
308 actionableDynamicQuery.setBaseLocalService(dlFileEntryLocalService);
309 actionableDynamicQuery.setClassLoader(getClassLoader());
310 actionableDynamicQuery.setModelClass(DLFileEntry.class);
311
312 actionableDynamicQuery.setPrimaryKeyPropertyName("fileEntryId");
313 }
314
315 @Override
316 public ExportActionableDynamicQuery getExportActionableDynamicQuery(
317 final PortletDataContext portletDataContext) {
318 final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
319 @Override
320 public long performCount() throws PortalException {
321 ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
322
323 StagedModelType stagedModelType = getStagedModelType();
324
325 long modelAdditionCount = super.performCount();
326
327 manifestSummary.addModelAdditionCount(stagedModelType,
328 modelAdditionCount);
329
330 long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
331 stagedModelType);
332
333 manifestSummary.addModelDeletionCount(stagedModelType,
334 modelDeletionCount);
335
336 return modelAdditionCount;
337 }
338 };
339
340 initActionableDynamicQuery(exportActionableDynamicQuery);
341
342 exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
343 @Override
344 public void addCriteria(DynamicQuery dynamicQuery) {
345 portletDataContext.addDateRangeCriteria(dynamicQuery,
346 "modifiedDate");
347
348 StagedModelType stagedModelType = exportActionableDynamicQuery.getStagedModelType();
349
350 long referrerClassNameId = stagedModelType.getReferrerClassNameId();
351
352 Property classNameIdProperty = PropertyFactoryUtil.forName(
353 "classNameId");
354
355 if ((referrerClassNameId != StagedModelType.REFERRER_CLASS_NAME_ID_ALL) &&
356 (referrerClassNameId != StagedModelType.REFERRER_CLASS_NAME_ID_ANY)) {
357 dynamicQuery.add(classNameIdProperty.eq(
358 stagedModelType.getReferrerClassNameId()));
359 }
360 else if (referrerClassNameId == StagedModelType.REFERRER_CLASS_NAME_ID_ANY) {
361 dynamicQuery.add(classNameIdProperty.isNotNull());
362 }
363 }
364 });
365
366 exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
367
368 exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());
369
370 exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod<DLFileEntry>() {
371 @Override
372 public void performAction(DLFileEntry dlFileEntry)
373 throws PortalException {
374 StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
375 dlFileEntry);
376 }
377 });
378 exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
379 PortalUtil.getClassNameId(DLFileEntry.class.getName()),
380 StagedModelType.REFERRER_CLASS_NAME_ID_ALL));
381
382 return exportActionableDynamicQuery;
383 }
384
385
388 @Override
389 public PersistedModel deletePersistedModel(PersistedModel persistedModel)
390 throws PortalException {
391 return dlFileEntryLocalService.deleteDLFileEntry((DLFileEntry)persistedModel);
392 }
393
394 @Override
395 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
396 throws PortalException {
397 return dlFileEntryPersistence.findByPrimaryKey(primaryKeyObj);
398 }
399
400
407 @Override
408 public List<DLFileEntry> getDLFileEntriesByUuidAndCompanyId(String uuid,
409 long companyId) {
410 return dlFileEntryPersistence.findByUuid_C(uuid, companyId);
411 }
412
413
423 @Override
424 public List<DLFileEntry> getDLFileEntriesByUuidAndCompanyId(String uuid,
425 long companyId, int start, int end,
426 OrderByComparator<DLFileEntry> orderByComparator) {
427 return dlFileEntryPersistence.findByUuid_C(uuid, companyId, start, end,
428 orderByComparator);
429 }
430
431
439 @Override
440 public DLFileEntry getDLFileEntryByUuidAndGroupId(String uuid, long groupId)
441 throws PortalException {
442 return dlFileEntryPersistence.findByUUID_G(uuid, groupId);
443 }
444
445
456 @Override
457 public List<DLFileEntry> getDLFileEntries(int start, int end) {
458 return dlFileEntryPersistence.findAll(start, end);
459 }
460
461
466 @Override
467 public int getDLFileEntriesCount() {
468 return dlFileEntryPersistence.countAll();
469 }
470
471
477 @Indexable(type = IndexableType.REINDEX)
478 @Override
479 public DLFileEntry updateDLFileEntry(DLFileEntry dlFileEntry) {
480 return dlFileEntryPersistence.update(dlFileEntry);
481 }
482
483
488 public DLFileEntryLocalService getDLFileEntryLocalService() {
489 return dlFileEntryLocalService;
490 }
491
492
497 public void setDLFileEntryLocalService(
498 DLFileEntryLocalService dlFileEntryLocalService) {
499 this.dlFileEntryLocalService = dlFileEntryLocalService;
500 }
501
502
507 public DLFileEntryPersistence getDLFileEntryPersistence() {
508 return dlFileEntryPersistence;
509 }
510
511
516 public void setDLFileEntryPersistence(
517 DLFileEntryPersistence dlFileEntryPersistence) {
518 this.dlFileEntryPersistence = dlFileEntryPersistence;
519 }
520
521
526 public DLFileEntryFinder getDLFileEntryFinder() {
527 return dlFileEntryFinder;
528 }
529
530
535 public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
536 this.dlFileEntryFinder = dlFileEntryFinder;
537 }
538
539
544 public com.liferay.counter.kernel.service.CounterLocalService getCounterLocalService() {
545 return counterLocalService;
546 }
547
548
553 public void setCounterLocalService(
554 com.liferay.counter.kernel.service.CounterLocalService counterLocalService) {
555 this.counterLocalService = counterLocalService;
556 }
557
558
563 public com.liferay.portal.kernel.service.ClassNameLocalService getClassNameLocalService() {
564 return classNameLocalService;
565 }
566
567
572 public void setClassNameLocalService(
573 com.liferay.portal.kernel.service.ClassNameLocalService classNameLocalService) {
574 this.classNameLocalService = classNameLocalService;
575 }
576
577
582 public ClassNamePersistence getClassNamePersistence() {
583 return classNamePersistence;
584 }
585
586
591 public void setClassNamePersistence(
592 ClassNamePersistence classNamePersistence) {
593 this.classNamePersistence = classNamePersistence;
594 }
595
596
601 public com.liferay.portal.kernel.service.GroupLocalService getGroupLocalService() {
602 return groupLocalService;
603 }
604
605
610 public void setGroupLocalService(
611 com.liferay.portal.kernel.service.GroupLocalService groupLocalService) {
612 this.groupLocalService = groupLocalService;
613 }
614
615
620 public GroupPersistence getGroupPersistence() {
621 return groupPersistence;
622 }
623
624
629 public void setGroupPersistence(GroupPersistence groupPersistence) {
630 this.groupPersistence = groupPersistence;
631 }
632
633
638 public GroupFinder getGroupFinder() {
639 return groupFinder;
640 }
641
642
647 public void setGroupFinder(GroupFinder groupFinder) {
648 this.groupFinder = groupFinder;
649 }
650
651
656 public com.liferay.portal.kernel.service.ImageLocalService getImageLocalService() {
657 return imageLocalService;
658 }
659
660
665 public void setImageLocalService(
666 com.liferay.portal.kernel.service.ImageLocalService imageLocalService) {
667 this.imageLocalService = imageLocalService;
668 }
669
670
675 public ImagePersistence getImagePersistence() {
676 return imagePersistence;
677 }
678
679
684 public void setImagePersistence(ImagePersistence imagePersistence) {
685 this.imagePersistence = imagePersistence;
686 }
687
688
693 public com.liferay.portal.kernel.service.RepositoryLocalService getRepositoryLocalService() {
694 return repositoryLocalService;
695 }
696
697
702 public void setRepositoryLocalService(
703 com.liferay.portal.kernel.service.RepositoryLocalService repositoryLocalService) {
704 this.repositoryLocalService = repositoryLocalService;
705 }
706
707
712 public RepositoryPersistence getRepositoryPersistence() {
713 return repositoryPersistence;
714 }
715
716
721 public void setRepositoryPersistence(
722 RepositoryPersistence repositoryPersistence) {
723 this.repositoryPersistence = repositoryPersistence;
724 }
725
726
731 public com.liferay.portal.kernel.service.ResourceLocalService getResourceLocalService() {
732 return resourceLocalService;
733 }
734
735
740 public void setResourceLocalService(
741 com.liferay.portal.kernel.service.ResourceLocalService resourceLocalService) {
742 this.resourceLocalService = resourceLocalService;
743 }
744
745
750 public com.liferay.portal.kernel.service.UserLocalService getUserLocalService() {
751 return userLocalService;
752 }
753
754
759 public void setUserLocalService(
760 com.liferay.portal.kernel.service.UserLocalService userLocalService) {
761 this.userLocalService = userLocalService;
762 }
763
764
769 public UserPersistence getUserPersistence() {
770 return userPersistence;
771 }
772
773
778 public void setUserPersistence(UserPersistence userPersistence) {
779 this.userPersistence = userPersistence;
780 }
781
782
787 public UserFinder getUserFinder() {
788 return userFinder;
789 }
790
791
796 public void setUserFinder(UserFinder userFinder) {
797 this.userFinder = userFinder;
798 }
799
800
805 public com.liferay.portal.kernel.service.WebDAVPropsLocalService getWebDAVPropsLocalService() {
806 return webDAVPropsLocalService;
807 }
808
809
814 public void setWebDAVPropsLocalService(
815 com.liferay.portal.kernel.service.WebDAVPropsLocalService webDAVPropsLocalService) {
816 this.webDAVPropsLocalService = webDAVPropsLocalService;
817 }
818
819
824 public WebDAVPropsPersistence getWebDAVPropsPersistence() {
825 return webDAVPropsPersistence;
826 }
827
828
833 public void setWebDAVPropsPersistence(
834 WebDAVPropsPersistence webDAVPropsPersistence) {
835 this.webDAVPropsPersistence = webDAVPropsPersistence;
836 }
837
838
843 public com.liferay.portal.kernel.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
844 return workflowInstanceLinkLocalService;
845 }
846
847
852 public void setWorkflowInstanceLinkLocalService(
853 com.liferay.portal.kernel.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
854 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
855 }
856
857
862 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
863 return workflowInstanceLinkPersistence;
864 }
865
866
871 public void setWorkflowInstanceLinkPersistence(
872 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
873 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
874 }
875
876
881 public com.liferay.asset.kernel.service.AssetCategoryLocalService getAssetCategoryLocalService() {
882 return assetCategoryLocalService;
883 }
884
885
890 public void setAssetCategoryLocalService(
891 com.liferay.asset.kernel.service.AssetCategoryLocalService assetCategoryLocalService) {
892 this.assetCategoryLocalService = assetCategoryLocalService;
893 }
894
895
900 public AssetCategoryPersistence getAssetCategoryPersistence() {
901 return assetCategoryPersistence;
902 }
903
904
909 public void setAssetCategoryPersistence(
910 AssetCategoryPersistence assetCategoryPersistence) {
911 this.assetCategoryPersistence = assetCategoryPersistence;
912 }
913
914
919 public AssetCategoryFinder getAssetCategoryFinder() {
920 return assetCategoryFinder;
921 }
922
923
928 public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
929 this.assetCategoryFinder = assetCategoryFinder;
930 }
931
932
937 public com.liferay.asset.kernel.service.AssetEntryLocalService getAssetEntryLocalService() {
938 return assetEntryLocalService;
939 }
940
941
946 public void setAssetEntryLocalService(
947 com.liferay.asset.kernel.service.AssetEntryLocalService assetEntryLocalService) {
948 this.assetEntryLocalService = assetEntryLocalService;
949 }
950
951
956 public AssetEntryPersistence getAssetEntryPersistence() {
957 return assetEntryPersistence;
958 }
959
960
965 public void setAssetEntryPersistence(
966 AssetEntryPersistence assetEntryPersistence) {
967 this.assetEntryPersistence = assetEntryPersistence;
968 }
969
970
975 public AssetEntryFinder getAssetEntryFinder() {
976 return assetEntryFinder;
977 }
978
979
984 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
985 this.assetEntryFinder = assetEntryFinder;
986 }
987
988
993 public com.liferay.asset.kernel.service.AssetLinkLocalService getAssetLinkLocalService() {
994 return assetLinkLocalService;
995 }
996
997
1002 public void setAssetLinkLocalService(
1003 com.liferay.asset.kernel.service.AssetLinkLocalService assetLinkLocalService) {
1004 this.assetLinkLocalService = assetLinkLocalService;
1005 }
1006
1007
1012 public AssetLinkPersistence getAssetLinkPersistence() {
1013 return assetLinkPersistence;
1014 }
1015
1016
1021 public void setAssetLinkPersistence(
1022 AssetLinkPersistence assetLinkPersistence) {
1023 this.assetLinkPersistence = assetLinkPersistence;
1024 }
1025
1026
1031 public com.liferay.asset.kernel.service.AssetTagLocalService getAssetTagLocalService() {
1032 return assetTagLocalService;
1033 }
1034
1035
1040 public void setAssetTagLocalService(
1041 com.liferay.asset.kernel.service.AssetTagLocalService assetTagLocalService) {
1042 this.assetTagLocalService = assetTagLocalService;
1043 }
1044
1045
1050 public AssetTagPersistence getAssetTagPersistence() {
1051 return assetTagPersistence;
1052 }
1053
1054
1059 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1060 this.assetTagPersistence = assetTagPersistence;
1061 }
1062
1063
1068 public AssetTagFinder getAssetTagFinder() {
1069 return assetTagFinder;
1070 }
1071
1072
1077 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1078 this.assetTagFinder = assetTagFinder;
1079 }
1080
1081
1086 public com.liferay.document.library.kernel.service.DLAppHelperLocalService getDLAppHelperLocalService() {
1087 return dlAppHelperLocalService;
1088 }
1089
1090
1095 public void setDLAppHelperLocalService(
1096 com.liferay.document.library.kernel.service.DLAppHelperLocalService dlAppHelperLocalService) {
1097 this.dlAppHelperLocalService = dlAppHelperLocalService;
1098 }
1099
1100
1105 public com.liferay.expando.kernel.service.ExpandoRowLocalService getExpandoRowLocalService() {
1106 return expandoRowLocalService;
1107 }
1108
1109
1114 public void setExpandoRowLocalService(
1115 com.liferay.expando.kernel.service.ExpandoRowLocalService expandoRowLocalService) {
1116 this.expandoRowLocalService = expandoRowLocalService;
1117 }
1118
1119
1124 public ExpandoRowPersistence getExpandoRowPersistence() {
1125 return expandoRowPersistence;
1126 }
1127
1128
1133 public void setExpandoRowPersistence(
1134 ExpandoRowPersistence expandoRowPersistence) {
1135 this.expandoRowPersistence = expandoRowPersistence;
1136 }
1137
1138
1143 public com.liferay.expando.kernel.service.ExpandoTableLocalService getExpandoTableLocalService() {
1144 return expandoTableLocalService;
1145 }
1146
1147
1152 public void setExpandoTableLocalService(
1153 com.liferay.expando.kernel.service.ExpandoTableLocalService expandoTableLocalService) {
1154 this.expandoTableLocalService = expandoTableLocalService;
1155 }
1156
1157
1162 public ExpandoTablePersistence getExpandoTablePersistence() {
1163 return expandoTablePersistence;
1164 }
1165
1166
1171 public void setExpandoTablePersistence(
1172 ExpandoTablePersistence expandoTablePersistence) {
1173 this.expandoTablePersistence = expandoTablePersistence;
1174 }
1175
1176
1181 public com.liferay.ratings.kernel.service.RatingsStatsLocalService getRatingsStatsLocalService() {
1182 return ratingsStatsLocalService;
1183 }
1184
1185
1190 public void setRatingsStatsLocalService(
1191 com.liferay.ratings.kernel.service.RatingsStatsLocalService ratingsStatsLocalService) {
1192 this.ratingsStatsLocalService = ratingsStatsLocalService;
1193 }
1194
1195
1200 public RatingsStatsPersistence getRatingsStatsPersistence() {
1201 return ratingsStatsPersistence;
1202 }
1203
1204
1209 public void setRatingsStatsPersistence(
1210 RatingsStatsPersistence ratingsStatsPersistence) {
1211 this.ratingsStatsPersistence = ratingsStatsPersistence;
1212 }
1213
1214
1219 public RatingsStatsFinder getRatingsStatsFinder() {
1220 return ratingsStatsFinder;
1221 }
1222
1223
1228 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1229 this.ratingsStatsFinder = ratingsStatsFinder;
1230 }
1231
1232
1237 public com.liferay.trash.kernel.service.TrashEntryLocalService getTrashEntryLocalService() {
1238 return trashEntryLocalService;
1239 }
1240
1241
1246 public void setTrashEntryLocalService(
1247 com.liferay.trash.kernel.service.TrashEntryLocalService trashEntryLocalService) {
1248 this.trashEntryLocalService = trashEntryLocalService;
1249 }
1250
1251
1256 public TrashEntryPersistence getTrashEntryPersistence() {
1257 return trashEntryPersistence;
1258 }
1259
1260
1265 public void setTrashEntryPersistence(
1266 TrashEntryPersistence trashEntryPersistence) {
1267 this.trashEntryPersistence = trashEntryPersistence;
1268 }
1269
1270
1275 public com.liferay.document.library.kernel.service.DLFileEntryMetadataLocalService getDLFileEntryMetadataLocalService() {
1276 return dlFileEntryMetadataLocalService;
1277 }
1278
1279
1284 public void setDLFileEntryMetadataLocalService(
1285 com.liferay.document.library.kernel.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService) {
1286 this.dlFileEntryMetadataLocalService = dlFileEntryMetadataLocalService;
1287 }
1288
1289
1294 public DLFileEntryMetadataPersistence getDLFileEntryMetadataPersistence() {
1295 return dlFileEntryMetadataPersistence;
1296 }
1297
1298
1303 public void setDLFileEntryMetadataPersistence(
1304 DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence) {
1305 this.dlFileEntryMetadataPersistence = dlFileEntryMetadataPersistence;
1306 }
1307
1308
1313 public DLFileEntryMetadataFinder getDLFileEntryMetadataFinder() {
1314 return dlFileEntryMetadataFinder;
1315 }
1316
1317
1322 public void setDLFileEntryMetadataFinder(
1323 DLFileEntryMetadataFinder dlFileEntryMetadataFinder) {
1324 this.dlFileEntryMetadataFinder = dlFileEntryMetadataFinder;
1325 }
1326
1327
1332 public com.liferay.document.library.kernel.service.DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
1333 return dlFileEntryTypeLocalService;
1334 }
1335
1336
1341 public void setDLFileEntryTypeLocalService(
1342 com.liferay.document.library.kernel.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
1343 this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
1344 }
1345
1346
1351 public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
1352 return dlFileEntryTypePersistence;
1353 }
1354
1355
1360 public void setDLFileEntryTypePersistence(
1361 DLFileEntryTypePersistence dlFileEntryTypePersistence) {
1362 this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
1363 }
1364
1365
1370 public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
1371 return dlFileEntryTypeFinder;
1372 }
1373
1374
1379 public void setDLFileEntryTypeFinder(
1380 DLFileEntryTypeFinder dlFileEntryTypeFinder) {
1381 this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
1382 }
1383
1384
1389 public com.liferay.document.library.kernel.service.DLFileVersionLocalService getDLFileVersionLocalService() {
1390 return dlFileVersionLocalService;
1391 }
1392
1393
1398 public void setDLFileVersionLocalService(
1399 com.liferay.document.library.kernel.service.DLFileVersionLocalService dlFileVersionLocalService) {
1400 this.dlFileVersionLocalService = dlFileVersionLocalService;
1401 }
1402
1403
1408 public DLFileVersionPersistence getDLFileVersionPersistence() {
1409 return dlFileVersionPersistence;
1410 }
1411
1412
1417 public void setDLFileVersionPersistence(
1418 DLFileVersionPersistence dlFileVersionPersistence) {
1419 this.dlFileVersionPersistence = dlFileVersionPersistence;
1420 }
1421
1422
1427 public com.liferay.document.library.kernel.service.DLFolderLocalService getDLFolderLocalService() {
1428 return dlFolderLocalService;
1429 }
1430
1431
1436 public void setDLFolderLocalService(
1437 com.liferay.document.library.kernel.service.DLFolderLocalService dlFolderLocalService) {
1438 this.dlFolderLocalService = dlFolderLocalService;
1439 }
1440
1441
1446 public DLFolderPersistence getDLFolderPersistence() {
1447 return dlFolderPersistence;
1448 }
1449
1450
1455 public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
1456 this.dlFolderPersistence = dlFolderPersistence;
1457 }
1458
1459
1464 public DLFolderFinder getDLFolderFinder() {
1465 return dlFolderFinder;
1466 }
1467
1468
1473 public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
1474 this.dlFolderFinder = dlFolderFinder;
1475 }
1476
1477 public void afterPropertiesSet() {
1478 persistedModelLocalServiceRegistry.register("com.liferay.document.library.kernel.model.DLFileEntry",
1479 dlFileEntryLocalService);
1480 }
1481
1482 public void destroy() {
1483 persistedModelLocalServiceRegistry.unregister(
1484 "com.liferay.document.library.kernel.model.DLFileEntry");
1485 }
1486
1487
1492 @Override
1493 public String getOSGiServiceIdentifier() {
1494 return DLFileEntryLocalService.class.getName();
1495 }
1496
1497 protected Class<?> getModelClass() {
1498 return DLFileEntry.class;
1499 }
1500
1501 protected String getModelClassName() {
1502 return DLFileEntry.class.getName();
1503 }
1504
1505
1510 protected void runSQL(String sql) {
1511 try {
1512 DataSource dataSource = dlFileEntryPersistence.getDataSource();
1513
1514 DB db = DBManagerUtil.getDB();
1515
1516 sql = db.buildSQL(sql);
1517 sql = PortalUtil.transformSQL(sql);
1518
1519 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1520 sql);
1521
1522 sqlUpdate.update();
1523 }
1524 catch (Exception e) {
1525 throw new SystemException(e);
1526 }
1527 }
1528
1529 @BeanReference(type = DLFileEntryLocalService.class)
1530 protected DLFileEntryLocalService dlFileEntryLocalService;
1531 @BeanReference(type = DLFileEntryPersistence.class)
1532 protected DLFileEntryPersistence dlFileEntryPersistence;
1533 @BeanReference(type = DLFileEntryFinder.class)
1534 protected DLFileEntryFinder dlFileEntryFinder;
1535 @BeanReference(type = com.liferay.counter.kernel.service.CounterLocalService.class)
1536 protected com.liferay.counter.kernel.service.CounterLocalService counterLocalService;
1537 @BeanReference(type = com.liferay.portal.kernel.service.ClassNameLocalService.class)
1538 protected com.liferay.portal.kernel.service.ClassNameLocalService classNameLocalService;
1539 @BeanReference(type = ClassNamePersistence.class)
1540 protected ClassNamePersistence classNamePersistence;
1541 @BeanReference(type = com.liferay.portal.kernel.service.GroupLocalService.class)
1542 protected com.liferay.portal.kernel.service.GroupLocalService groupLocalService;
1543 @BeanReference(type = GroupPersistence.class)
1544 protected GroupPersistence groupPersistence;
1545 @BeanReference(type = GroupFinder.class)
1546 protected GroupFinder groupFinder;
1547 @BeanReference(type = com.liferay.portal.kernel.service.ImageLocalService.class)
1548 protected com.liferay.portal.kernel.service.ImageLocalService imageLocalService;
1549 @BeanReference(type = ImagePersistence.class)
1550 protected ImagePersistence imagePersistence;
1551 @BeanReference(type = com.liferay.portal.kernel.service.RepositoryLocalService.class)
1552 protected com.liferay.portal.kernel.service.RepositoryLocalService repositoryLocalService;
1553 @BeanReference(type = RepositoryPersistence.class)
1554 protected RepositoryPersistence repositoryPersistence;
1555 @BeanReference(type = com.liferay.portal.kernel.service.ResourceLocalService.class)
1556 protected com.liferay.portal.kernel.service.ResourceLocalService resourceLocalService;
1557 @BeanReference(type = com.liferay.portal.kernel.service.UserLocalService.class)
1558 protected com.liferay.portal.kernel.service.UserLocalService userLocalService;
1559 @BeanReference(type = UserPersistence.class)
1560 protected UserPersistence userPersistence;
1561 @BeanReference(type = UserFinder.class)
1562 protected UserFinder userFinder;
1563 @BeanReference(type = com.liferay.portal.kernel.service.WebDAVPropsLocalService.class)
1564 protected com.liferay.portal.kernel.service.WebDAVPropsLocalService webDAVPropsLocalService;
1565 @BeanReference(type = WebDAVPropsPersistence.class)
1566 protected WebDAVPropsPersistence webDAVPropsPersistence;
1567 @BeanReference(type = com.liferay.portal.kernel.service.WorkflowInstanceLinkLocalService.class)
1568 protected com.liferay.portal.kernel.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1569 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1570 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1571 @BeanReference(type = com.liferay.asset.kernel.service.AssetCategoryLocalService.class)
1572 protected com.liferay.asset.kernel.service.AssetCategoryLocalService assetCategoryLocalService;
1573 @BeanReference(type = AssetCategoryPersistence.class)
1574 protected AssetCategoryPersistence assetCategoryPersistence;
1575 @BeanReference(type = AssetCategoryFinder.class)
1576 protected AssetCategoryFinder assetCategoryFinder;
1577 @BeanReference(type = com.liferay.asset.kernel.service.AssetEntryLocalService.class)
1578 protected com.liferay.asset.kernel.service.AssetEntryLocalService assetEntryLocalService;
1579 @BeanReference(type = AssetEntryPersistence.class)
1580 protected AssetEntryPersistence assetEntryPersistence;
1581 @BeanReference(type = AssetEntryFinder.class)
1582 protected AssetEntryFinder assetEntryFinder;
1583 @BeanReference(type = com.liferay.asset.kernel.service.AssetLinkLocalService.class)
1584 protected com.liferay.asset.kernel.service.AssetLinkLocalService assetLinkLocalService;
1585 @BeanReference(type = AssetLinkPersistence.class)
1586 protected AssetLinkPersistence assetLinkPersistence;
1587 @BeanReference(type = com.liferay.asset.kernel.service.AssetTagLocalService.class)
1588 protected com.liferay.asset.kernel.service.AssetTagLocalService assetTagLocalService;
1589 @BeanReference(type = AssetTagPersistence.class)
1590 protected AssetTagPersistence assetTagPersistence;
1591 @BeanReference(type = AssetTagFinder.class)
1592 protected AssetTagFinder assetTagFinder;
1593 @BeanReference(type = com.liferay.document.library.kernel.service.DLAppHelperLocalService.class)
1594 protected com.liferay.document.library.kernel.service.DLAppHelperLocalService dlAppHelperLocalService;
1595 @BeanReference(type = com.liferay.expando.kernel.service.ExpandoRowLocalService.class)
1596 protected com.liferay.expando.kernel.service.ExpandoRowLocalService expandoRowLocalService;
1597 @BeanReference(type = ExpandoRowPersistence.class)
1598 protected ExpandoRowPersistence expandoRowPersistence;
1599 @BeanReference(type = com.liferay.expando.kernel.service.ExpandoTableLocalService.class)
1600 protected com.liferay.expando.kernel.service.ExpandoTableLocalService expandoTableLocalService;
1601 @BeanReference(type = ExpandoTablePersistence.class)
1602 protected ExpandoTablePersistence expandoTablePersistence;
1603 @BeanReference(type = com.liferay.ratings.kernel.service.RatingsStatsLocalService.class)
1604 protected com.liferay.ratings.kernel.service.RatingsStatsLocalService ratingsStatsLocalService;
1605 @BeanReference(type = RatingsStatsPersistence.class)
1606 protected RatingsStatsPersistence ratingsStatsPersistence;
1607 @BeanReference(type = RatingsStatsFinder.class)
1608 protected RatingsStatsFinder ratingsStatsFinder;
1609 @BeanReference(type = com.liferay.trash.kernel.service.TrashEntryLocalService.class)
1610 protected com.liferay.trash.kernel.service.TrashEntryLocalService trashEntryLocalService;
1611 @BeanReference(type = TrashEntryPersistence.class)
1612 protected TrashEntryPersistence trashEntryPersistence;
1613 @BeanReference(type = com.liferay.document.library.kernel.service.DLFileEntryMetadataLocalService.class)
1614 protected com.liferay.document.library.kernel.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService;
1615 @BeanReference(type = DLFileEntryMetadataPersistence.class)
1616 protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence;
1617 @BeanReference(type = DLFileEntryMetadataFinder.class)
1618 protected DLFileEntryMetadataFinder dlFileEntryMetadataFinder;
1619 @BeanReference(type = com.liferay.document.library.kernel.service.DLFileEntryTypeLocalService.class)
1620 protected com.liferay.document.library.kernel.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
1621 @BeanReference(type = DLFileEntryTypePersistence.class)
1622 protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
1623 @BeanReference(type = DLFileEntryTypeFinder.class)
1624 protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
1625 @BeanReference(type = com.liferay.document.library.kernel.service.DLFileVersionLocalService.class)
1626 protected com.liferay.document.library.kernel.service.DLFileVersionLocalService dlFileVersionLocalService;
1627 @BeanReference(type = DLFileVersionPersistence.class)
1628 protected DLFileVersionPersistence dlFileVersionPersistence;
1629 @BeanReference(type = com.liferay.document.library.kernel.service.DLFolderLocalService.class)
1630 protected com.liferay.document.library.kernel.service.DLFolderLocalService dlFolderLocalService;
1631 @BeanReference(type = DLFolderPersistence.class)
1632 protected DLFolderPersistence dlFolderPersistence;
1633 @BeanReference(type = DLFolderFinder.class)
1634 protected DLFolderFinder dlFolderFinder;
1635 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1636 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1637 }