001
014
015 package com.liferay.portlet.documentlibrary.service.base;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.BeanReference;
020 import com.liferay.portal.kernel.dao.db.DB;
021 import com.liferay.portal.kernel.dao.db.DBManagerUtil;
022 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
023 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
024 import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
025 import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
026 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
027 import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
028 import com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery;
029 import com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery;
030 import com.liferay.portal.kernel.dao.orm.Projection;
031 import com.liferay.portal.kernel.dao.orm.Property;
032 import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil;
033 import com.liferay.portal.kernel.exception.PortalException;
034 import com.liferay.portal.kernel.exception.SystemException;
035 import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
036 import com.liferay.portal.kernel.search.Indexable;
037 import com.liferay.portal.kernel.search.IndexableType;
038 import com.liferay.portal.kernel.util.OrderByComparator;
039 import com.liferay.portal.model.PersistedModel;
040 import com.liferay.portal.service.BaseLocalServiceImpl;
041 import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
042 import com.liferay.portal.service.persistence.ClassNamePersistence;
043 import com.liferay.portal.service.persistence.GroupFinder;
044 import com.liferay.portal.service.persistence.GroupPersistence;
045 import com.liferay.portal.service.persistence.ImagePersistence;
046 import com.liferay.portal.service.persistence.RepositoryPersistence;
047 import com.liferay.portal.service.persistence.UserFinder;
048 import com.liferay.portal.service.persistence.UserPersistence;
049 import com.liferay.portal.service.persistence.WebDAVPropsPersistence;
050 import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
051 import com.liferay.portal.util.PortalUtil;
052
053 import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
054 import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
055 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
056 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
057 import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
058 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
059 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
060 import com.liferay.portlet.documentlibrary.model.DLFileEntry;
061 import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
062 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
063 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataFinder;
064 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistence;
065 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
066 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
067 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
068 import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
069 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
070 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
071 import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
072 import com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence;
073 import com.liferay.portlet.exportimport.lar.ExportImportHelperUtil;
074 import com.liferay.portlet.exportimport.lar.ManifestSummary;
075 import com.liferay.portlet.exportimport.lar.PortletDataContext;
076 import com.liferay.portlet.exportimport.lar.StagedModelDataHandlerUtil;
077 import com.liferay.portlet.exportimport.lar.StagedModelType;
078 import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
079 import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
080 import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
081
082 import java.io.Serializable;
083
084 import java.util.List;
085
086 import javax.sql.DataSource;
087
088
100 @ProviderType
101 public abstract class DLFileEntryLocalServiceBaseImpl
102 extends BaseLocalServiceImpl implements DLFileEntryLocalService,
103 IdentifiableOSGiService {
104
109
110
116 @Indexable(type = IndexableType.REINDEX)
117 @Override
118 public DLFileEntry addDLFileEntry(DLFileEntry dlFileEntry) {
119 dlFileEntry.setNew(true);
120
121 return dlFileEntryPersistence.update(dlFileEntry);
122 }
123
124
130 @Override
131 public DLFileEntry createDLFileEntry(long fileEntryId) {
132 return dlFileEntryPersistence.create(fileEntryId);
133 }
134
135
142 @Indexable(type = IndexableType.DELETE)
143 @Override
144 public DLFileEntry deleteDLFileEntry(long fileEntryId)
145 throws PortalException {
146 return dlFileEntryPersistence.remove(fileEntryId);
147 }
148
149
155 @Indexable(type = IndexableType.DELETE)
156 @Override
157 public DLFileEntry deleteDLFileEntry(DLFileEntry dlFileEntry) {
158 return dlFileEntryPersistence.remove(dlFileEntry);
159 }
160
161 @Override
162 public DynamicQuery dynamicQuery() {
163 Class<?> clazz = getClass();
164
165 return DynamicQueryFactoryUtil.forClass(DLFileEntry.class,
166 clazz.getClassLoader());
167 }
168
169
175 @Override
176 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
177 return dlFileEntryPersistence.findWithDynamicQuery(dynamicQuery);
178 }
179
180
192 @Override
193 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
194 int end) {
195 return dlFileEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
196 end);
197 }
198
199
212 @Override
213 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
214 int end, OrderByComparator<T> orderByComparator) {
215 return dlFileEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
216 end, orderByComparator);
217 }
218
219
225 @Override
226 public long dynamicQueryCount(DynamicQuery dynamicQuery) {
227 return dlFileEntryPersistence.countWithDynamicQuery(dynamicQuery);
228 }
229
230
237 @Override
238 public long dynamicQueryCount(DynamicQuery dynamicQuery,
239 Projection projection) {
240 return dlFileEntryPersistence.countWithDynamicQuery(dynamicQuery,
241 projection);
242 }
243
244 @Override
245 public DLFileEntry fetchDLFileEntry(long fileEntryId) {
246 return dlFileEntryPersistence.fetchByPrimaryKey(fileEntryId);
247 }
248
249
256 @Override
257 public DLFileEntry fetchDLFileEntryByUuidAndGroupId(String uuid,
258 long groupId) {
259 return dlFileEntryPersistence.fetchByUUID_G(uuid, groupId);
260 }
261
262
269 @Override
270 public DLFileEntry getDLFileEntry(long fileEntryId)
271 throws PortalException {
272 return dlFileEntryPersistence.findByPrimaryKey(fileEntryId);
273 }
274
275 @Override
276 public ActionableDynamicQuery getActionableDynamicQuery() {
277 ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
278
279 actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil.getService());
280 actionableDynamicQuery.setClassLoader(getClassLoader());
281 actionableDynamicQuery.setModelClass(DLFileEntry.class);
282
283 actionableDynamicQuery.setPrimaryKeyPropertyName("fileEntryId");
284
285 return actionableDynamicQuery;
286 }
287
288 @Override
289 public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
290 IndexableActionableDynamicQuery indexableActionableDynamicQuery = new IndexableActionableDynamicQuery();
291
292 indexableActionableDynamicQuery.setBaseLocalService(com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil.getService());
293 indexableActionableDynamicQuery.setClassLoader(getClassLoader());
294 indexableActionableDynamicQuery.setModelClass(DLFileEntry.class);
295
296 indexableActionableDynamicQuery.setPrimaryKeyPropertyName("fileEntryId");
297
298 return indexableActionableDynamicQuery;
299 }
300
301 protected void initActionableDynamicQuery(
302 ActionableDynamicQuery actionableDynamicQuery) {
303 actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil.getService());
304 actionableDynamicQuery.setClassLoader(getClassLoader());
305 actionableDynamicQuery.setModelClass(DLFileEntry.class);
306
307 actionableDynamicQuery.setPrimaryKeyPropertyName("fileEntryId");
308 }
309
310 @Override
311 public ExportActionableDynamicQuery getExportActionableDynamicQuery(
312 final PortletDataContext portletDataContext) {
313 final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
314 @Override
315 public long performCount() throws PortalException {
316 ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
317
318 StagedModelType stagedModelType = getStagedModelType();
319
320 long modelAdditionCount = super.performCount();
321
322 manifestSummary.addModelAdditionCount(stagedModelType,
323 modelAdditionCount);
324
325 long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
326 stagedModelType);
327
328 manifestSummary.addModelDeletionCount(stagedModelType,
329 modelDeletionCount);
330
331 return modelAdditionCount;
332 }
333 };
334
335 initActionableDynamicQuery(exportActionableDynamicQuery);
336
337 exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
338 @Override
339 public void addCriteria(DynamicQuery dynamicQuery) {
340 portletDataContext.addDateRangeCriteria(dynamicQuery,
341 "modifiedDate");
342
343 StagedModelType stagedModelType = exportActionableDynamicQuery.getStagedModelType();
344
345 long referrerClassNameId = stagedModelType.getReferrerClassNameId();
346
347 Property classNameIdProperty = PropertyFactoryUtil.forName(
348 "classNameId");
349
350 if ((referrerClassNameId != StagedModelType.REFERRER_CLASS_NAME_ID_ALL) &&
351 (referrerClassNameId != StagedModelType.REFERRER_CLASS_NAME_ID_ANY)) {
352 dynamicQuery.add(classNameIdProperty.eq(
353 stagedModelType.getReferrerClassNameId()));
354 }
355 else if (referrerClassNameId == StagedModelType.REFERRER_CLASS_NAME_ID_ANY) {
356 dynamicQuery.add(classNameIdProperty.isNotNull());
357 }
358 }
359 });
360
361 exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
362
363 exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());
364
365 exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod<DLFileEntry>() {
366 @Override
367 public void performAction(DLFileEntry dlFileEntry)
368 throws PortalException {
369 StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
370 dlFileEntry);
371 }
372 });
373 exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
374 PortalUtil.getClassNameId(DLFileEntry.class.getName()),
375 StagedModelType.REFERRER_CLASS_NAME_ID_ALL));
376
377 return exportActionableDynamicQuery;
378 }
379
380
383 @Override
384 public PersistedModel deletePersistedModel(PersistedModel persistedModel)
385 throws PortalException {
386 return dlFileEntryLocalService.deleteDLFileEntry((DLFileEntry)persistedModel);
387 }
388
389 @Override
390 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
391 throws PortalException {
392 return dlFileEntryPersistence.findByPrimaryKey(primaryKeyObj);
393 }
394
395
402 @Override
403 public List<DLFileEntry> getDLFileEntriesByUuidAndCompanyId(String uuid,
404 long companyId) {
405 return dlFileEntryPersistence.findByUuid_C(uuid, companyId);
406 }
407
408
418 @Override
419 public List<DLFileEntry> getDLFileEntriesByUuidAndCompanyId(String uuid,
420 long companyId, int start, int end,
421 OrderByComparator<DLFileEntry> orderByComparator) {
422 return dlFileEntryPersistence.findByUuid_C(uuid, companyId, start, end,
423 orderByComparator);
424 }
425
426
434 @Override
435 public DLFileEntry getDLFileEntryByUuidAndGroupId(String uuid, long groupId)
436 throws PortalException {
437 return dlFileEntryPersistence.findByUUID_G(uuid, groupId);
438 }
439
440
451 @Override
452 public List<DLFileEntry> getDLFileEntries(int start, int end) {
453 return dlFileEntryPersistence.findAll(start, end);
454 }
455
456
461 @Override
462 public int getDLFileEntriesCount() {
463 return dlFileEntryPersistence.countAll();
464 }
465
466
472 @Indexable(type = IndexableType.REINDEX)
473 @Override
474 public DLFileEntry updateDLFileEntry(DLFileEntry dlFileEntry) {
475 return dlFileEntryPersistence.update(dlFileEntry);
476 }
477
478
483 public DLFileEntryLocalService getDLFileEntryLocalService() {
484 return dlFileEntryLocalService;
485 }
486
487
492 public void setDLFileEntryLocalService(
493 DLFileEntryLocalService dlFileEntryLocalService) {
494 this.dlFileEntryLocalService = dlFileEntryLocalService;
495 }
496
497
502 public DLFileEntryPersistence getDLFileEntryPersistence() {
503 return dlFileEntryPersistence;
504 }
505
506
511 public void setDLFileEntryPersistence(
512 DLFileEntryPersistence dlFileEntryPersistence) {
513 this.dlFileEntryPersistence = dlFileEntryPersistence;
514 }
515
516
521 public DLFileEntryFinder getDLFileEntryFinder() {
522 return dlFileEntryFinder;
523 }
524
525
530 public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
531 this.dlFileEntryFinder = dlFileEntryFinder;
532 }
533
534
539 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
540 return counterLocalService;
541 }
542
543
548 public void setCounterLocalService(
549 com.liferay.counter.service.CounterLocalService counterLocalService) {
550 this.counterLocalService = counterLocalService;
551 }
552
553
558 public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
559 return classNameLocalService;
560 }
561
562
567 public void setClassNameLocalService(
568 com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
569 this.classNameLocalService = classNameLocalService;
570 }
571
572
577 public ClassNamePersistence getClassNamePersistence() {
578 return classNamePersistence;
579 }
580
581
586 public void setClassNamePersistence(
587 ClassNamePersistence classNamePersistence) {
588 this.classNamePersistence = classNamePersistence;
589 }
590
591
596 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
597 return groupLocalService;
598 }
599
600
605 public void setGroupLocalService(
606 com.liferay.portal.service.GroupLocalService groupLocalService) {
607 this.groupLocalService = groupLocalService;
608 }
609
610
615 public GroupPersistence getGroupPersistence() {
616 return groupPersistence;
617 }
618
619
624 public void setGroupPersistence(GroupPersistence groupPersistence) {
625 this.groupPersistence = groupPersistence;
626 }
627
628
633 public GroupFinder getGroupFinder() {
634 return groupFinder;
635 }
636
637
642 public void setGroupFinder(GroupFinder groupFinder) {
643 this.groupFinder = groupFinder;
644 }
645
646
651 public com.liferay.portal.service.ImageLocalService getImageLocalService() {
652 return imageLocalService;
653 }
654
655
660 public void setImageLocalService(
661 com.liferay.portal.service.ImageLocalService imageLocalService) {
662 this.imageLocalService = imageLocalService;
663 }
664
665
670 public ImagePersistence getImagePersistence() {
671 return imagePersistence;
672 }
673
674
679 public void setImagePersistence(ImagePersistence imagePersistence) {
680 this.imagePersistence = imagePersistence;
681 }
682
683
688 public com.liferay.portal.service.RepositoryLocalService getRepositoryLocalService() {
689 return repositoryLocalService;
690 }
691
692
697 public void setRepositoryLocalService(
698 com.liferay.portal.service.RepositoryLocalService repositoryLocalService) {
699 this.repositoryLocalService = repositoryLocalService;
700 }
701
702
707 public RepositoryPersistence getRepositoryPersistence() {
708 return repositoryPersistence;
709 }
710
711
716 public void setRepositoryPersistence(
717 RepositoryPersistence repositoryPersistence) {
718 this.repositoryPersistence = repositoryPersistence;
719 }
720
721
726 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
727 return resourceLocalService;
728 }
729
730
735 public void setResourceLocalService(
736 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
737 this.resourceLocalService = resourceLocalService;
738 }
739
740
745 public com.liferay.portal.service.UserLocalService getUserLocalService() {
746 return userLocalService;
747 }
748
749
754 public void setUserLocalService(
755 com.liferay.portal.service.UserLocalService userLocalService) {
756 this.userLocalService = userLocalService;
757 }
758
759
764 public UserPersistence getUserPersistence() {
765 return userPersistence;
766 }
767
768
773 public void setUserPersistence(UserPersistence userPersistence) {
774 this.userPersistence = userPersistence;
775 }
776
777
782 public UserFinder getUserFinder() {
783 return userFinder;
784 }
785
786
791 public void setUserFinder(UserFinder userFinder) {
792 this.userFinder = userFinder;
793 }
794
795
800 public com.liferay.portal.service.WebDAVPropsLocalService getWebDAVPropsLocalService() {
801 return webDAVPropsLocalService;
802 }
803
804
809 public void setWebDAVPropsLocalService(
810 com.liferay.portal.service.WebDAVPropsLocalService webDAVPropsLocalService) {
811 this.webDAVPropsLocalService = webDAVPropsLocalService;
812 }
813
814
819 public WebDAVPropsPersistence getWebDAVPropsPersistence() {
820 return webDAVPropsPersistence;
821 }
822
823
828 public void setWebDAVPropsPersistence(
829 WebDAVPropsPersistence webDAVPropsPersistence) {
830 this.webDAVPropsPersistence = webDAVPropsPersistence;
831 }
832
833
838 public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
839 return workflowInstanceLinkLocalService;
840 }
841
842
847 public void setWorkflowInstanceLinkLocalService(
848 com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
849 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
850 }
851
852
857 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
858 return workflowInstanceLinkPersistence;
859 }
860
861
866 public void setWorkflowInstanceLinkPersistence(
867 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
868 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
869 }
870
871
876 public com.liferay.portlet.asset.service.AssetCategoryLocalService getAssetCategoryLocalService() {
877 return assetCategoryLocalService;
878 }
879
880
885 public void setAssetCategoryLocalService(
886 com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService) {
887 this.assetCategoryLocalService = assetCategoryLocalService;
888 }
889
890
895 public AssetCategoryPersistence getAssetCategoryPersistence() {
896 return assetCategoryPersistence;
897 }
898
899
904 public void setAssetCategoryPersistence(
905 AssetCategoryPersistence assetCategoryPersistence) {
906 this.assetCategoryPersistence = assetCategoryPersistence;
907 }
908
909
914 public AssetCategoryFinder getAssetCategoryFinder() {
915 return assetCategoryFinder;
916 }
917
918
923 public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
924 this.assetCategoryFinder = assetCategoryFinder;
925 }
926
927
932 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
933 return assetEntryLocalService;
934 }
935
936
941 public void setAssetEntryLocalService(
942 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
943 this.assetEntryLocalService = assetEntryLocalService;
944 }
945
946
951 public AssetEntryPersistence getAssetEntryPersistence() {
952 return assetEntryPersistence;
953 }
954
955
960 public void setAssetEntryPersistence(
961 AssetEntryPersistence assetEntryPersistence) {
962 this.assetEntryPersistence = assetEntryPersistence;
963 }
964
965
970 public AssetEntryFinder getAssetEntryFinder() {
971 return assetEntryFinder;
972 }
973
974
979 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
980 this.assetEntryFinder = assetEntryFinder;
981 }
982
983
988 public com.liferay.portlet.asset.service.AssetLinkLocalService getAssetLinkLocalService() {
989 return assetLinkLocalService;
990 }
991
992
997 public void setAssetLinkLocalService(
998 com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService) {
999 this.assetLinkLocalService = assetLinkLocalService;
1000 }
1001
1002
1007 public AssetLinkPersistence getAssetLinkPersistence() {
1008 return assetLinkPersistence;
1009 }
1010
1011
1016 public void setAssetLinkPersistence(
1017 AssetLinkPersistence assetLinkPersistence) {
1018 this.assetLinkPersistence = assetLinkPersistence;
1019 }
1020
1021
1026 public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
1027 return assetTagLocalService;
1028 }
1029
1030
1035 public void setAssetTagLocalService(
1036 com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
1037 this.assetTagLocalService = assetTagLocalService;
1038 }
1039
1040
1045 public AssetTagPersistence getAssetTagPersistence() {
1046 return assetTagPersistence;
1047 }
1048
1049
1054 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1055 this.assetTagPersistence = assetTagPersistence;
1056 }
1057
1058
1063 public AssetTagFinder getAssetTagFinder() {
1064 return assetTagFinder;
1065 }
1066
1067
1072 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1073 this.assetTagFinder = assetTagFinder;
1074 }
1075
1076
1081 public com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService getDLAppHelperLocalService() {
1082 return dlAppHelperLocalService;
1083 }
1084
1085
1090 public void setDLAppHelperLocalService(
1091 com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService) {
1092 this.dlAppHelperLocalService = dlAppHelperLocalService;
1093 }
1094
1095
1100 public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
1101 return expandoRowLocalService;
1102 }
1103
1104
1109 public void setExpandoRowLocalService(
1110 com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
1111 this.expandoRowLocalService = expandoRowLocalService;
1112 }
1113
1114
1119 public ExpandoRowPersistence getExpandoRowPersistence() {
1120 return expandoRowPersistence;
1121 }
1122
1123
1128 public void setExpandoRowPersistence(
1129 ExpandoRowPersistence expandoRowPersistence) {
1130 this.expandoRowPersistence = expandoRowPersistence;
1131 }
1132
1133
1138 public com.liferay.portlet.expando.service.ExpandoTableLocalService getExpandoTableLocalService() {
1139 return expandoTableLocalService;
1140 }
1141
1142
1147 public void setExpandoTableLocalService(
1148 com.liferay.portlet.expando.service.ExpandoTableLocalService expandoTableLocalService) {
1149 this.expandoTableLocalService = expandoTableLocalService;
1150 }
1151
1152
1157 public ExpandoTablePersistence getExpandoTablePersistence() {
1158 return expandoTablePersistence;
1159 }
1160
1161
1166 public void setExpandoTablePersistence(
1167 ExpandoTablePersistence expandoTablePersistence) {
1168 this.expandoTablePersistence = expandoTablePersistence;
1169 }
1170
1171
1176 public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
1177 return ratingsStatsLocalService;
1178 }
1179
1180
1185 public void setRatingsStatsLocalService(
1186 com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
1187 this.ratingsStatsLocalService = ratingsStatsLocalService;
1188 }
1189
1190
1195 public RatingsStatsPersistence getRatingsStatsPersistence() {
1196 return ratingsStatsPersistence;
1197 }
1198
1199
1204 public void setRatingsStatsPersistence(
1205 RatingsStatsPersistence ratingsStatsPersistence) {
1206 this.ratingsStatsPersistence = ratingsStatsPersistence;
1207 }
1208
1209
1214 public RatingsStatsFinder getRatingsStatsFinder() {
1215 return ratingsStatsFinder;
1216 }
1217
1218
1223 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1224 this.ratingsStatsFinder = ratingsStatsFinder;
1225 }
1226
1227
1232 public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
1233 return trashEntryLocalService;
1234 }
1235
1236
1241 public void setTrashEntryLocalService(
1242 com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
1243 this.trashEntryLocalService = trashEntryLocalService;
1244 }
1245
1246
1251 public TrashEntryPersistence getTrashEntryPersistence() {
1252 return trashEntryPersistence;
1253 }
1254
1255
1260 public void setTrashEntryPersistence(
1261 TrashEntryPersistence trashEntryPersistence) {
1262 this.trashEntryPersistence = trashEntryPersistence;
1263 }
1264
1265
1270 public com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService getDLFileEntryMetadataLocalService() {
1271 return dlFileEntryMetadataLocalService;
1272 }
1273
1274
1279 public void setDLFileEntryMetadataLocalService(
1280 com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService) {
1281 this.dlFileEntryMetadataLocalService = dlFileEntryMetadataLocalService;
1282 }
1283
1284
1289 public DLFileEntryMetadataPersistence getDLFileEntryMetadataPersistence() {
1290 return dlFileEntryMetadataPersistence;
1291 }
1292
1293
1298 public void setDLFileEntryMetadataPersistence(
1299 DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence) {
1300 this.dlFileEntryMetadataPersistence = dlFileEntryMetadataPersistence;
1301 }
1302
1303
1308 public DLFileEntryMetadataFinder getDLFileEntryMetadataFinder() {
1309 return dlFileEntryMetadataFinder;
1310 }
1311
1312
1317 public void setDLFileEntryMetadataFinder(
1318 DLFileEntryMetadataFinder dlFileEntryMetadataFinder) {
1319 this.dlFileEntryMetadataFinder = dlFileEntryMetadataFinder;
1320 }
1321
1322
1327 public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
1328 return dlFileEntryTypeLocalService;
1329 }
1330
1331
1336 public void setDLFileEntryTypeLocalService(
1337 com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
1338 this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
1339 }
1340
1341
1346 public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
1347 return dlFileEntryTypePersistence;
1348 }
1349
1350
1355 public void setDLFileEntryTypePersistence(
1356 DLFileEntryTypePersistence dlFileEntryTypePersistence) {
1357 this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
1358 }
1359
1360
1365 public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
1366 return dlFileEntryTypeFinder;
1367 }
1368
1369
1374 public void setDLFileEntryTypeFinder(
1375 DLFileEntryTypeFinder dlFileEntryTypeFinder) {
1376 this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
1377 }
1378
1379
1384 public com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService getDLFileVersionLocalService() {
1385 return dlFileVersionLocalService;
1386 }
1387
1388
1393 public void setDLFileVersionLocalService(
1394 com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService) {
1395 this.dlFileVersionLocalService = dlFileVersionLocalService;
1396 }
1397
1398
1403 public DLFileVersionPersistence getDLFileVersionPersistence() {
1404 return dlFileVersionPersistence;
1405 }
1406
1407
1412 public void setDLFileVersionPersistence(
1413 DLFileVersionPersistence dlFileVersionPersistence) {
1414 this.dlFileVersionPersistence = dlFileVersionPersistence;
1415 }
1416
1417
1422 public com.liferay.portlet.documentlibrary.service.DLFolderLocalService getDLFolderLocalService() {
1423 return dlFolderLocalService;
1424 }
1425
1426
1431 public void setDLFolderLocalService(
1432 com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService) {
1433 this.dlFolderLocalService = dlFolderLocalService;
1434 }
1435
1436
1441 public DLFolderPersistence getDLFolderPersistence() {
1442 return dlFolderPersistence;
1443 }
1444
1445
1450 public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
1451 this.dlFolderPersistence = dlFolderPersistence;
1452 }
1453
1454
1459 public DLFolderFinder getDLFolderFinder() {
1460 return dlFolderFinder;
1461 }
1462
1463
1468 public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
1469 this.dlFolderFinder = dlFolderFinder;
1470 }
1471
1472 public void afterPropertiesSet() {
1473 persistedModelLocalServiceRegistry.register("com.liferay.portlet.documentlibrary.model.DLFileEntry",
1474 dlFileEntryLocalService);
1475 }
1476
1477 public void destroy() {
1478 persistedModelLocalServiceRegistry.unregister(
1479 "com.liferay.portlet.documentlibrary.model.DLFileEntry");
1480 }
1481
1482
1487 @Override
1488 public String getOSGiServiceIdentifier() {
1489 return DLFileEntryLocalService.class.getName();
1490 }
1491
1492 protected Class<?> getModelClass() {
1493 return DLFileEntry.class;
1494 }
1495
1496 protected String getModelClassName() {
1497 return DLFileEntry.class.getName();
1498 }
1499
1500
1505 protected void runSQL(String sql) {
1506 try {
1507 DataSource dataSource = dlFileEntryPersistence.getDataSource();
1508
1509 DB db = DBManagerUtil.getDB();
1510
1511 sql = db.buildSQL(sql);
1512 sql = PortalUtil.transformSQL(sql);
1513
1514 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1515 sql, new int[0]);
1516
1517 sqlUpdate.update();
1518 }
1519 catch (Exception e) {
1520 throw new SystemException(e);
1521 }
1522 }
1523
1524 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService.class)
1525 protected DLFileEntryLocalService dlFileEntryLocalService;
1526 @BeanReference(type = DLFileEntryPersistence.class)
1527 protected DLFileEntryPersistence dlFileEntryPersistence;
1528 @BeanReference(type = DLFileEntryFinder.class)
1529 protected DLFileEntryFinder dlFileEntryFinder;
1530 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1531 protected com.liferay.counter.service.CounterLocalService counterLocalService;
1532 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1533 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1534 @BeanReference(type = ClassNamePersistence.class)
1535 protected ClassNamePersistence classNamePersistence;
1536 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1537 protected com.liferay.portal.service.GroupLocalService groupLocalService;
1538 @BeanReference(type = GroupPersistence.class)
1539 protected GroupPersistence groupPersistence;
1540 @BeanReference(type = GroupFinder.class)
1541 protected GroupFinder groupFinder;
1542 @BeanReference(type = com.liferay.portal.service.ImageLocalService.class)
1543 protected com.liferay.portal.service.ImageLocalService imageLocalService;
1544 @BeanReference(type = ImagePersistence.class)
1545 protected ImagePersistence imagePersistence;
1546 @BeanReference(type = com.liferay.portal.service.RepositoryLocalService.class)
1547 protected com.liferay.portal.service.RepositoryLocalService repositoryLocalService;
1548 @BeanReference(type = RepositoryPersistence.class)
1549 protected RepositoryPersistence repositoryPersistence;
1550 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1551 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1552 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1553 protected com.liferay.portal.service.UserLocalService userLocalService;
1554 @BeanReference(type = UserPersistence.class)
1555 protected UserPersistence userPersistence;
1556 @BeanReference(type = UserFinder.class)
1557 protected UserFinder userFinder;
1558 @BeanReference(type = com.liferay.portal.service.WebDAVPropsLocalService.class)
1559 protected com.liferay.portal.service.WebDAVPropsLocalService webDAVPropsLocalService;
1560 @BeanReference(type = WebDAVPropsPersistence.class)
1561 protected WebDAVPropsPersistence webDAVPropsPersistence;
1562 @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1563 protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1564 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1565 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1566 @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryLocalService.class)
1567 protected com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService;
1568 @BeanReference(type = AssetCategoryPersistence.class)
1569 protected AssetCategoryPersistence assetCategoryPersistence;
1570 @BeanReference(type = AssetCategoryFinder.class)
1571 protected AssetCategoryFinder assetCategoryFinder;
1572 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1573 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1574 @BeanReference(type = AssetEntryPersistence.class)
1575 protected AssetEntryPersistence assetEntryPersistence;
1576 @BeanReference(type = AssetEntryFinder.class)
1577 protected AssetEntryFinder assetEntryFinder;
1578 @BeanReference(type = com.liferay.portlet.asset.service.AssetLinkLocalService.class)
1579 protected com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService;
1580 @BeanReference(type = AssetLinkPersistence.class)
1581 protected AssetLinkPersistence assetLinkPersistence;
1582 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1583 protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1584 @BeanReference(type = AssetTagPersistence.class)
1585 protected AssetTagPersistence assetTagPersistence;
1586 @BeanReference(type = AssetTagFinder.class)
1587 protected AssetTagFinder assetTagFinder;
1588 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService.class)
1589 protected com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService;
1590 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1591 protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1592 @BeanReference(type = ExpandoRowPersistence.class)
1593 protected ExpandoRowPersistence expandoRowPersistence;
1594 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoTableLocalService.class)
1595 protected com.liferay.portlet.expando.service.ExpandoTableLocalService expandoTableLocalService;
1596 @BeanReference(type = ExpandoTablePersistence.class)
1597 protected ExpandoTablePersistence expandoTablePersistence;
1598 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
1599 protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
1600 @BeanReference(type = RatingsStatsPersistence.class)
1601 protected RatingsStatsPersistence ratingsStatsPersistence;
1602 @BeanReference(type = RatingsStatsFinder.class)
1603 protected RatingsStatsFinder ratingsStatsFinder;
1604 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1605 protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1606 @BeanReference(type = TrashEntryPersistence.class)
1607 protected TrashEntryPersistence trashEntryPersistence;
1608 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService.class)
1609 protected com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService;
1610 @BeanReference(type = DLFileEntryMetadataPersistence.class)
1611 protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence;
1612 @BeanReference(type = DLFileEntryMetadataFinder.class)
1613 protected DLFileEntryMetadataFinder dlFileEntryMetadataFinder;
1614 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService.class)
1615 protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
1616 @BeanReference(type = DLFileEntryTypePersistence.class)
1617 protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
1618 @BeanReference(type = DLFileEntryTypeFinder.class)
1619 protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
1620 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService.class)
1621 protected com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService;
1622 @BeanReference(type = DLFileVersionPersistence.class)
1623 protected DLFileVersionPersistence dlFileVersionPersistence;
1624 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFolderLocalService.class)
1625 protected com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService;
1626 @BeanReference(type = DLFolderPersistence.class)
1627 protected DLFolderPersistence dlFolderPersistence;
1628 @BeanReference(type = DLFolderFinder.class)
1629 protected DLFolderFinder dlFolderFinder;
1630 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1631 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1632 }