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.search.Indexable;
036 import com.liferay.portal.kernel.search.IndexableType;
037 import com.liferay.portal.kernel.util.OrderByComparator;
038 import com.liferay.portal.model.PersistedModel;
039 import com.liferay.portal.service.BaseLocalServiceImpl;
040 import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
041 import com.liferay.portal.service.persistence.ClassNamePersistence;
042 import com.liferay.portal.service.persistence.GroupFinder;
043 import com.liferay.portal.service.persistence.GroupPersistence;
044 import com.liferay.portal.service.persistence.ImagePersistence;
045 import com.liferay.portal.service.persistence.RepositoryPersistence;
046 import com.liferay.portal.service.persistence.UserFinder;
047 import com.liferay.portal.service.persistence.UserPersistence;
048 import com.liferay.portal.service.persistence.WebDAVPropsPersistence;
049 import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
050 import com.liferay.portal.util.PortalUtil;
051
052 import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
053 import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
054 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
055 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
056 import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
057 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
058 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
059 import com.liferay.portlet.documentlibrary.model.DLFileEntry;
060 import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
061 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
062 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataFinder;
063 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistence;
064 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
065 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
066 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
067 import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
068 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
069 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
070 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
071 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
072 import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
073 import com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence;
074 import com.liferay.portlet.exportimport.lar.ExportImportHelperUtil;
075 import com.liferay.portlet.exportimport.lar.ManifestSummary;
076 import com.liferay.portlet.exportimport.lar.PortletDataContext;
077 import com.liferay.portlet.exportimport.lar.StagedModelDataHandlerUtil;
078 import com.liferay.portlet.exportimport.lar.StagedModelType;
079 import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
080
081 import java.io.Serializable;
082
083 import java.util.List;
084
085 import javax.sql.DataSource;
086
087
099 @ProviderType
100 public abstract class DLFileEntryLocalServiceBaseImpl
101 extends BaseLocalServiceImpl implements DLFileEntryLocalService,
102 IdentifiableBean {
103
108
109
115 @Indexable(type = IndexableType.REINDEX)
116 @Override
117 public DLFileEntry addDLFileEntry(DLFileEntry dlFileEntry) {
118 dlFileEntry.setNew(true);
119
120 return dlFileEntryPersistence.update(dlFileEntry);
121 }
122
123
129 @Override
130 public DLFileEntry createDLFileEntry(long fileEntryId) {
131 return dlFileEntryPersistence.create(fileEntryId);
132 }
133
134
141 @Indexable(type = IndexableType.DELETE)
142 @Override
143 public DLFileEntry deleteDLFileEntry(long fileEntryId)
144 throws PortalException {
145 return dlFileEntryPersistence.remove(fileEntryId);
146 }
147
148
154 @Indexable(type = IndexableType.DELETE)
155 @Override
156 public DLFileEntry deleteDLFileEntry(DLFileEntry dlFileEntry) {
157 return dlFileEntryPersistence.remove(dlFileEntry);
158 }
159
160 @Override
161 public DynamicQuery dynamicQuery() {
162 Class<?> clazz = getClass();
163
164 return DynamicQueryFactoryUtil.forClass(DLFileEntry.class,
165 clazz.getClassLoader());
166 }
167
168
174 @Override
175 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
176 return dlFileEntryPersistence.findWithDynamicQuery(dynamicQuery);
177 }
178
179
191 @Override
192 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
193 int end) {
194 return dlFileEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
195 end);
196 }
197
198
211 @Override
212 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
213 int end, OrderByComparator<T> orderByComparator) {
214 return dlFileEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
215 end, orderByComparator);
216 }
217
218
224 @Override
225 public long dynamicQueryCount(DynamicQuery dynamicQuery) {
226 return dlFileEntryPersistence.countWithDynamicQuery(dynamicQuery);
227 }
228
229
236 @Override
237 public long dynamicQueryCount(DynamicQuery dynamicQuery,
238 Projection projection) {
239 return dlFileEntryPersistence.countWithDynamicQuery(dynamicQuery,
240 projection);
241 }
242
243 @Override
244 public DLFileEntry fetchDLFileEntry(long fileEntryId) {
245 return dlFileEntryPersistence.fetchByPrimaryKey(fileEntryId);
246 }
247
248
255 @Override
256 public DLFileEntry fetchDLFileEntryByUuidAndGroupId(String uuid,
257 long groupId) {
258 return dlFileEntryPersistence.fetchByUUID_G(uuid, groupId);
259 }
260
261
268 @Override
269 public DLFileEntry getDLFileEntry(long fileEntryId)
270 throws PortalException {
271 return dlFileEntryPersistence.findByPrimaryKey(fileEntryId);
272 }
273
274 @Override
275 public ActionableDynamicQuery getActionableDynamicQuery() {
276 ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
277
278 actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil.getService());
279 actionableDynamicQuery.setClass(DLFileEntry.class);
280 actionableDynamicQuery.setClassLoader(getClassLoader());
281
282 actionableDynamicQuery.setPrimaryKeyPropertyName("fileEntryId");
283
284 return actionableDynamicQuery;
285 }
286
287 protected void initActionableDynamicQuery(
288 ActionableDynamicQuery actionableDynamicQuery) {
289 actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil.getService());
290 actionableDynamicQuery.setClass(DLFileEntry.class);
291 actionableDynamicQuery.setClassLoader(getClassLoader());
292
293 actionableDynamicQuery.setPrimaryKeyPropertyName("fileEntryId");
294 }
295
296 @Override
297 public ExportActionableDynamicQuery getExportActionableDynamicQuery(
298 final PortletDataContext portletDataContext) {
299 final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
300 @Override
301 public long performCount() throws PortalException {
302 ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
303
304 StagedModelType stagedModelType = getStagedModelType();
305
306 long modelAdditionCount = super.performCount();
307
308 manifestSummary.addModelAdditionCount(stagedModelType.toString(),
309 modelAdditionCount);
310
311 long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
312 stagedModelType);
313
314 manifestSummary.addModelDeletionCount(stagedModelType.toString(),
315 modelDeletionCount);
316
317 return modelAdditionCount;
318 }
319 };
320
321 initActionableDynamicQuery(exportActionableDynamicQuery);
322
323 exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
324 @Override
325 public void addCriteria(DynamicQuery dynamicQuery) {
326 portletDataContext.addDateRangeCriteria(dynamicQuery,
327 "modifiedDate");
328
329 StagedModelType stagedModelType = exportActionableDynamicQuery.getStagedModelType();
330
331 if (stagedModelType.getReferrerClassNameId() >= 0) {
332 Property classNameIdProperty = PropertyFactoryUtil.forName(
333 "classNameId");
334
335 dynamicQuery.add(classNameIdProperty.eq(
336 stagedModelType.getReferrerClassNameId()));
337 }
338 }
339 });
340
341 exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
342
343 exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());
344
345 exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod() {
346 @Override
347 public void performAction(Object object)
348 throws PortalException {
349 DLFileEntry stagedModel = (DLFileEntry)object;
350
351 StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
352 stagedModel);
353 }
354 });
355 exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
356 PortalUtil.getClassNameId(DLFileEntry.class.getName())));
357
358 return exportActionableDynamicQuery;
359 }
360
361
364 @Override
365 public PersistedModel deletePersistedModel(PersistedModel persistedModel)
366 throws PortalException {
367 return dlFileEntryLocalService.deleteDLFileEntry((DLFileEntry)persistedModel);
368 }
369
370 @Override
371 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
372 throws PortalException {
373 return dlFileEntryPersistence.findByPrimaryKey(primaryKeyObj);
374 }
375
376
383 @Override
384 public List<DLFileEntry> getDLFileEntriesByUuidAndCompanyId(String uuid,
385 long companyId) {
386 return dlFileEntryPersistence.findByUuid_C(uuid, companyId);
387 }
388
389
399 @Override
400 public List<DLFileEntry> getDLFileEntriesByUuidAndCompanyId(String uuid,
401 long companyId, int start, int end,
402 OrderByComparator<DLFileEntry> orderByComparator) {
403 return dlFileEntryPersistence.findByUuid_C(uuid, companyId, start, end,
404 orderByComparator);
405 }
406
407
415 @Override
416 public DLFileEntry getDLFileEntryByUuidAndGroupId(String uuid, long groupId)
417 throws PortalException {
418 return dlFileEntryPersistence.findByUUID_G(uuid, groupId);
419 }
420
421
432 @Override
433 public List<DLFileEntry> getDLFileEntries(int start, int end) {
434 return dlFileEntryPersistence.findAll(start, end);
435 }
436
437
442 @Override
443 public int getDLFileEntriesCount() {
444 return dlFileEntryPersistence.countAll();
445 }
446
447
453 @Indexable(type = IndexableType.REINDEX)
454 @Override
455 public DLFileEntry updateDLFileEntry(DLFileEntry dlFileEntry) {
456 return dlFileEntryPersistence.update(dlFileEntry);
457 }
458
459
464 public DLFileEntryLocalService getDLFileEntryLocalService() {
465 return dlFileEntryLocalService;
466 }
467
468
473 public void setDLFileEntryLocalService(
474 DLFileEntryLocalService dlFileEntryLocalService) {
475 this.dlFileEntryLocalService = dlFileEntryLocalService;
476 }
477
478
483 public com.liferay.portlet.documentlibrary.service.DLFileEntryService getDLFileEntryService() {
484 return dlFileEntryService;
485 }
486
487
492 public void setDLFileEntryService(
493 com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService) {
494 this.dlFileEntryService = dlFileEntryService;
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 com.liferay.portal.service.ClassNameService getClassNameService() {
578 return classNameService;
579 }
580
581
586 public void setClassNameService(
587 com.liferay.portal.service.ClassNameService classNameService) {
588 this.classNameService = classNameService;
589 }
590
591
596 public ClassNamePersistence getClassNamePersistence() {
597 return classNamePersistence;
598 }
599
600
605 public void setClassNamePersistence(
606 ClassNamePersistence classNamePersistence) {
607 this.classNamePersistence = classNamePersistence;
608 }
609
610
615 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
616 return groupLocalService;
617 }
618
619
624 public void setGroupLocalService(
625 com.liferay.portal.service.GroupLocalService groupLocalService) {
626 this.groupLocalService = groupLocalService;
627 }
628
629
634 public com.liferay.portal.service.GroupService getGroupService() {
635 return groupService;
636 }
637
638
643 public void setGroupService(
644 com.liferay.portal.service.GroupService groupService) {
645 this.groupService = groupService;
646 }
647
648
653 public GroupPersistence getGroupPersistence() {
654 return groupPersistence;
655 }
656
657
662 public void setGroupPersistence(GroupPersistence groupPersistence) {
663 this.groupPersistence = groupPersistence;
664 }
665
666
671 public GroupFinder getGroupFinder() {
672 return groupFinder;
673 }
674
675
680 public void setGroupFinder(GroupFinder groupFinder) {
681 this.groupFinder = groupFinder;
682 }
683
684
689 public com.liferay.portal.service.ImageLocalService getImageLocalService() {
690 return imageLocalService;
691 }
692
693
698 public void setImageLocalService(
699 com.liferay.portal.service.ImageLocalService imageLocalService) {
700 this.imageLocalService = imageLocalService;
701 }
702
703
708 public com.liferay.portal.service.ImageService getImageService() {
709 return imageService;
710 }
711
712
717 public void setImageService(
718 com.liferay.portal.service.ImageService imageService) {
719 this.imageService = imageService;
720 }
721
722
727 public ImagePersistence getImagePersistence() {
728 return imagePersistence;
729 }
730
731
736 public void setImagePersistence(ImagePersistence imagePersistence) {
737 this.imagePersistence = imagePersistence;
738 }
739
740
745 public com.liferay.portal.service.RepositoryLocalService getRepositoryLocalService() {
746 return repositoryLocalService;
747 }
748
749
754 public void setRepositoryLocalService(
755 com.liferay.portal.service.RepositoryLocalService repositoryLocalService) {
756 this.repositoryLocalService = repositoryLocalService;
757 }
758
759
764 public com.liferay.portal.service.RepositoryService getRepositoryService() {
765 return repositoryService;
766 }
767
768
773 public void setRepositoryService(
774 com.liferay.portal.service.RepositoryService repositoryService) {
775 this.repositoryService = repositoryService;
776 }
777
778
783 public RepositoryPersistence getRepositoryPersistence() {
784 return repositoryPersistence;
785 }
786
787
792 public void setRepositoryPersistence(
793 RepositoryPersistence repositoryPersistence) {
794 this.repositoryPersistence = repositoryPersistence;
795 }
796
797
802 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
803 return resourceLocalService;
804 }
805
806
811 public void setResourceLocalService(
812 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
813 this.resourceLocalService = resourceLocalService;
814 }
815
816
821 public com.liferay.portal.service.UserLocalService getUserLocalService() {
822 return userLocalService;
823 }
824
825
830 public void setUserLocalService(
831 com.liferay.portal.service.UserLocalService userLocalService) {
832 this.userLocalService = userLocalService;
833 }
834
835
840 public com.liferay.portal.service.UserService getUserService() {
841 return userService;
842 }
843
844
849 public void setUserService(
850 com.liferay.portal.service.UserService userService) {
851 this.userService = userService;
852 }
853
854
859 public UserPersistence getUserPersistence() {
860 return userPersistence;
861 }
862
863
868 public void setUserPersistence(UserPersistence userPersistence) {
869 this.userPersistence = userPersistence;
870 }
871
872
877 public UserFinder getUserFinder() {
878 return userFinder;
879 }
880
881
886 public void setUserFinder(UserFinder userFinder) {
887 this.userFinder = userFinder;
888 }
889
890
895 public com.liferay.portal.service.WebDAVPropsLocalService getWebDAVPropsLocalService() {
896 return webDAVPropsLocalService;
897 }
898
899
904 public void setWebDAVPropsLocalService(
905 com.liferay.portal.service.WebDAVPropsLocalService webDAVPropsLocalService) {
906 this.webDAVPropsLocalService = webDAVPropsLocalService;
907 }
908
909
914 public WebDAVPropsPersistence getWebDAVPropsPersistence() {
915 return webDAVPropsPersistence;
916 }
917
918
923 public void setWebDAVPropsPersistence(
924 WebDAVPropsPersistence webDAVPropsPersistence) {
925 this.webDAVPropsPersistence = webDAVPropsPersistence;
926 }
927
928
933 public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
934 return workflowInstanceLinkLocalService;
935 }
936
937
942 public void setWorkflowInstanceLinkLocalService(
943 com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
944 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
945 }
946
947
952 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
953 return workflowInstanceLinkPersistence;
954 }
955
956
961 public void setWorkflowInstanceLinkPersistence(
962 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
963 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
964 }
965
966
971 public com.liferay.portlet.asset.service.AssetCategoryLocalService getAssetCategoryLocalService() {
972 return assetCategoryLocalService;
973 }
974
975
980 public void setAssetCategoryLocalService(
981 com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService) {
982 this.assetCategoryLocalService = assetCategoryLocalService;
983 }
984
985
990 public com.liferay.portlet.asset.service.AssetCategoryService getAssetCategoryService() {
991 return assetCategoryService;
992 }
993
994
999 public void setAssetCategoryService(
1000 com.liferay.portlet.asset.service.AssetCategoryService assetCategoryService) {
1001 this.assetCategoryService = assetCategoryService;
1002 }
1003
1004
1009 public AssetCategoryPersistence getAssetCategoryPersistence() {
1010 return assetCategoryPersistence;
1011 }
1012
1013
1018 public void setAssetCategoryPersistence(
1019 AssetCategoryPersistence assetCategoryPersistence) {
1020 this.assetCategoryPersistence = assetCategoryPersistence;
1021 }
1022
1023
1028 public AssetCategoryFinder getAssetCategoryFinder() {
1029 return assetCategoryFinder;
1030 }
1031
1032
1037 public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
1038 this.assetCategoryFinder = assetCategoryFinder;
1039 }
1040
1041
1046 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
1047 return assetEntryLocalService;
1048 }
1049
1050
1055 public void setAssetEntryLocalService(
1056 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
1057 this.assetEntryLocalService = assetEntryLocalService;
1058 }
1059
1060
1065 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
1066 return assetEntryService;
1067 }
1068
1069
1074 public void setAssetEntryService(
1075 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
1076 this.assetEntryService = assetEntryService;
1077 }
1078
1079
1084 public AssetEntryPersistence getAssetEntryPersistence() {
1085 return assetEntryPersistence;
1086 }
1087
1088
1093 public void setAssetEntryPersistence(
1094 AssetEntryPersistence assetEntryPersistence) {
1095 this.assetEntryPersistence = assetEntryPersistence;
1096 }
1097
1098
1103 public AssetEntryFinder getAssetEntryFinder() {
1104 return assetEntryFinder;
1105 }
1106
1107
1112 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1113 this.assetEntryFinder = assetEntryFinder;
1114 }
1115
1116
1121 public com.liferay.portlet.asset.service.AssetLinkLocalService getAssetLinkLocalService() {
1122 return assetLinkLocalService;
1123 }
1124
1125
1130 public void setAssetLinkLocalService(
1131 com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService) {
1132 this.assetLinkLocalService = assetLinkLocalService;
1133 }
1134
1135
1140 public AssetLinkPersistence getAssetLinkPersistence() {
1141 return assetLinkPersistence;
1142 }
1143
1144
1149 public void setAssetLinkPersistence(
1150 AssetLinkPersistence assetLinkPersistence) {
1151 this.assetLinkPersistence = assetLinkPersistence;
1152 }
1153
1154
1159 public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
1160 return assetTagLocalService;
1161 }
1162
1163
1168 public void setAssetTagLocalService(
1169 com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
1170 this.assetTagLocalService = assetTagLocalService;
1171 }
1172
1173
1178 public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
1179 return assetTagService;
1180 }
1181
1182
1187 public void setAssetTagService(
1188 com.liferay.portlet.asset.service.AssetTagService assetTagService) {
1189 this.assetTagService = assetTagService;
1190 }
1191
1192
1197 public AssetTagPersistence getAssetTagPersistence() {
1198 return assetTagPersistence;
1199 }
1200
1201
1206 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1207 this.assetTagPersistence = assetTagPersistence;
1208 }
1209
1210
1215 public AssetTagFinder getAssetTagFinder() {
1216 return assetTagFinder;
1217 }
1218
1219
1224 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1225 this.assetTagFinder = assetTagFinder;
1226 }
1227
1228
1233 public com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService getDLAppHelperLocalService() {
1234 return dlAppHelperLocalService;
1235 }
1236
1237
1242 public void setDLAppHelperLocalService(
1243 com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService) {
1244 this.dlAppHelperLocalService = dlAppHelperLocalService;
1245 }
1246
1247
1252 public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService getDDMStructureLocalService() {
1253 return ddmStructureLocalService;
1254 }
1255
1256
1261 public void setDDMStructureLocalService(
1262 com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService) {
1263 this.ddmStructureLocalService = ddmStructureLocalService;
1264 }
1265
1266
1271 public com.liferay.portlet.dynamicdatamapping.service.DDMStructureService getDDMStructureService() {
1272 return ddmStructureService;
1273 }
1274
1275
1280 public void setDDMStructureService(
1281 com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService) {
1282 this.ddmStructureService = ddmStructureService;
1283 }
1284
1285
1290 public DDMStructurePersistence getDDMStructurePersistence() {
1291 return ddmStructurePersistence;
1292 }
1293
1294
1299 public void setDDMStructurePersistence(
1300 DDMStructurePersistence ddmStructurePersistence) {
1301 this.ddmStructurePersistence = ddmStructurePersistence;
1302 }
1303
1304
1309 public DDMStructureFinder getDDMStructureFinder() {
1310 return ddmStructureFinder;
1311 }
1312
1313
1318 public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
1319 this.ddmStructureFinder = ddmStructureFinder;
1320 }
1321
1322
1327 public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
1328 return expandoRowLocalService;
1329 }
1330
1331
1336 public void setExpandoRowLocalService(
1337 com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
1338 this.expandoRowLocalService = expandoRowLocalService;
1339 }
1340
1341
1346 public ExpandoRowPersistence getExpandoRowPersistence() {
1347 return expandoRowPersistence;
1348 }
1349
1350
1355 public void setExpandoRowPersistence(
1356 ExpandoRowPersistence expandoRowPersistence) {
1357 this.expandoRowPersistence = expandoRowPersistence;
1358 }
1359
1360
1365 public com.liferay.portlet.expando.service.ExpandoTableLocalService getExpandoTableLocalService() {
1366 return expandoTableLocalService;
1367 }
1368
1369
1374 public void setExpandoTableLocalService(
1375 com.liferay.portlet.expando.service.ExpandoTableLocalService expandoTableLocalService) {
1376 this.expandoTableLocalService = expandoTableLocalService;
1377 }
1378
1379
1384 public ExpandoTablePersistence getExpandoTablePersistence() {
1385 return expandoTablePersistence;
1386 }
1387
1388
1393 public void setExpandoTablePersistence(
1394 ExpandoTablePersistence expandoTablePersistence) {
1395 this.expandoTablePersistence = expandoTablePersistence;
1396 }
1397
1398
1403 public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
1404 return trashEntryLocalService;
1405 }
1406
1407
1412 public void setTrashEntryLocalService(
1413 com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
1414 this.trashEntryLocalService = trashEntryLocalService;
1415 }
1416
1417
1422 public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
1423 return trashEntryService;
1424 }
1425
1426
1431 public void setTrashEntryService(
1432 com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
1433 this.trashEntryService = trashEntryService;
1434 }
1435
1436
1441 public TrashEntryPersistence getTrashEntryPersistence() {
1442 return trashEntryPersistence;
1443 }
1444
1445
1450 public void setTrashEntryPersistence(
1451 TrashEntryPersistence trashEntryPersistence) {
1452 this.trashEntryPersistence = trashEntryPersistence;
1453 }
1454
1455
1460 public com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService getDLFileEntryMetadataLocalService() {
1461 return dlFileEntryMetadataLocalService;
1462 }
1463
1464
1469 public void setDLFileEntryMetadataLocalService(
1470 com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService) {
1471 this.dlFileEntryMetadataLocalService = dlFileEntryMetadataLocalService;
1472 }
1473
1474
1479 public DLFileEntryMetadataPersistence getDLFileEntryMetadataPersistence() {
1480 return dlFileEntryMetadataPersistence;
1481 }
1482
1483
1488 public void setDLFileEntryMetadataPersistence(
1489 DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence) {
1490 this.dlFileEntryMetadataPersistence = dlFileEntryMetadataPersistence;
1491 }
1492
1493
1498 public DLFileEntryMetadataFinder getDLFileEntryMetadataFinder() {
1499 return dlFileEntryMetadataFinder;
1500 }
1501
1502
1507 public void setDLFileEntryMetadataFinder(
1508 DLFileEntryMetadataFinder dlFileEntryMetadataFinder) {
1509 this.dlFileEntryMetadataFinder = dlFileEntryMetadataFinder;
1510 }
1511
1512
1517 public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
1518 return dlFileEntryTypeLocalService;
1519 }
1520
1521
1526 public void setDLFileEntryTypeLocalService(
1527 com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
1528 this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
1529 }
1530
1531
1536 public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService getDLFileEntryTypeService() {
1537 return dlFileEntryTypeService;
1538 }
1539
1540
1545 public void setDLFileEntryTypeService(
1546 com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService) {
1547 this.dlFileEntryTypeService = dlFileEntryTypeService;
1548 }
1549
1550
1555 public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
1556 return dlFileEntryTypePersistence;
1557 }
1558
1559
1564 public void setDLFileEntryTypePersistence(
1565 DLFileEntryTypePersistence dlFileEntryTypePersistence) {
1566 this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
1567 }
1568
1569
1574 public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
1575 return dlFileEntryTypeFinder;
1576 }
1577
1578
1583 public void setDLFileEntryTypeFinder(
1584 DLFileEntryTypeFinder dlFileEntryTypeFinder) {
1585 this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
1586 }
1587
1588
1593 public com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService getDLFileVersionLocalService() {
1594 return dlFileVersionLocalService;
1595 }
1596
1597
1602 public void setDLFileVersionLocalService(
1603 com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService) {
1604 this.dlFileVersionLocalService = dlFileVersionLocalService;
1605 }
1606
1607
1612 public com.liferay.portlet.documentlibrary.service.DLFileVersionService getDLFileVersionService() {
1613 return dlFileVersionService;
1614 }
1615
1616
1621 public void setDLFileVersionService(
1622 com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService) {
1623 this.dlFileVersionService = dlFileVersionService;
1624 }
1625
1626
1631 public DLFileVersionPersistence getDLFileVersionPersistence() {
1632 return dlFileVersionPersistence;
1633 }
1634
1635
1640 public void setDLFileVersionPersistence(
1641 DLFileVersionPersistence dlFileVersionPersistence) {
1642 this.dlFileVersionPersistence = dlFileVersionPersistence;
1643 }
1644
1645
1650 public com.liferay.portlet.documentlibrary.service.DLFolderLocalService getDLFolderLocalService() {
1651 return dlFolderLocalService;
1652 }
1653
1654
1659 public void setDLFolderLocalService(
1660 com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService) {
1661 this.dlFolderLocalService = dlFolderLocalService;
1662 }
1663
1664
1669 public com.liferay.portlet.documentlibrary.service.DLFolderService getDLFolderService() {
1670 return dlFolderService;
1671 }
1672
1673
1678 public void setDLFolderService(
1679 com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService) {
1680 this.dlFolderService = dlFolderService;
1681 }
1682
1683
1688 public DLFolderPersistence getDLFolderPersistence() {
1689 return dlFolderPersistence;
1690 }
1691
1692
1697 public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
1698 this.dlFolderPersistence = dlFolderPersistence;
1699 }
1700
1701
1706 public DLFolderFinder getDLFolderFinder() {
1707 return dlFolderFinder;
1708 }
1709
1710
1715 public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
1716 this.dlFolderFinder = dlFolderFinder;
1717 }
1718
1719 public void afterPropertiesSet() {
1720 persistedModelLocalServiceRegistry.register("com.liferay.portlet.documentlibrary.model.DLFileEntry",
1721 dlFileEntryLocalService);
1722 }
1723
1724 public void destroy() {
1725 persistedModelLocalServiceRegistry.unregister(
1726 "com.liferay.portlet.documentlibrary.model.DLFileEntry");
1727 }
1728
1729
1734 @Override
1735 public String getBeanIdentifier() {
1736 return _beanIdentifier;
1737 }
1738
1739
1744 @Override
1745 public void setBeanIdentifier(String beanIdentifier) {
1746 _beanIdentifier = beanIdentifier;
1747 }
1748
1749 protected Class<?> getModelClass() {
1750 return DLFileEntry.class;
1751 }
1752
1753 protected String getModelClassName() {
1754 return DLFileEntry.class.getName();
1755 }
1756
1757
1762 protected void runSQL(String sql) {
1763 try {
1764 DataSource dataSource = dlFileEntryPersistence.getDataSource();
1765
1766 DB db = DBFactoryUtil.getDB();
1767
1768 sql = db.buildSQL(sql);
1769 sql = PortalUtil.transformSQL(sql);
1770
1771 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1772 sql, new int[0]);
1773
1774 sqlUpdate.update();
1775 }
1776 catch (Exception e) {
1777 throw new SystemException(e);
1778 }
1779 }
1780
1781 @BeanReference(type = DLFileEntryLocalService.class)
1782 protected DLFileEntryLocalService dlFileEntryLocalService;
1783 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryService.class)
1784 protected com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService;
1785 @BeanReference(type = DLFileEntryPersistence.class)
1786 protected DLFileEntryPersistence dlFileEntryPersistence;
1787 @BeanReference(type = DLFileEntryFinder.class)
1788 protected DLFileEntryFinder dlFileEntryFinder;
1789 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1790 protected com.liferay.counter.service.CounterLocalService counterLocalService;
1791 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1792 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1793 @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
1794 protected com.liferay.portal.service.ClassNameService classNameService;
1795 @BeanReference(type = ClassNamePersistence.class)
1796 protected ClassNamePersistence classNamePersistence;
1797 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1798 protected com.liferay.portal.service.GroupLocalService groupLocalService;
1799 @BeanReference(type = com.liferay.portal.service.GroupService.class)
1800 protected com.liferay.portal.service.GroupService groupService;
1801 @BeanReference(type = GroupPersistence.class)
1802 protected GroupPersistence groupPersistence;
1803 @BeanReference(type = GroupFinder.class)
1804 protected GroupFinder groupFinder;
1805 @BeanReference(type = com.liferay.portal.service.ImageLocalService.class)
1806 protected com.liferay.portal.service.ImageLocalService imageLocalService;
1807 @BeanReference(type = com.liferay.portal.service.ImageService.class)
1808 protected com.liferay.portal.service.ImageService imageService;
1809 @BeanReference(type = ImagePersistence.class)
1810 protected ImagePersistence imagePersistence;
1811 @BeanReference(type = com.liferay.portal.service.RepositoryLocalService.class)
1812 protected com.liferay.portal.service.RepositoryLocalService repositoryLocalService;
1813 @BeanReference(type = com.liferay.portal.service.RepositoryService.class)
1814 protected com.liferay.portal.service.RepositoryService repositoryService;
1815 @BeanReference(type = RepositoryPersistence.class)
1816 protected RepositoryPersistence repositoryPersistence;
1817 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1818 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1819 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1820 protected com.liferay.portal.service.UserLocalService userLocalService;
1821 @BeanReference(type = com.liferay.portal.service.UserService.class)
1822 protected com.liferay.portal.service.UserService userService;
1823 @BeanReference(type = UserPersistence.class)
1824 protected UserPersistence userPersistence;
1825 @BeanReference(type = UserFinder.class)
1826 protected UserFinder userFinder;
1827 @BeanReference(type = com.liferay.portal.service.WebDAVPropsLocalService.class)
1828 protected com.liferay.portal.service.WebDAVPropsLocalService webDAVPropsLocalService;
1829 @BeanReference(type = WebDAVPropsPersistence.class)
1830 protected WebDAVPropsPersistence webDAVPropsPersistence;
1831 @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1832 protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1833 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1834 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1835 @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryLocalService.class)
1836 protected com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService;
1837 @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryService.class)
1838 protected com.liferay.portlet.asset.service.AssetCategoryService assetCategoryService;
1839 @BeanReference(type = AssetCategoryPersistence.class)
1840 protected AssetCategoryPersistence assetCategoryPersistence;
1841 @BeanReference(type = AssetCategoryFinder.class)
1842 protected AssetCategoryFinder assetCategoryFinder;
1843 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1844 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1845 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1846 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1847 @BeanReference(type = AssetEntryPersistence.class)
1848 protected AssetEntryPersistence assetEntryPersistence;
1849 @BeanReference(type = AssetEntryFinder.class)
1850 protected AssetEntryFinder assetEntryFinder;
1851 @BeanReference(type = com.liferay.portlet.asset.service.AssetLinkLocalService.class)
1852 protected com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService;
1853 @BeanReference(type = AssetLinkPersistence.class)
1854 protected AssetLinkPersistence assetLinkPersistence;
1855 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1856 protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1857 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
1858 protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
1859 @BeanReference(type = AssetTagPersistence.class)
1860 protected AssetTagPersistence assetTagPersistence;
1861 @BeanReference(type = AssetTagFinder.class)
1862 protected AssetTagFinder assetTagFinder;
1863 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService.class)
1864 protected com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService;
1865 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService.class)
1866 protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService;
1867 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureService.class)
1868 protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService;
1869 @BeanReference(type = DDMStructurePersistence.class)
1870 protected DDMStructurePersistence ddmStructurePersistence;
1871 @BeanReference(type = DDMStructureFinder.class)
1872 protected DDMStructureFinder ddmStructureFinder;
1873 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1874 protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1875 @BeanReference(type = ExpandoRowPersistence.class)
1876 protected ExpandoRowPersistence expandoRowPersistence;
1877 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoTableLocalService.class)
1878 protected com.liferay.portlet.expando.service.ExpandoTableLocalService expandoTableLocalService;
1879 @BeanReference(type = ExpandoTablePersistence.class)
1880 protected ExpandoTablePersistence expandoTablePersistence;
1881 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1882 protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1883 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1884 protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1885 @BeanReference(type = TrashEntryPersistence.class)
1886 protected TrashEntryPersistence trashEntryPersistence;
1887 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService.class)
1888 protected com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService;
1889 @BeanReference(type = DLFileEntryMetadataPersistence.class)
1890 protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence;
1891 @BeanReference(type = DLFileEntryMetadataFinder.class)
1892 protected DLFileEntryMetadataFinder dlFileEntryMetadataFinder;
1893 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService.class)
1894 protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
1895 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService.class)
1896 protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService;
1897 @BeanReference(type = DLFileEntryTypePersistence.class)
1898 protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
1899 @BeanReference(type = DLFileEntryTypeFinder.class)
1900 protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
1901 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService.class)
1902 protected com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService;
1903 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileVersionService.class)
1904 protected com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService;
1905 @BeanReference(type = DLFileVersionPersistence.class)
1906 protected DLFileVersionPersistence dlFileVersionPersistence;
1907 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFolderLocalService.class)
1908 protected com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService;
1909 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFolderService.class)
1910 protected com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService;
1911 @BeanReference(type = DLFolderPersistence.class)
1912 protected DLFolderPersistence dlFolderPersistence;
1913 @BeanReference(type = DLFolderFinder.class)
1914 protected DLFolderFinder dlFolderFinder;
1915 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1916 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1917 private String _beanIdentifier;
1918 }