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.bean.IdentifiableBean;
021 import com.liferay.portal.kernel.dao.db.DB;
022 import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
023 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
024 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
025 import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
026 import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
027 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
028 import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
029 import com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery;
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.lar.ExportImportHelperUtil;
036 import com.liferay.portal.kernel.lar.ManifestSummary;
037 import com.liferay.portal.kernel.lar.PortletDataContext;
038 import com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil;
039 import com.liferay.portal.kernel.lar.StagedModelType;
040 import com.liferay.portal.kernel.search.Indexable;
041 import com.liferay.portal.kernel.search.IndexableType;
042 import com.liferay.portal.kernel.util.OrderByComparator;
043 import com.liferay.portal.model.PersistedModel;
044 import com.liferay.portal.service.BaseLocalServiceImpl;
045 import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
046 import com.liferay.portal.service.persistence.ClassNamePersistence;
047 import com.liferay.portal.service.persistence.GroupFinder;
048 import com.liferay.portal.service.persistence.GroupPersistence;
049 import com.liferay.portal.service.persistence.ImagePersistence;
050 import com.liferay.portal.service.persistence.LockFinder;
051 import com.liferay.portal.service.persistence.LockPersistence;
052 import com.liferay.portal.service.persistence.RepositoryPersistence;
053 import com.liferay.portal.service.persistence.UserFinder;
054 import com.liferay.portal.service.persistence.UserPersistence;
055 import com.liferay.portal.service.persistence.WebDAVPropsPersistence;
056 import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
057 import com.liferay.portal.util.PortalUtil;
058
059 import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
060 import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
061 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
062 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
063 import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
064 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
065 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
066 import com.liferay.portlet.documentlibrary.model.DLFileEntry;
067 import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
068 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
069 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistence;
070 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
071 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
072 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
073 import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
074 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
075 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
076 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
077 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
078 import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
079 import com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence;
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 IdentifiableBean {
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.setClass(DLFileEntry.class);
281 actionableDynamicQuery.setClassLoader(getClassLoader());
282
283 actionableDynamicQuery.setPrimaryKeyPropertyName("fileEntryId");
284
285 return actionableDynamicQuery;
286 }
287
288 protected void initActionableDynamicQuery(
289 ActionableDynamicQuery actionableDynamicQuery) {
290 actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil.getService());
291 actionableDynamicQuery.setClass(DLFileEntry.class);
292 actionableDynamicQuery.setClassLoader(getClassLoader());
293
294 actionableDynamicQuery.setPrimaryKeyPropertyName("fileEntryId");
295 }
296
297 @Override
298 public ExportActionableDynamicQuery getExportActionableDynamicQuery(
299 final PortletDataContext portletDataContext) {
300 final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
301 @Override
302 public long performCount() throws PortalException {
303 ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
304
305 StagedModelType stagedModelType = getStagedModelType();
306
307 long modelAdditionCount = super.performCount();
308
309 manifestSummary.addModelAdditionCount(stagedModelType.toString(),
310 modelAdditionCount);
311
312 long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
313 stagedModelType);
314
315 manifestSummary.addModelDeletionCount(stagedModelType.toString(),
316 modelDeletionCount);
317
318 return modelAdditionCount;
319 }
320 };
321
322 initActionableDynamicQuery(exportActionableDynamicQuery);
323
324 exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
325 @Override
326 public void addCriteria(DynamicQuery dynamicQuery) {
327 portletDataContext.addDateRangeCriteria(dynamicQuery,
328 "modifiedDate");
329
330 StagedModelType stagedModelType = exportActionableDynamicQuery.getStagedModelType();
331
332 if (stagedModelType.getReferrerClassNameId() >= 0) {
333 Property classNameIdProperty = PropertyFactoryUtil.forName(
334 "classNameId");
335
336 dynamicQuery.add(classNameIdProperty.eq(
337 stagedModelType.getReferrerClassNameId()));
338 }
339 }
340 });
341
342 exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
343
344 exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());
345
346 exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod() {
347 @Override
348 public void performAction(Object object)
349 throws PortalException {
350 DLFileEntry stagedModel = (DLFileEntry)object;
351
352 StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
353 stagedModel);
354 }
355 });
356 exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
357 PortalUtil.getClassNameId(DLFileEntry.class.getName())));
358
359 return exportActionableDynamicQuery;
360 }
361
362
365 @Override
366 public PersistedModel deletePersistedModel(PersistedModel persistedModel)
367 throws PortalException {
368 return dlFileEntryLocalService.deleteDLFileEntry((DLFileEntry)persistedModel);
369 }
370
371 @Override
372 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
373 throws PortalException {
374 return dlFileEntryPersistence.findByPrimaryKey(primaryKeyObj);
375 }
376
377 @Override
378 public List<DLFileEntry> getDLFileEntriesByUuidAndCompanyId(String uuid,
379 long companyId) {
380 return dlFileEntryPersistence.findByUuid_C(uuid, companyId);
381 }
382
383 @Override
384 public List<DLFileEntry> getDLFileEntriesByUuidAndCompanyId(String uuid,
385 long companyId, int start, int end,
386 OrderByComparator<DLFileEntry> orderByComparator) {
387 return dlFileEntryPersistence.findByUuid_C(uuid, companyId, start, end,
388 orderByComparator);
389 }
390
391
399 @Override
400 public DLFileEntry getDLFileEntryByUuidAndGroupId(String uuid, long groupId)
401 throws PortalException {
402 return dlFileEntryPersistence.findByUUID_G(uuid, groupId);
403 }
404
405
416 @Override
417 public List<DLFileEntry> getDLFileEntries(int start, int end) {
418 return dlFileEntryPersistence.findAll(start, end);
419 }
420
421
426 @Override
427 public int getDLFileEntriesCount() {
428 return dlFileEntryPersistence.countAll();
429 }
430
431
437 @Indexable(type = IndexableType.REINDEX)
438 @Override
439 public DLFileEntry updateDLFileEntry(DLFileEntry dlFileEntry) {
440 return dlFileEntryPersistence.update(dlFileEntry);
441 }
442
443
448 public com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService getDLFileEntryLocalService() {
449 return dlFileEntryLocalService;
450 }
451
452
457 public void setDLFileEntryLocalService(
458 com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService dlFileEntryLocalService) {
459 this.dlFileEntryLocalService = dlFileEntryLocalService;
460 }
461
462
467 public com.liferay.portlet.documentlibrary.service.DLFileEntryService getDLFileEntryService() {
468 return dlFileEntryService;
469 }
470
471
476 public void setDLFileEntryService(
477 com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService) {
478 this.dlFileEntryService = dlFileEntryService;
479 }
480
481
486 public DLFileEntryPersistence getDLFileEntryPersistence() {
487 return dlFileEntryPersistence;
488 }
489
490
495 public void setDLFileEntryPersistence(
496 DLFileEntryPersistence dlFileEntryPersistence) {
497 this.dlFileEntryPersistence = dlFileEntryPersistence;
498 }
499
500
505 public DLFileEntryFinder getDLFileEntryFinder() {
506 return dlFileEntryFinder;
507 }
508
509
514 public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
515 this.dlFileEntryFinder = dlFileEntryFinder;
516 }
517
518
523 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
524 return counterLocalService;
525 }
526
527
532 public void setCounterLocalService(
533 com.liferay.counter.service.CounterLocalService counterLocalService) {
534 this.counterLocalService = counterLocalService;
535 }
536
537
542 public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
543 return classNameLocalService;
544 }
545
546
551 public void setClassNameLocalService(
552 com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
553 this.classNameLocalService = classNameLocalService;
554 }
555
556
561 public com.liferay.portal.service.ClassNameService getClassNameService() {
562 return classNameService;
563 }
564
565
570 public void setClassNameService(
571 com.liferay.portal.service.ClassNameService classNameService) {
572 this.classNameService = classNameService;
573 }
574
575
580 public ClassNamePersistence getClassNamePersistence() {
581 return classNamePersistence;
582 }
583
584
589 public void setClassNamePersistence(
590 ClassNamePersistence classNamePersistence) {
591 this.classNamePersistence = classNamePersistence;
592 }
593
594
599 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
600 return groupLocalService;
601 }
602
603
608 public void setGroupLocalService(
609 com.liferay.portal.service.GroupLocalService groupLocalService) {
610 this.groupLocalService = groupLocalService;
611 }
612
613
618 public com.liferay.portal.service.GroupService getGroupService() {
619 return groupService;
620 }
621
622
627 public void setGroupService(
628 com.liferay.portal.service.GroupService groupService) {
629 this.groupService = groupService;
630 }
631
632
637 public GroupPersistence getGroupPersistence() {
638 return groupPersistence;
639 }
640
641
646 public void setGroupPersistence(GroupPersistence groupPersistence) {
647 this.groupPersistence = groupPersistence;
648 }
649
650
655 public GroupFinder getGroupFinder() {
656 return groupFinder;
657 }
658
659
664 public void setGroupFinder(GroupFinder groupFinder) {
665 this.groupFinder = groupFinder;
666 }
667
668
673 public com.liferay.portal.service.ImageLocalService getImageLocalService() {
674 return imageLocalService;
675 }
676
677
682 public void setImageLocalService(
683 com.liferay.portal.service.ImageLocalService imageLocalService) {
684 this.imageLocalService = imageLocalService;
685 }
686
687
692 public com.liferay.portal.service.ImageService getImageService() {
693 return imageService;
694 }
695
696
701 public void setImageService(
702 com.liferay.portal.service.ImageService imageService) {
703 this.imageService = imageService;
704 }
705
706
711 public ImagePersistence getImagePersistence() {
712 return imagePersistence;
713 }
714
715
720 public void setImagePersistence(ImagePersistence imagePersistence) {
721 this.imagePersistence = imagePersistence;
722 }
723
724
729 public com.liferay.portal.service.LockLocalService getLockLocalService() {
730 return lockLocalService;
731 }
732
733
738 public void setLockLocalService(
739 com.liferay.portal.service.LockLocalService lockLocalService) {
740 this.lockLocalService = lockLocalService;
741 }
742
743
748 public LockPersistence getLockPersistence() {
749 return lockPersistence;
750 }
751
752
757 public void setLockPersistence(LockPersistence lockPersistence) {
758 this.lockPersistence = lockPersistence;
759 }
760
761
766 public LockFinder getLockFinder() {
767 return lockFinder;
768 }
769
770
775 public void setLockFinder(LockFinder lockFinder) {
776 this.lockFinder = lockFinder;
777 }
778
779
784 public com.liferay.portal.service.RepositoryLocalService getRepositoryLocalService() {
785 return repositoryLocalService;
786 }
787
788
793 public void setRepositoryLocalService(
794 com.liferay.portal.service.RepositoryLocalService repositoryLocalService) {
795 this.repositoryLocalService = repositoryLocalService;
796 }
797
798
803 public com.liferay.portal.service.RepositoryService getRepositoryService() {
804 return repositoryService;
805 }
806
807
812 public void setRepositoryService(
813 com.liferay.portal.service.RepositoryService repositoryService) {
814 this.repositoryService = repositoryService;
815 }
816
817
822 public RepositoryPersistence getRepositoryPersistence() {
823 return repositoryPersistence;
824 }
825
826
831 public void setRepositoryPersistence(
832 RepositoryPersistence repositoryPersistence) {
833 this.repositoryPersistence = repositoryPersistence;
834 }
835
836
841 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
842 return resourceLocalService;
843 }
844
845
850 public void setResourceLocalService(
851 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
852 this.resourceLocalService = resourceLocalService;
853 }
854
855
860 public com.liferay.portal.service.UserLocalService getUserLocalService() {
861 return userLocalService;
862 }
863
864
869 public void setUserLocalService(
870 com.liferay.portal.service.UserLocalService userLocalService) {
871 this.userLocalService = userLocalService;
872 }
873
874
879 public com.liferay.portal.service.UserService getUserService() {
880 return userService;
881 }
882
883
888 public void setUserService(
889 com.liferay.portal.service.UserService userService) {
890 this.userService = userService;
891 }
892
893
898 public UserPersistence getUserPersistence() {
899 return userPersistence;
900 }
901
902
907 public void setUserPersistence(UserPersistence userPersistence) {
908 this.userPersistence = userPersistence;
909 }
910
911
916 public UserFinder getUserFinder() {
917 return userFinder;
918 }
919
920
925 public void setUserFinder(UserFinder userFinder) {
926 this.userFinder = userFinder;
927 }
928
929
934 public com.liferay.portal.service.WebDAVPropsLocalService getWebDAVPropsLocalService() {
935 return webDAVPropsLocalService;
936 }
937
938
943 public void setWebDAVPropsLocalService(
944 com.liferay.portal.service.WebDAVPropsLocalService webDAVPropsLocalService) {
945 this.webDAVPropsLocalService = webDAVPropsLocalService;
946 }
947
948
953 public WebDAVPropsPersistence getWebDAVPropsPersistence() {
954 return webDAVPropsPersistence;
955 }
956
957
962 public void setWebDAVPropsPersistence(
963 WebDAVPropsPersistence webDAVPropsPersistence) {
964 this.webDAVPropsPersistence = webDAVPropsPersistence;
965 }
966
967
972 public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
973 return workflowInstanceLinkLocalService;
974 }
975
976
981 public void setWorkflowInstanceLinkLocalService(
982 com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
983 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
984 }
985
986
991 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
992 return workflowInstanceLinkPersistence;
993 }
994
995
1000 public void setWorkflowInstanceLinkPersistence(
1001 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
1002 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
1003 }
1004
1005
1010 public com.liferay.portlet.asset.service.AssetCategoryLocalService getAssetCategoryLocalService() {
1011 return assetCategoryLocalService;
1012 }
1013
1014
1019 public void setAssetCategoryLocalService(
1020 com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService) {
1021 this.assetCategoryLocalService = assetCategoryLocalService;
1022 }
1023
1024
1029 public com.liferay.portlet.asset.service.AssetCategoryService getAssetCategoryService() {
1030 return assetCategoryService;
1031 }
1032
1033
1038 public void setAssetCategoryService(
1039 com.liferay.portlet.asset.service.AssetCategoryService assetCategoryService) {
1040 this.assetCategoryService = assetCategoryService;
1041 }
1042
1043
1048 public AssetCategoryPersistence getAssetCategoryPersistence() {
1049 return assetCategoryPersistence;
1050 }
1051
1052
1057 public void setAssetCategoryPersistence(
1058 AssetCategoryPersistence assetCategoryPersistence) {
1059 this.assetCategoryPersistence = assetCategoryPersistence;
1060 }
1061
1062
1067 public AssetCategoryFinder getAssetCategoryFinder() {
1068 return assetCategoryFinder;
1069 }
1070
1071
1076 public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
1077 this.assetCategoryFinder = assetCategoryFinder;
1078 }
1079
1080
1085 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
1086 return assetEntryLocalService;
1087 }
1088
1089
1094 public void setAssetEntryLocalService(
1095 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
1096 this.assetEntryLocalService = assetEntryLocalService;
1097 }
1098
1099
1104 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
1105 return assetEntryService;
1106 }
1107
1108
1113 public void setAssetEntryService(
1114 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
1115 this.assetEntryService = assetEntryService;
1116 }
1117
1118
1123 public AssetEntryPersistence getAssetEntryPersistence() {
1124 return assetEntryPersistence;
1125 }
1126
1127
1132 public void setAssetEntryPersistence(
1133 AssetEntryPersistence assetEntryPersistence) {
1134 this.assetEntryPersistence = assetEntryPersistence;
1135 }
1136
1137
1142 public AssetEntryFinder getAssetEntryFinder() {
1143 return assetEntryFinder;
1144 }
1145
1146
1151 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1152 this.assetEntryFinder = assetEntryFinder;
1153 }
1154
1155
1160 public com.liferay.portlet.asset.service.AssetLinkLocalService getAssetLinkLocalService() {
1161 return assetLinkLocalService;
1162 }
1163
1164
1169 public void setAssetLinkLocalService(
1170 com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService) {
1171 this.assetLinkLocalService = assetLinkLocalService;
1172 }
1173
1174
1179 public AssetLinkPersistence getAssetLinkPersistence() {
1180 return assetLinkPersistence;
1181 }
1182
1183
1188 public void setAssetLinkPersistence(
1189 AssetLinkPersistence assetLinkPersistence) {
1190 this.assetLinkPersistence = assetLinkPersistence;
1191 }
1192
1193
1198 public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
1199 return assetTagLocalService;
1200 }
1201
1202
1207 public void setAssetTagLocalService(
1208 com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
1209 this.assetTagLocalService = assetTagLocalService;
1210 }
1211
1212
1217 public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
1218 return assetTagService;
1219 }
1220
1221
1226 public void setAssetTagService(
1227 com.liferay.portlet.asset.service.AssetTagService assetTagService) {
1228 this.assetTagService = assetTagService;
1229 }
1230
1231
1236 public AssetTagPersistence getAssetTagPersistence() {
1237 return assetTagPersistence;
1238 }
1239
1240
1245 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1246 this.assetTagPersistence = assetTagPersistence;
1247 }
1248
1249
1254 public AssetTagFinder getAssetTagFinder() {
1255 return assetTagFinder;
1256 }
1257
1258
1263 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1264 this.assetTagFinder = assetTagFinder;
1265 }
1266
1267
1272 public com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService getDLAppHelperLocalService() {
1273 return dlAppHelperLocalService;
1274 }
1275
1276
1281 public void setDLAppHelperLocalService(
1282 com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService) {
1283 this.dlAppHelperLocalService = dlAppHelperLocalService;
1284 }
1285
1286
1291 public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService getDDMStructureLocalService() {
1292 return ddmStructureLocalService;
1293 }
1294
1295
1300 public void setDDMStructureLocalService(
1301 com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService) {
1302 this.ddmStructureLocalService = ddmStructureLocalService;
1303 }
1304
1305
1310 public com.liferay.portlet.dynamicdatamapping.service.DDMStructureService getDDMStructureService() {
1311 return ddmStructureService;
1312 }
1313
1314
1319 public void setDDMStructureService(
1320 com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService) {
1321 this.ddmStructureService = ddmStructureService;
1322 }
1323
1324
1329 public DDMStructurePersistence getDDMStructurePersistence() {
1330 return ddmStructurePersistence;
1331 }
1332
1333
1338 public void setDDMStructurePersistence(
1339 DDMStructurePersistence ddmStructurePersistence) {
1340 this.ddmStructurePersistence = ddmStructurePersistence;
1341 }
1342
1343
1348 public DDMStructureFinder getDDMStructureFinder() {
1349 return ddmStructureFinder;
1350 }
1351
1352
1357 public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
1358 this.ddmStructureFinder = ddmStructureFinder;
1359 }
1360
1361
1366 public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
1367 return expandoRowLocalService;
1368 }
1369
1370
1375 public void setExpandoRowLocalService(
1376 com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
1377 this.expandoRowLocalService = expandoRowLocalService;
1378 }
1379
1380
1385 public ExpandoRowPersistence getExpandoRowPersistence() {
1386 return expandoRowPersistence;
1387 }
1388
1389
1394 public void setExpandoRowPersistence(
1395 ExpandoRowPersistence expandoRowPersistence) {
1396 this.expandoRowPersistence = expandoRowPersistence;
1397 }
1398
1399
1404 public com.liferay.portlet.expando.service.ExpandoTableLocalService getExpandoTableLocalService() {
1405 return expandoTableLocalService;
1406 }
1407
1408
1413 public void setExpandoTableLocalService(
1414 com.liferay.portlet.expando.service.ExpandoTableLocalService expandoTableLocalService) {
1415 this.expandoTableLocalService = expandoTableLocalService;
1416 }
1417
1418
1423 public ExpandoTablePersistence getExpandoTablePersistence() {
1424 return expandoTablePersistence;
1425 }
1426
1427
1432 public void setExpandoTablePersistence(
1433 ExpandoTablePersistence expandoTablePersistence) {
1434 this.expandoTablePersistence = expandoTablePersistence;
1435 }
1436
1437
1442 public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
1443 return trashEntryLocalService;
1444 }
1445
1446
1451 public void setTrashEntryLocalService(
1452 com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
1453 this.trashEntryLocalService = trashEntryLocalService;
1454 }
1455
1456
1461 public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
1462 return trashEntryService;
1463 }
1464
1465
1470 public void setTrashEntryService(
1471 com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
1472 this.trashEntryService = trashEntryService;
1473 }
1474
1475
1480 public TrashEntryPersistence getTrashEntryPersistence() {
1481 return trashEntryPersistence;
1482 }
1483
1484
1489 public void setTrashEntryPersistence(
1490 TrashEntryPersistence trashEntryPersistence) {
1491 this.trashEntryPersistence = trashEntryPersistence;
1492 }
1493
1494
1499 public com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService getDLFileEntryMetadataLocalService() {
1500 return dlFileEntryMetadataLocalService;
1501 }
1502
1503
1508 public void setDLFileEntryMetadataLocalService(
1509 com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService) {
1510 this.dlFileEntryMetadataLocalService = dlFileEntryMetadataLocalService;
1511 }
1512
1513
1518 public DLFileEntryMetadataPersistence getDLFileEntryMetadataPersistence() {
1519 return dlFileEntryMetadataPersistence;
1520 }
1521
1522
1527 public void setDLFileEntryMetadataPersistence(
1528 DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence) {
1529 this.dlFileEntryMetadataPersistence = dlFileEntryMetadataPersistence;
1530 }
1531
1532
1537 public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
1538 return dlFileEntryTypeLocalService;
1539 }
1540
1541
1546 public void setDLFileEntryTypeLocalService(
1547 com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
1548 this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
1549 }
1550
1551
1556 public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService getDLFileEntryTypeService() {
1557 return dlFileEntryTypeService;
1558 }
1559
1560
1565 public void setDLFileEntryTypeService(
1566 com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService) {
1567 this.dlFileEntryTypeService = dlFileEntryTypeService;
1568 }
1569
1570
1575 public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
1576 return dlFileEntryTypePersistence;
1577 }
1578
1579
1584 public void setDLFileEntryTypePersistence(
1585 DLFileEntryTypePersistence dlFileEntryTypePersistence) {
1586 this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
1587 }
1588
1589
1594 public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
1595 return dlFileEntryTypeFinder;
1596 }
1597
1598
1603 public void setDLFileEntryTypeFinder(
1604 DLFileEntryTypeFinder dlFileEntryTypeFinder) {
1605 this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
1606 }
1607
1608
1613 public com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService getDLFileVersionLocalService() {
1614 return dlFileVersionLocalService;
1615 }
1616
1617
1622 public void setDLFileVersionLocalService(
1623 com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService) {
1624 this.dlFileVersionLocalService = dlFileVersionLocalService;
1625 }
1626
1627
1632 public com.liferay.portlet.documentlibrary.service.DLFileVersionService getDLFileVersionService() {
1633 return dlFileVersionService;
1634 }
1635
1636
1641 public void setDLFileVersionService(
1642 com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService) {
1643 this.dlFileVersionService = dlFileVersionService;
1644 }
1645
1646
1651 public DLFileVersionPersistence getDLFileVersionPersistence() {
1652 return dlFileVersionPersistence;
1653 }
1654
1655
1660 public void setDLFileVersionPersistence(
1661 DLFileVersionPersistence dlFileVersionPersistence) {
1662 this.dlFileVersionPersistence = dlFileVersionPersistence;
1663 }
1664
1665
1670 public com.liferay.portlet.documentlibrary.service.DLFolderLocalService getDLFolderLocalService() {
1671 return dlFolderLocalService;
1672 }
1673
1674
1679 public void setDLFolderLocalService(
1680 com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService) {
1681 this.dlFolderLocalService = dlFolderLocalService;
1682 }
1683
1684
1689 public com.liferay.portlet.documentlibrary.service.DLFolderService getDLFolderService() {
1690 return dlFolderService;
1691 }
1692
1693
1698 public void setDLFolderService(
1699 com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService) {
1700 this.dlFolderService = dlFolderService;
1701 }
1702
1703
1708 public DLFolderPersistence getDLFolderPersistence() {
1709 return dlFolderPersistence;
1710 }
1711
1712
1717 public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
1718 this.dlFolderPersistence = dlFolderPersistence;
1719 }
1720
1721
1726 public DLFolderFinder getDLFolderFinder() {
1727 return dlFolderFinder;
1728 }
1729
1730
1735 public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
1736 this.dlFolderFinder = dlFolderFinder;
1737 }
1738
1739 public void afterPropertiesSet() {
1740 persistedModelLocalServiceRegistry.register("com.liferay.portlet.documentlibrary.model.DLFileEntry",
1741 dlFileEntryLocalService);
1742 }
1743
1744 public void destroy() {
1745 persistedModelLocalServiceRegistry.unregister(
1746 "com.liferay.portlet.documentlibrary.model.DLFileEntry");
1747 }
1748
1749
1754 @Override
1755 public String getBeanIdentifier() {
1756 return _beanIdentifier;
1757 }
1758
1759
1764 @Override
1765 public void setBeanIdentifier(String beanIdentifier) {
1766 _beanIdentifier = beanIdentifier;
1767 }
1768
1769 protected Class<?> getModelClass() {
1770 return DLFileEntry.class;
1771 }
1772
1773 protected String getModelClassName() {
1774 return DLFileEntry.class.getName();
1775 }
1776
1777
1782 protected void runSQL(String sql) {
1783 try {
1784 DataSource dataSource = dlFileEntryPersistence.getDataSource();
1785
1786 DB db = DBFactoryUtil.getDB();
1787
1788 sql = db.buildSQL(sql);
1789 sql = PortalUtil.transformSQL(sql);
1790
1791 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1792 sql, new int[0]);
1793
1794 sqlUpdate.update();
1795 }
1796 catch (Exception e) {
1797 throw new SystemException(e);
1798 }
1799 }
1800
1801 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService.class)
1802 protected com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService dlFileEntryLocalService;
1803 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryService.class)
1804 protected com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService;
1805 @BeanReference(type = DLFileEntryPersistence.class)
1806 protected DLFileEntryPersistence dlFileEntryPersistence;
1807 @BeanReference(type = DLFileEntryFinder.class)
1808 protected DLFileEntryFinder dlFileEntryFinder;
1809 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1810 protected com.liferay.counter.service.CounterLocalService counterLocalService;
1811 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1812 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1813 @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
1814 protected com.liferay.portal.service.ClassNameService classNameService;
1815 @BeanReference(type = ClassNamePersistence.class)
1816 protected ClassNamePersistence classNamePersistence;
1817 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1818 protected com.liferay.portal.service.GroupLocalService groupLocalService;
1819 @BeanReference(type = com.liferay.portal.service.GroupService.class)
1820 protected com.liferay.portal.service.GroupService groupService;
1821 @BeanReference(type = GroupPersistence.class)
1822 protected GroupPersistence groupPersistence;
1823 @BeanReference(type = GroupFinder.class)
1824 protected GroupFinder groupFinder;
1825 @BeanReference(type = com.liferay.portal.service.ImageLocalService.class)
1826 protected com.liferay.portal.service.ImageLocalService imageLocalService;
1827 @BeanReference(type = com.liferay.portal.service.ImageService.class)
1828 protected com.liferay.portal.service.ImageService imageService;
1829 @BeanReference(type = ImagePersistence.class)
1830 protected ImagePersistence imagePersistence;
1831 @BeanReference(type = com.liferay.portal.service.LockLocalService.class)
1832 protected com.liferay.portal.service.LockLocalService lockLocalService;
1833 @BeanReference(type = LockPersistence.class)
1834 protected LockPersistence lockPersistence;
1835 @BeanReference(type = LockFinder.class)
1836 protected LockFinder lockFinder;
1837 @BeanReference(type = com.liferay.portal.service.RepositoryLocalService.class)
1838 protected com.liferay.portal.service.RepositoryLocalService repositoryLocalService;
1839 @BeanReference(type = com.liferay.portal.service.RepositoryService.class)
1840 protected com.liferay.portal.service.RepositoryService repositoryService;
1841 @BeanReference(type = RepositoryPersistence.class)
1842 protected RepositoryPersistence repositoryPersistence;
1843 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1844 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1845 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1846 protected com.liferay.portal.service.UserLocalService userLocalService;
1847 @BeanReference(type = com.liferay.portal.service.UserService.class)
1848 protected com.liferay.portal.service.UserService userService;
1849 @BeanReference(type = UserPersistence.class)
1850 protected UserPersistence userPersistence;
1851 @BeanReference(type = UserFinder.class)
1852 protected UserFinder userFinder;
1853 @BeanReference(type = com.liferay.portal.service.WebDAVPropsLocalService.class)
1854 protected com.liferay.portal.service.WebDAVPropsLocalService webDAVPropsLocalService;
1855 @BeanReference(type = WebDAVPropsPersistence.class)
1856 protected WebDAVPropsPersistence webDAVPropsPersistence;
1857 @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1858 protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1859 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1860 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1861 @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryLocalService.class)
1862 protected com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService;
1863 @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryService.class)
1864 protected com.liferay.portlet.asset.service.AssetCategoryService assetCategoryService;
1865 @BeanReference(type = AssetCategoryPersistence.class)
1866 protected AssetCategoryPersistence assetCategoryPersistence;
1867 @BeanReference(type = AssetCategoryFinder.class)
1868 protected AssetCategoryFinder assetCategoryFinder;
1869 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1870 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1871 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1872 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1873 @BeanReference(type = AssetEntryPersistence.class)
1874 protected AssetEntryPersistence assetEntryPersistence;
1875 @BeanReference(type = AssetEntryFinder.class)
1876 protected AssetEntryFinder assetEntryFinder;
1877 @BeanReference(type = com.liferay.portlet.asset.service.AssetLinkLocalService.class)
1878 protected com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService;
1879 @BeanReference(type = AssetLinkPersistence.class)
1880 protected AssetLinkPersistence assetLinkPersistence;
1881 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1882 protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1883 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
1884 protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
1885 @BeanReference(type = AssetTagPersistence.class)
1886 protected AssetTagPersistence assetTagPersistence;
1887 @BeanReference(type = AssetTagFinder.class)
1888 protected AssetTagFinder assetTagFinder;
1889 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService.class)
1890 protected com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService;
1891 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService.class)
1892 protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService;
1893 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureService.class)
1894 protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService;
1895 @BeanReference(type = DDMStructurePersistence.class)
1896 protected DDMStructurePersistence ddmStructurePersistence;
1897 @BeanReference(type = DDMStructureFinder.class)
1898 protected DDMStructureFinder ddmStructureFinder;
1899 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1900 protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1901 @BeanReference(type = ExpandoRowPersistence.class)
1902 protected ExpandoRowPersistence expandoRowPersistence;
1903 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoTableLocalService.class)
1904 protected com.liferay.portlet.expando.service.ExpandoTableLocalService expandoTableLocalService;
1905 @BeanReference(type = ExpandoTablePersistence.class)
1906 protected ExpandoTablePersistence expandoTablePersistence;
1907 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1908 protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1909 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1910 protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1911 @BeanReference(type = TrashEntryPersistence.class)
1912 protected TrashEntryPersistence trashEntryPersistence;
1913 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService.class)
1914 protected com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService;
1915 @BeanReference(type = DLFileEntryMetadataPersistence.class)
1916 protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence;
1917 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService.class)
1918 protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
1919 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService.class)
1920 protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService;
1921 @BeanReference(type = DLFileEntryTypePersistence.class)
1922 protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
1923 @BeanReference(type = DLFileEntryTypeFinder.class)
1924 protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
1925 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService.class)
1926 protected com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService;
1927 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileVersionService.class)
1928 protected com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService;
1929 @BeanReference(type = DLFileVersionPersistence.class)
1930 protected DLFileVersionPersistence dlFileVersionPersistence;
1931 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFolderLocalService.class)
1932 protected com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService;
1933 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFolderService.class)
1934 protected com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService;
1935 @BeanReference(type = DLFolderPersistence.class)
1936 protected DLFolderPersistence dlFolderPersistence;
1937 @BeanReference(type = DLFolderFinder.class)
1938 protected DLFolderFinder dlFolderFinder;
1939 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1940 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1941 private String _beanIdentifier;
1942 }