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.expando.service.persistence.ExpandoRowPersistence;
071 import com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence;
072 import com.liferay.portlet.exportimport.lar.ExportImportHelperUtil;
073 import com.liferay.portlet.exportimport.lar.ManifestSummary;
074 import com.liferay.portlet.exportimport.lar.PortletDataContext;
075 import com.liferay.portlet.exportimport.lar.StagedModelDataHandlerUtil;
076 import com.liferay.portlet.exportimport.lar.StagedModelType;
077 import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
078 import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
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,
309 modelAdditionCount);
310
311 long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
312 stagedModelType);
313
314 manifestSummary.addModelDeletionCount(stagedModelType,
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 long referrerClassNameId = stagedModelType.getReferrerClassNameId();
332
333 Property classNameIdProperty = PropertyFactoryUtil.forName(
334 "classNameId");
335
336 if ((referrerClassNameId != StagedModelType.REFERRER_CLASS_NAME_ID_ALL) &&
337 (referrerClassNameId != StagedModelType.REFERRER_CLASS_NAME_ID_ANY)) {
338 dynamicQuery.add(classNameIdProperty.eq(
339 stagedModelType.getReferrerClassNameId()));
340 }
341 else if (referrerClassNameId == StagedModelType.REFERRER_CLASS_NAME_ID_ANY) {
342 dynamicQuery.add(classNameIdProperty.isNotNull());
343 }
344 }
345 });
346
347 exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
348
349 exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());
350
351 exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod<DLFileEntry>() {
352 @Override
353 public void performAction(DLFileEntry dlFileEntry)
354 throws PortalException {
355 StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
356 dlFileEntry);
357 }
358 });
359 exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
360 PortalUtil.getClassNameId(DLFileEntry.class.getName()),
361 StagedModelType.REFERRER_CLASS_NAME_ID_ALL));
362
363 return exportActionableDynamicQuery;
364 }
365
366
369 @Override
370 public PersistedModel deletePersistedModel(PersistedModel persistedModel)
371 throws PortalException {
372 return dlFileEntryLocalService.deleteDLFileEntry((DLFileEntry)persistedModel);
373 }
374
375 @Override
376 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
377 throws PortalException {
378 return dlFileEntryPersistence.findByPrimaryKey(primaryKeyObj);
379 }
380
381
388 @Override
389 public List<DLFileEntry> getDLFileEntriesByUuidAndCompanyId(String uuid,
390 long companyId) {
391 return dlFileEntryPersistence.findByUuid_C(uuid, companyId);
392 }
393
394
404 @Override
405 public List<DLFileEntry> getDLFileEntriesByUuidAndCompanyId(String uuid,
406 long companyId, int start, int end,
407 OrderByComparator<DLFileEntry> orderByComparator) {
408 return dlFileEntryPersistence.findByUuid_C(uuid, companyId, start, end,
409 orderByComparator);
410 }
411
412
420 @Override
421 public DLFileEntry getDLFileEntryByUuidAndGroupId(String uuid, long groupId)
422 throws PortalException {
423 return dlFileEntryPersistence.findByUUID_G(uuid, groupId);
424 }
425
426
437 @Override
438 public List<DLFileEntry> getDLFileEntries(int start, int end) {
439 return dlFileEntryPersistence.findAll(start, end);
440 }
441
442
447 @Override
448 public int getDLFileEntriesCount() {
449 return dlFileEntryPersistence.countAll();
450 }
451
452
458 @Indexable(type = IndexableType.REINDEX)
459 @Override
460 public DLFileEntry updateDLFileEntry(DLFileEntry dlFileEntry) {
461 return dlFileEntryPersistence.update(dlFileEntry);
462 }
463
464
469 public DLFileEntryLocalService getDLFileEntryLocalService() {
470 return dlFileEntryLocalService;
471 }
472
473
478 public void setDLFileEntryLocalService(
479 DLFileEntryLocalService dlFileEntryLocalService) {
480 this.dlFileEntryLocalService = dlFileEntryLocalService;
481 }
482
483
488 public com.liferay.portlet.documentlibrary.service.DLFileEntryService getDLFileEntryService() {
489 return dlFileEntryService;
490 }
491
492
497 public void setDLFileEntryService(
498 com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService) {
499 this.dlFileEntryService = dlFileEntryService;
500 }
501
502
507 public DLFileEntryPersistence getDLFileEntryPersistence() {
508 return dlFileEntryPersistence;
509 }
510
511
516 public void setDLFileEntryPersistence(
517 DLFileEntryPersistence dlFileEntryPersistence) {
518 this.dlFileEntryPersistence = dlFileEntryPersistence;
519 }
520
521
526 public DLFileEntryFinder getDLFileEntryFinder() {
527 return dlFileEntryFinder;
528 }
529
530
535 public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
536 this.dlFileEntryFinder = dlFileEntryFinder;
537 }
538
539
544 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
545 return counterLocalService;
546 }
547
548
553 public void setCounterLocalService(
554 com.liferay.counter.service.CounterLocalService counterLocalService) {
555 this.counterLocalService = counterLocalService;
556 }
557
558
563 public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
564 return classNameLocalService;
565 }
566
567
572 public void setClassNameLocalService(
573 com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
574 this.classNameLocalService = classNameLocalService;
575 }
576
577
582 public com.liferay.portal.service.ClassNameService getClassNameService() {
583 return classNameService;
584 }
585
586
591 public void setClassNameService(
592 com.liferay.portal.service.ClassNameService classNameService) {
593 this.classNameService = classNameService;
594 }
595
596
601 public ClassNamePersistence getClassNamePersistence() {
602 return classNamePersistence;
603 }
604
605
610 public void setClassNamePersistence(
611 ClassNamePersistence classNamePersistence) {
612 this.classNamePersistence = classNamePersistence;
613 }
614
615
620 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
621 return groupLocalService;
622 }
623
624
629 public void setGroupLocalService(
630 com.liferay.portal.service.GroupLocalService groupLocalService) {
631 this.groupLocalService = groupLocalService;
632 }
633
634
639 public com.liferay.portal.service.GroupService getGroupService() {
640 return groupService;
641 }
642
643
648 public void setGroupService(
649 com.liferay.portal.service.GroupService groupService) {
650 this.groupService = groupService;
651 }
652
653
658 public GroupPersistence getGroupPersistence() {
659 return groupPersistence;
660 }
661
662
667 public void setGroupPersistence(GroupPersistence groupPersistence) {
668 this.groupPersistence = groupPersistence;
669 }
670
671
676 public GroupFinder getGroupFinder() {
677 return groupFinder;
678 }
679
680
685 public void setGroupFinder(GroupFinder groupFinder) {
686 this.groupFinder = groupFinder;
687 }
688
689
694 public com.liferay.portal.service.ImageLocalService getImageLocalService() {
695 return imageLocalService;
696 }
697
698
703 public void setImageLocalService(
704 com.liferay.portal.service.ImageLocalService imageLocalService) {
705 this.imageLocalService = imageLocalService;
706 }
707
708
713 public com.liferay.portal.service.ImageService getImageService() {
714 return imageService;
715 }
716
717
722 public void setImageService(
723 com.liferay.portal.service.ImageService imageService) {
724 this.imageService = imageService;
725 }
726
727
732 public ImagePersistence getImagePersistence() {
733 return imagePersistence;
734 }
735
736
741 public void setImagePersistence(ImagePersistence imagePersistence) {
742 this.imagePersistence = imagePersistence;
743 }
744
745
750 public com.liferay.portal.service.RepositoryLocalService getRepositoryLocalService() {
751 return repositoryLocalService;
752 }
753
754
759 public void setRepositoryLocalService(
760 com.liferay.portal.service.RepositoryLocalService repositoryLocalService) {
761 this.repositoryLocalService = repositoryLocalService;
762 }
763
764
769 public com.liferay.portal.service.RepositoryService getRepositoryService() {
770 return repositoryService;
771 }
772
773
778 public void setRepositoryService(
779 com.liferay.portal.service.RepositoryService repositoryService) {
780 this.repositoryService = repositoryService;
781 }
782
783
788 public RepositoryPersistence getRepositoryPersistence() {
789 return repositoryPersistence;
790 }
791
792
797 public void setRepositoryPersistence(
798 RepositoryPersistence repositoryPersistence) {
799 this.repositoryPersistence = repositoryPersistence;
800 }
801
802
807 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
808 return resourceLocalService;
809 }
810
811
816 public void setResourceLocalService(
817 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
818 this.resourceLocalService = resourceLocalService;
819 }
820
821
826 public com.liferay.portal.service.UserLocalService getUserLocalService() {
827 return userLocalService;
828 }
829
830
835 public void setUserLocalService(
836 com.liferay.portal.service.UserLocalService userLocalService) {
837 this.userLocalService = userLocalService;
838 }
839
840
845 public com.liferay.portal.service.UserService getUserService() {
846 return userService;
847 }
848
849
854 public void setUserService(
855 com.liferay.portal.service.UserService userService) {
856 this.userService = userService;
857 }
858
859
864 public UserPersistence getUserPersistence() {
865 return userPersistence;
866 }
867
868
873 public void setUserPersistence(UserPersistence userPersistence) {
874 this.userPersistence = userPersistence;
875 }
876
877
882 public UserFinder getUserFinder() {
883 return userFinder;
884 }
885
886
891 public void setUserFinder(UserFinder userFinder) {
892 this.userFinder = userFinder;
893 }
894
895
900 public com.liferay.portal.service.WebDAVPropsLocalService getWebDAVPropsLocalService() {
901 return webDAVPropsLocalService;
902 }
903
904
909 public void setWebDAVPropsLocalService(
910 com.liferay.portal.service.WebDAVPropsLocalService webDAVPropsLocalService) {
911 this.webDAVPropsLocalService = webDAVPropsLocalService;
912 }
913
914
919 public WebDAVPropsPersistence getWebDAVPropsPersistence() {
920 return webDAVPropsPersistence;
921 }
922
923
928 public void setWebDAVPropsPersistence(
929 WebDAVPropsPersistence webDAVPropsPersistence) {
930 this.webDAVPropsPersistence = webDAVPropsPersistence;
931 }
932
933
938 public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
939 return workflowInstanceLinkLocalService;
940 }
941
942
947 public void setWorkflowInstanceLinkLocalService(
948 com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
949 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
950 }
951
952
957 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
958 return workflowInstanceLinkPersistence;
959 }
960
961
966 public void setWorkflowInstanceLinkPersistence(
967 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
968 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
969 }
970
971
976 public com.liferay.portlet.asset.service.AssetCategoryLocalService getAssetCategoryLocalService() {
977 return assetCategoryLocalService;
978 }
979
980
985 public void setAssetCategoryLocalService(
986 com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService) {
987 this.assetCategoryLocalService = assetCategoryLocalService;
988 }
989
990
995 public com.liferay.portlet.asset.service.AssetCategoryService getAssetCategoryService() {
996 return assetCategoryService;
997 }
998
999
1004 public void setAssetCategoryService(
1005 com.liferay.portlet.asset.service.AssetCategoryService assetCategoryService) {
1006 this.assetCategoryService = assetCategoryService;
1007 }
1008
1009
1014 public AssetCategoryPersistence getAssetCategoryPersistence() {
1015 return assetCategoryPersistence;
1016 }
1017
1018
1023 public void setAssetCategoryPersistence(
1024 AssetCategoryPersistence assetCategoryPersistence) {
1025 this.assetCategoryPersistence = assetCategoryPersistence;
1026 }
1027
1028
1033 public AssetCategoryFinder getAssetCategoryFinder() {
1034 return assetCategoryFinder;
1035 }
1036
1037
1042 public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
1043 this.assetCategoryFinder = assetCategoryFinder;
1044 }
1045
1046
1051 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
1052 return assetEntryLocalService;
1053 }
1054
1055
1060 public void setAssetEntryLocalService(
1061 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
1062 this.assetEntryLocalService = assetEntryLocalService;
1063 }
1064
1065
1070 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
1071 return assetEntryService;
1072 }
1073
1074
1079 public void setAssetEntryService(
1080 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
1081 this.assetEntryService = assetEntryService;
1082 }
1083
1084
1089 public AssetEntryPersistence getAssetEntryPersistence() {
1090 return assetEntryPersistence;
1091 }
1092
1093
1098 public void setAssetEntryPersistence(
1099 AssetEntryPersistence assetEntryPersistence) {
1100 this.assetEntryPersistence = assetEntryPersistence;
1101 }
1102
1103
1108 public AssetEntryFinder getAssetEntryFinder() {
1109 return assetEntryFinder;
1110 }
1111
1112
1117 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1118 this.assetEntryFinder = assetEntryFinder;
1119 }
1120
1121
1126 public com.liferay.portlet.asset.service.AssetLinkLocalService getAssetLinkLocalService() {
1127 return assetLinkLocalService;
1128 }
1129
1130
1135 public void setAssetLinkLocalService(
1136 com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService) {
1137 this.assetLinkLocalService = assetLinkLocalService;
1138 }
1139
1140
1145 public AssetLinkPersistence getAssetLinkPersistence() {
1146 return assetLinkPersistence;
1147 }
1148
1149
1154 public void setAssetLinkPersistence(
1155 AssetLinkPersistence assetLinkPersistence) {
1156 this.assetLinkPersistence = assetLinkPersistence;
1157 }
1158
1159
1164 public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
1165 return assetTagLocalService;
1166 }
1167
1168
1173 public void setAssetTagLocalService(
1174 com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
1175 this.assetTagLocalService = assetTagLocalService;
1176 }
1177
1178
1183 public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
1184 return assetTagService;
1185 }
1186
1187
1192 public void setAssetTagService(
1193 com.liferay.portlet.asset.service.AssetTagService assetTagService) {
1194 this.assetTagService = assetTagService;
1195 }
1196
1197
1202 public AssetTagPersistence getAssetTagPersistence() {
1203 return assetTagPersistence;
1204 }
1205
1206
1211 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1212 this.assetTagPersistence = assetTagPersistence;
1213 }
1214
1215
1220 public AssetTagFinder getAssetTagFinder() {
1221 return assetTagFinder;
1222 }
1223
1224
1229 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1230 this.assetTagFinder = assetTagFinder;
1231 }
1232
1233
1238 public com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService getDLAppHelperLocalService() {
1239 return dlAppHelperLocalService;
1240 }
1241
1242
1247 public void setDLAppHelperLocalService(
1248 com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService) {
1249 this.dlAppHelperLocalService = dlAppHelperLocalService;
1250 }
1251
1252
1257 public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
1258 return expandoRowLocalService;
1259 }
1260
1261
1266 public void setExpandoRowLocalService(
1267 com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
1268 this.expandoRowLocalService = expandoRowLocalService;
1269 }
1270
1271
1276 public ExpandoRowPersistence getExpandoRowPersistence() {
1277 return expandoRowPersistence;
1278 }
1279
1280
1285 public void setExpandoRowPersistence(
1286 ExpandoRowPersistence expandoRowPersistence) {
1287 this.expandoRowPersistence = expandoRowPersistence;
1288 }
1289
1290
1295 public com.liferay.portlet.expando.service.ExpandoTableLocalService getExpandoTableLocalService() {
1296 return expandoTableLocalService;
1297 }
1298
1299
1304 public void setExpandoTableLocalService(
1305 com.liferay.portlet.expando.service.ExpandoTableLocalService expandoTableLocalService) {
1306 this.expandoTableLocalService = expandoTableLocalService;
1307 }
1308
1309
1314 public ExpandoTablePersistence getExpandoTablePersistence() {
1315 return expandoTablePersistence;
1316 }
1317
1318
1323 public void setExpandoTablePersistence(
1324 ExpandoTablePersistence expandoTablePersistence) {
1325 this.expandoTablePersistence = expandoTablePersistence;
1326 }
1327
1328
1333 public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
1334 return ratingsStatsLocalService;
1335 }
1336
1337
1342 public void setRatingsStatsLocalService(
1343 com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
1344 this.ratingsStatsLocalService = ratingsStatsLocalService;
1345 }
1346
1347
1352 public RatingsStatsPersistence getRatingsStatsPersistence() {
1353 return ratingsStatsPersistence;
1354 }
1355
1356
1361 public void setRatingsStatsPersistence(
1362 RatingsStatsPersistence ratingsStatsPersistence) {
1363 this.ratingsStatsPersistence = ratingsStatsPersistence;
1364 }
1365
1366
1371 public RatingsStatsFinder getRatingsStatsFinder() {
1372 return ratingsStatsFinder;
1373 }
1374
1375
1380 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1381 this.ratingsStatsFinder = ratingsStatsFinder;
1382 }
1383
1384
1389 public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
1390 return trashEntryLocalService;
1391 }
1392
1393
1398 public void setTrashEntryLocalService(
1399 com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
1400 this.trashEntryLocalService = trashEntryLocalService;
1401 }
1402
1403
1408 public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
1409 return trashEntryService;
1410 }
1411
1412
1417 public void setTrashEntryService(
1418 com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
1419 this.trashEntryService = trashEntryService;
1420 }
1421
1422
1427 public TrashEntryPersistence getTrashEntryPersistence() {
1428 return trashEntryPersistence;
1429 }
1430
1431
1436 public void setTrashEntryPersistence(
1437 TrashEntryPersistence trashEntryPersistence) {
1438 this.trashEntryPersistence = trashEntryPersistence;
1439 }
1440
1441
1446 public com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService getDLFileEntryMetadataLocalService() {
1447 return dlFileEntryMetadataLocalService;
1448 }
1449
1450
1455 public void setDLFileEntryMetadataLocalService(
1456 com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService) {
1457 this.dlFileEntryMetadataLocalService = dlFileEntryMetadataLocalService;
1458 }
1459
1460
1465 public DLFileEntryMetadataPersistence getDLFileEntryMetadataPersistence() {
1466 return dlFileEntryMetadataPersistence;
1467 }
1468
1469
1474 public void setDLFileEntryMetadataPersistence(
1475 DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence) {
1476 this.dlFileEntryMetadataPersistence = dlFileEntryMetadataPersistence;
1477 }
1478
1479
1484 public DLFileEntryMetadataFinder getDLFileEntryMetadataFinder() {
1485 return dlFileEntryMetadataFinder;
1486 }
1487
1488
1493 public void setDLFileEntryMetadataFinder(
1494 DLFileEntryMetadataFinder dlFileEntryMetadataFinder) {
1495 this.dlFileEntryMetadataFinder = dlFileEntryMetadataFinder;
1496 }
1497
1498
1503 public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
1504 return dlFileEntryTypeLocalService;
1505 }
1506
1507
1512 public void setDLFileEntryTypeLocalService(
1513 com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
1514 this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
1515 }
1516
1517
1522 public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService getDLFileEntryTypeService() {
1523 return dlFileEntryTypeService;
1524 }
1525
1526
1531 public void setDLFileEntryTypeService(
1532 com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService) {
1533 this.dlFileEntryTypeService = dlFileEntryTypeService;
1534 }
1535
1536
1541 public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
1542 return dlFileEntryTypePersistence;
1543 }
1544
1545
1550 public void setDLFileEntryTypePersistence(
1551 DLFileEntryTypePersistence dlFileEntryTypePersistence) {
1552 this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
1553 }
1554
1555
1560 public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
1561 return dlFileEntryTypeFinder;
1562 }
1563
1564
1569 public void setDLFileEntryTypeFinder(
1570 DLFileEntryTypeFinder dlFileEntryTypeFinder) {
1571 this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
1572 }
1573
1574
1579 public com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService getDLFileVersionLocalService() {
1580 return dlFileVersionLocalService;
1581 }
1582
1583
1588 public void setDLFileVersionLocalService(
1589 com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService) {
1590 this.dlFileVersionLocalService = dlFileVersionLocalService;
1591 }
1592
1593
1598 public com.liferay.portlet.documentlibrary.service.DLFileVersionService getDLFileVersionService() {
1599 return dlFileVersionService;
1600 }
1601
1602
1607 public void setDLFileVersionService(
1608 com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService) {
1609 this.dlFileVersionService = dlFileVersionService;
1610 }
1611
1612
1617 public DLFileVersionPersistence getDLFileVersionPersistence() {
1618 return dlFileVersionPersistence;
1619 }
1620
1621
1626 public void setDLFileVersionPersistence(
1627 DLFileVersionPersistence dlFileVersionPersistence) {
1628 this.dlFileVersionPersistence = dlFileVersionPersistence;
1629 }
1630
1631
1636 public com.liferay.portlet.documentlibrary.service.DLFolderLocalService getDLFolderLocalService() {
1637 return dlFolderLocalService;
1638 }
1639
1640
1645 public void setDLFolderLocalService(
1646 com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService) {
1647 this.dlFolderLocalService = dlFolderLocalService;
1648 }
1649
1650
1655 public com.liferay.portlet.documentlibrary.service.DLFolderService getDLFolderService() {
1656 return dlFolderService;
1657 }
1658
1659
1664 public void setDLFolderService(
1665 com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService) {
1666 this.dlFolderService = dlFolderService;
1667 }
1668
1669
1674 public DLFolderPersistence getDLFolderPersistence() {
1675 return dlFolderPersistence;
1676 }
1677
1678
1683 public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
1684 this.dlFolderPersistence = dlFolderPersistence;
1685 }
1686
1687
1692 public DLFolderFinder getDLFolderFinder() {
1693 return dlFolderFinder;
1694 }
1695
1696
1701 public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
1702 this.dlFolderFinder = dlFolderFinder;
1703 }
1704
1705 public void afterPropertiesSet() {
1706 persistedModelLocalServiceRegistry.register("com.liferay.portlet.documentlibrary.model.DLFileEntry",
1707 dlFileEntryLocalService);
1708 }
1709
1710 public void destroy() {
1711 persistedModelLocalServiceRegistry.unregister(
1712 "com.liferay.portlet.documentlibrary.model.DLFileEntry");
1713 }
1714
1715
1720 @Override
1721 public String getBeanIdentifier() {
1722 return _beanIdentifier;
1723 }
1724
1725
1730 @Override
1731 public void setBeanIdentifier(String beanIdentifier) {
1732 _beanIdentifier = beanIdentifier;
1733 }
1734
1735 protected Class<?> getModelClass() {
1736 return DLFileEntry.class;
1737 }
1738
1739 protected String getModelClassName() {
1740 return DLFileEntry.class.getName();
1741 }
1742
1743
1748 protected void runSQL(String sql) {
1749 try {
1750 DataSource dataSource = dlFileEntryPersistence.getDataSource();
1751
1752 DB db = DBFactoryUtil.getDB();
1753
1754 sql = db.buildSQL(sql);
1755 sql = PortalUtil.transformSQL(sql);
1756
1757 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1758 sql, new int[0]);
1759
1760 sqlUpdate.update();
1761 }
1762 catch (Exception e) {
1763 throw new SystemException(e);
1764 }
1765 }
1766
1767 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService.class)
1768 protected DLFileEntryLocalService dlFileEntryLocalService;
1769 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryService.class)
1770 protected com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService;
1771 @BeanReference(type = DLFileEntryPersistence.class)
1772 protected DLFileEntryPersistence dlFileEntryPersistence;
1773 @BeanReference(type = DLFileEntryFinder.class)
1774 protected DLFileEntryFinder dlFileEntryFinder;
1775 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1776 protected com.liferay.counter.service.CounterLocalService counterLocalService;
1777 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1778 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1779 @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
1780 protected com.liferay.portal.service.ClassNameService classNameService;
1781 @BeanReference(type = ClassNamePersistence.class)
1782 protected ClassNamePersistence classNamePersistence;
1783 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1784 protected com.liferay.portal.service.GroupLocalService groupLocalService;
1785 @BeanReference(type = com.liferay.portal.service.GroupService.class)
1786 protected com.liferay.portal.service.GroupService groupService;
1787 @BeanReference(type = GroupPersistence.class)
1788 protected GroupPersistence groupPersistence;
1789 @BeanReference(type = GroupFinder.class)
1790 protected GroupFinder groupFinder;
1791 @BeanReference(type = com.liferay.portal.service.ImageLocalService.class)
1792 protected com.liferay.portal.service.ImageLocalService imageLocalService;
1793 @BeanReference(type = com.liferay.portal.service.ImageService.class)
1794 protected com.liferay.portal.service.ImageService imageService;
1795 @BeanReference(type = ImagePersistence.class)
1796 protected ImagePersistence imagePersistence;
1797 @BeanReference(type = com.liferay.portal.service.RepositoryLocalService.class)
1798 protected com.liferay.portal.service.RepositoryLocalService repositoryLocalService;
1799 @BeanReference(type = com.liferay.portal.service.RepositoryService.class)
1800 protected com.liferay.portal.service.RepositoryService repositoryService;
1801 @BeanReference(type = RepositoryPersistence.class)
1802 protected RepositoryPersistence repositoryPersistence;
1803 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1804 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1805 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1806 protected com.liferay.portal.service.UserLocalService userLocalService;
1807 @BeanReference(type = com.liferay.portal.service.UserService.class)
1808 protected com.liferay.portal.service.UserService userService;
1809 @BeanReference(type = UserPersistence.class)
1810 protected UserPersistence userPersistence;
1811 @BeanReference(type = UserFinder.class)
1812 protected UserFinder userFinder;
1813 @BeanReference(type = com.liferay.portal.service.WebDAVPropsLocalService.class)
1814 protected com.liferay.portal.service.WebDAVPropsLocalService webDAVPropsLocalService;
1815 @BeanReference(type = WebDAVPropsPersistence.class)
1816 protected WebDAVPropsPersistence webDAVPropsPersistence;
1817 @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1818 protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1819 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1820 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1821 @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryLocalService.class)
1822 protected com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService;
1823 @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryService.class)
1824 protected com.liferay.portlet.asset.service.AssetCategoryService assetCategoryService;
1825 @BeanReference(type = AssetCategoryPersistence.class)
1826 protected AssetCategoryPersistence assetCategoryPersistence;
1827 @BeanReference(type = AssetCategoryFinder.class)
1828 protected AssetCategoryFinder assetCategoryFinder;
1829 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1830 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1831 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1832 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1833 @BeanReference(type = AssetEntryPersistence.class)
1834 protected AssetEntryPersistence assetEntryPersistence;
1835 @BeanReference(type = AssetEntryFinder.class)
1836 protected AssetEntryFinder assetEntryFinder;
1837 @BeanReference(type = com.liferay.portlet.asset.service.AssetLinkLocalService.class)
1838 protected com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService;
1839 @BeanReference(type = AssetLinkPersistence.class)
1840 protected AssetLinkPersistence assetLinkPersistence;
1841 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1842 protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1843 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
1844 protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
1845 @BeanReference(type = AssetTagPersistence.class)
1846 protected AssetTagPersistence assetTagPersistence;
1847 @BeanReference(type = AssetTagFinder.class)
1848 protected AssetTagFinder assetTagFinder;
1849 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService.class)
1850 protected com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService;
1851 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1852 protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1853 @BeanReference(type = ExpandoRowPersistence.class)
1854 protected ExpandoRowPersistence expandoRowPersistence;
1855 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoTableLocalService.class)
1856 protected com.liferay.portlet.expando.service.ExpandoTableLocalService expandoTableLocalService;
1857 @BeanReference(type = ExpandoTablePersistence.class)
1858 protected ExpandoTablePersistence expandoTablePersistence;
1859 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
1860 protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
1861 @BeanReference(type = RatingsStatsPersistence.class)
1862 protected RatingsStatsPersistence ratingsStatsPersistence;
1863 @BeanReference(type = RatingsStatsFinder.class)
1864 protected RatingsStatsFinder ratingsStatsFinder;
1865 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1866 protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1867 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1868 protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1869 @BeanReference(type = TrashEntryPersistence.class)
1870 protected TrashEntryPersistence trashEntryPersistence;
1871 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService.class)
1872 protected com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService;
1873 @BeanReference(type = DLFileEntryMetadataPersistence.class)
1874 protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence;
1875 @BeanReference(type = DLFileEntryMetadataFinder.class)
1876 protected DLFileEntryMetadataFinder dlFileEntryMetadataFinder;
1877 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService.class)
1878 protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
1879 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService.class)
1880 protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService;
1881 @BeanReference(type = DLFileEntryTypePersistence.class)
1882 protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
1883 @BeanReference(type = DLFileEntryTypeFinder.class)
1884 protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
1885 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService.class)
1886 protected com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService;
1887 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileVersionService.class)
1888 protected com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService;
1889 @BeanReference(type = DLFileVersionPersistence.class)
1890 protected DLFileVersionPersistence dlFileVersionPersistence;
1891 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFolderLocalService.class)
1892 protected com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService;
1893 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFolderService.class)
1894 protected com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService;
1895 @BeanReference(type = DLFolderPersistence.class)
1896 protected DLFolderPersistence dlFolderPersistence;
1897 @BeanReference(type = DLFolderFinder.class)
1898 protected DLFolderFinder dlFolderFinder;
1899 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1900 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1901 private String _beanIdentifier;
1902 }