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.Criterion;
027 import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
028 import com.liferay.portal.kernel.dao.orm.Disjunction;
029 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
030 import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
031 import com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery;
032 import com.liferay.portal.kernel.dao.orm.Projection;
033 import com.liferay.portal.kernel.dao.orm.Property;
034 import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil;
035 import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
036 import com.liferay.portal.kernel.exception.PortalException;
037 import com.liferay.portal.kernel.exception.SystemException;
038 import com.liferay.portal.kernel.search.Indexable;
039 import com.liferay.portal.kernel.search.IndexableType;
040 import com.liferay.portal.kernel.util.OrderByComparator;
041 import com.liferay.portal.kernel.workflow.WorkflowConstants;
042 import com.liferay.portal.model.PersistedModel;
043 import com.liferay.portal.service.BaseLocalServiceImpl;
044 import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
045 import com.liferay.portal.service.persistence.GroupFinder;
046 import com.liferay.portal.service.persistence.GroupPersistence;
047 import com.liferay.portal.service.persistence.RepositoryPersistence;
048 import com.liferay.portal.service.persistence.UserFinder;
049 import com.liferay.portal.service.persistence.UserPersistence;
050 import com.liferay.portal.service.persistence.WebDAVPropsPersistence;
051 import com.liferay.portal.service.persistence.WorkflowDefinitionLinkPersistence;
052 import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
053 import com.liferay.portal.util.PortalUtil;
054
055 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
056 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
057 import com.liferay.portlet.documentlibrary.model.DLFolder;
058 import com.liferay.portlet.documentlibrary.service.DLFolderLocalService;
059 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
060 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
061 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
062 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
063 import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
064 import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
065 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
066 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
067 import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
068 import com.liferay.portlet.exportimport.lar.ExportImportHelperUtil;
069 import com.liferay.portlet.exportimport.lar.ManifestSummary;
070 import com.liferay.portlet.exportimport.lar.PortletDataContext;
071 import com.liferay.portlet.exportimport.lar.StagedModelDataHandler;
072 import com.liferay.portlet.exportimport.lar.StagedModelDataHandlerRegistryUtil;
073 import com.liferay.portlet.exportimport.lar.StagedModelDataHandlerUtil;
074 import com.liferay.portlet.exportimport.lar.StagedModelType;
075 import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
076
077 import java.io.Serializable;
078
079 import java.util.List;
080
081 import javax.sql.DataSource;
082
083
095 @ProviderType
096 public abstract class DLFolderLocalServiceBaseImpl extends BaseLocalServiceImpl
097 implements DLFolderLocalService, IdentifiableBean {
098
103
104
110 @Indexable(type = IndexableType.REINDEX)
111 @Override
112 public DLFolder addDLFolder(DLFolder dlFolder) {
113 dlFolder.setNew(true);
114
115 return dlFolderPersistence.update(dlFolder);
116 }
117
118
124 @Override
125 public DLFolder createDLFolder(long folderId) {
126 return dlFolderPersistence.create(folderId);
127 }
128
129
136 @Indexable(type = IndexableType.DELETE)
137 @Override
138 public DLFolder deleteDLFolder(long folderId) throws PortalException {
139 return dlFolderPersistence.remove(folderId);
140 }
141
142
148 @Indexable(type = IndexableType.DELETE)
149 @Override
150 public DLFolder deleteDLFolder(DLFolder dlFolder) {
151 return dlFolderPersistence.remove(dlFolder);
152 }
153
154 @Override
155 public DynamicQuery dynamicQuery() {
156 Class<?> clazz = getClass();
157
158 return DynamicQueryFactoryUtil.forClass(DLFolder.class,
159 clazz.getClassLoader());
160 }
161
162
168 @Override
169 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
170 return dlFolderPersistence.findWithDynamicQuery(dynamicQuery);
171 }
172
173
185 @Override
186 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
187 int end) {
188 return dlFolderPersistence.findWithDynamicQuery(dynamicQuery, start, end);
189 }
190
191
204 @Override
205 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
206 int end, OrderByComparator<T> orderByComparator) {
207 return dlFolderPersistence.findWithDynamicQuery(dynamicQuery, start,
208 end, orderByComparator);
209 }
210
211
217 @Override
218 public long dynamicQueryCount(DynamicQuery dynamicQuery) {
219 return dlFolderPersistence.countWithDynamicQuery(dynamicQuery);
220 }
221
222
229 @Override
230 public long dynamicQueryCount(DynamicQuery dynamicQuery,
231 Projection projection) {
232 return dlFolderPersistence.countWithDynamicQuery(dynamicQuery,
233 projection);
234 }
235
236 @Override
237 public DLFolder fetchDLFolder(long folderId) {
238 return dlFolderPersistence.fetchByPrimaryKey(folderId);
239 }
240
241
248 @Override
249 public DLFolder fetchDLFolderByUuidAndGroupId(String uuid, long groupId) {
250 return dlFolderPersistence.fetchByUUID_G(uuid, groupId);
251 }
252
253
260 @Override
261 public DLFolder getDLFolder(long folderId) throws PortalException {
262 return dlFolderPersistence.findByPrimaryKey(folderId);
263 }
264
265 @Override
266 public ActionableDynamicQuery getActionableDynamicQuery() {
267 ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
268
269 actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil.getService());
270 actionableDynamicQuery.setClass(DLFolder.class);
271 actionableDynamicQuery.setClassLoader(getClassLoader());
272
273 actionableDynamicQuery.setPrimaryKeyPropertyName("folderId");
274
275 return actionableDynamicQuery;
276 }
277
278 protected void initActionableDynamicQuery(
279 ActionableDynamicQuery actionableDynamicQuery) {
280 actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil.getService());
281 actionableDynamicQuery.setClass(DLFolder.class);
282 actionableDynamicQuery.setClassLoader(getClassLoader());
283
284 actionableDynamicQuery.setPrimaryKeyPropertyName("folderId");
285 }
286
287 @Override
288 public ExportActionableDynamicQuery getExportActionableDynamicQuery(
289 final PortletDataContext portletDataContext) {
290 final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
291 @Override
292 public long performCount() throws PortalException {
293 ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
294
295 StagedModelType stagedModelType = getStagedModelType();
296
297 long modelAdditionCount = super.performCount();
298
299 manifestSummary.addModelAdditionCount(stagedModelType.toString(),
300 modelAdditionCount);
301
302 long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
303 stagedModelType);
304
305 manifestSummary.addModelDeletionCount(stagedModelType.toString(),
306 modelDeletionCount);
307
308 return modelAdditionCount;
309 }
310 };
311
312 initActionableDynamicQuery(exportActionableDynamicQuery);
313
314 exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
315 @Override
316 public void addCriteria(DynamicQuery dynamicQuery) {
317 Criterion modifiedDateCriterion = portletDataContext.getDateRangeCriteria(
318 "modifiedDate");
319 Criterion statusDateCriterion = portletDataContext.getDateRangeCriteria(
320 "statusDate");
321
322 if ((modifiedDateCriterion != null) &&
323 (statusDateCriterion != null)) {
324 Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
325
326 disjunction.add(modifiedDateCriterion);
327 disjunction.add(statusDateCriterion);
328
329 dynamicQuery.add(disjunction);
330 }
331
332 Property workflowStatusProperty = PropertyFactoryUtil.forName(
333 "status");
334
335 if (portletDataContext.isInitialPublication()) {
336 dynamicQuery.add(workflowStatusProperty.ne(
337 WorkflowConstants.STATUS_IN_TRASH));
338 }
339 else {
340 StagedModelDataHandler<?> stagedModelDataHandler = StagedModelDataHandlerRegistryUtil.getStagedModelDataHandler(DLFolder.class.getName());
341
342 dynamicQuery.add(workflowStatusProperty.in(
343 stagedModelDataHandler.getExportableStatuses()));
344 }
345 }
346 });
347
348 exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
349
350 exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());
351
352 exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod() {
353 @Override
354 public void performAction(Object object)
355 throws PortalException {
356 DLFolder stagedModel = (DLFolder)object;
357
358 StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
359 stagedModel);
360 }
361 });
362 exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
363 PortalUtil.getClassNameId(DLFolder.class.getName())));
364
365 return exportActionableDynamicQuery;
366 }
367
368
371 @Override
372 public PersistedModel deletePersistedModel(PersistedModel persistedModel)
373 throws PortalException {
374 return dlFolderLocalService.deleteDLFolder((DLFolder)persistedModel);
375 }
376
377 @Override
378 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
379 throws PortalException {
380 return dlFolderPersistence.findByPrimaryKey(primaryKeyObj);
381 }
382
383
390 @Override
391 public List<DLFolder> getDLFoldersByUuidAndCompanyId(String uuid,
392 long companyId) {
393 return dlFolderPersistence.findByUuid_C(uuid, companyId);
394 }
395
396
406 @Override
407 public List<DLFolder> getDLFoldersByUuidAndCompanyId(String uuid,
408 long companyId, int start, int end,
409 OrderByComparator<DLFolder> orderByComparator) {
410 return dlFolderPersistence.findByUuid_C(uuid, companyId, start, end,
411 orderByComparator);
412 }
413
414
422 @Override
423 public DLFolder getDLFolderByUuidAndGroupId(String uuid, long groupId)
424 throws PortalException {
425 return dlFolderPersistence.findByUUID_G(uuid, groupId);
426 }
427
428
439 @Override
440 public List<DLFolder> getDLFolders(int start, int end) {
441 return dlFolderPersistence.findAll(start, end);
442 }
443
444
449 @Override
450 public int getDLFoldersCount() {
451 return dlFolderPersistence.countAll();
452 }
453
454
460 @Indexable(type = IndexableType.REINDEX)
461 @Override
462 public DLFolder updateDLFolder(DLFolder dlFolder) {
463 return dlFolderPersistence.update(dlFolder);
464 }
465
466
468 @Override
469 public void addDLFileEntryTypeDLFolder(long fileEntryTypeId, long folderId) {
470 dlFileEntryTypePersistence.addDLFolder(fileEntryTypeId, folderId);
471 }
472
473
475 @Override
476 public void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
477 DLFolder dlFolder) {
478 dlFileEntryTypePersistence.addDLFolder(fileEntryTypeId, dlFolder);
479 }
480
481
483 @Override
484 public void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
485 long[] folderIds) {
486 dlFileEntryTypePersistence.addDLFolders(fileEntryTypeId, folderIds);
487 }
488
489
491 @Override
492 public void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
493 List<DLFolder> DLFolders) {
494 dlFileEntryTypePersistence.addDLFolders(fileEntryTypeId, DLFolders);
495 }
496
497
499 @Override
500 public void clearDLFileEntryTypeDLFolders(long fileEntryTypeId) {
501 dlFileEntryTypePersistence.clearDLFolders(fileEntryTypeId);
502 }
503
504
506 @Override
507 public void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
508 long folderId) {
509 dlFileEntryTypePersistence.removeDLFolder(fileEntryTypeId, folderId);
510 }
511
512
514 @Override
515 public void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
516 DLFolder dlFolder) {
517 dlFileEntryTypePersistence.removeDLFolder(fileEntryTypeId, dlFolder);
518 }
519
520
522 @Override
523 public void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
524 long[] folderIds) {
525 dlFileEntryTypePersistence.removeDLFolders(fileEntryTypeId, folderIds);
526 }
527
528
530 @Override
531 public void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
532 List<DLFolder> DLFolders) {
533 dlFileEntryTypePersistence.removeDLFolders(fileEntryTypeId, DLFolders);
534 }
535
536
542 @Override
543 public long[] getDLFileEntryTypePrimaryKeys(long folderId) {
544 return dlFolderPersistence.getDLFileEntryTypePrimaryKeys(folderId);
545 }
546
547
549 @Override
550 public List<DLFolder> getDLFileEntryTypeDLFolders(long fileEntryTypeId) {
551 return dlFileEntryTypePersistence.getDLFolders(fileEntryTypeId);
552 }
553
554
556 @Override
557 public List<DLFolder> getDLFileEntryTypeDLFolders(long fileEntryTypeId,
558 int start, int end) {
559 return dlFileEntryTypePersistence.getDLFolders(fileEntryTypeId, start,
560 end);
561 }
562
563
565 @Override
566 public List<DLFolder> getDLFileEntryTypeDLFolders(long fileEntryTypeId,
567 int start, int end, OrderByComparator<DLFolder> orderByComparator) {
568 return dlFileEntryTypePersistence.getDLFolders(fileEntryTypeId, start,
569 end, orderByComparator);
570 }
571
572
574 @Override
575 public int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId) {
576 return dlFileEntryTypePersistence.getDLFoldersSize(fileEntryTypeId);
577 }
578
579
581 @Override
582 public boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
583 long folderId) {
584 return dlFileEntryTypePersistence.containsDLFolder(fileEntryTypeId,
585 folderId);
586 }
587
588
590 @Override
591 public boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId) {
592 return dlFileEntryTypePersistence.containsDLFolders(fileEntryTypeId);
593 }
594
595
597 @Override
598 public void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
599 long[] folderIds) {
600 dlFileEntryTypePersistence.setDLFolders(fileEntryTypeId, folderIds);
601 }
602
603
608 public DLFolderLocalService getDLFolderLocalService() {
609 return dlFolderLocalService;
610 }
611
612
617 public void setDLFolderLocalService(
618 DLFolderLocalService dlFolderLocalService) {
619 this.dlFolderLocalService = dlFolderLocalService;
620 }
621
622
627 public com.liferay.portlet.documentlibrary.service.DLFolderService getDLFolderService() {
628 return dlFolderService;
629 }
630
631
636 public void setDLFolderService(
637 com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService) {
638 this.dlFolderService = dlFolderService;
639 }
640
641
646 public DLFolderPersistence getDLFolderPersistence() {
647 return dlFolderPersistence;
648 }
649
650
655 public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
656 this.dlFolderPersistence = dlFolderPersistence;
657 }
658
659
664 public DLFolderFinder getDLFolderFinder() {
665 return dlFolderFinder;
666 }
667
668
673 public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
674 this.dlFolderFinder = dlFolderFinder;
675 }
676
677
682 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
683 return counterLocalService;
684 }
685
686
691 public void setCounterLocalService(
692 com.liferay.counter.service.CounterLocalService counterLocalService) {
693 this.counterLocalService = counterLocalService;
694 }
695
696
701 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
702 return groupLocalService;
703 }
704
705
710 public void setGroupLocalService(
711 com.liferay.portal.service.GroupLocalService groupLocalService) {
712 this.groupLocalService = groupLocalService;
713 }
714
715
720 public com.liferay.portal.service.GroupService getGroupService() {
721 return groupService;
722 }
723
724
729 public void setGroupService(
730 com.liferay.portal.service.GroupService groupService) {
731 this.groupService = groupService;
732 }
733
734
739 public GroupPersistence getGroupPersistence() {
740 return groupPersistence;
741 }
742
743
748 public void setGroupPersistence(GroupPersistence groupPersistence) {
749 this.groupPersistence = groupPersistence;
750 }
751
752
757 public GroupFinder getGroupFinder() {
758 return groupFinder;
759 }
760
761
766 public void setGroupFinder(GroupFinder groupFinder) {
767 this.groupFinder = groupFinder;
768 }
769
770
775 public com.liferay.portal.service.RepositoryLocalService getRepositoryLocalService() {
776 return repositoryLocalService;
777 }
778
779
784 public void setRepositoryLocalService(
785 com.liferay.portal.service.RepositoryLocalService repositoryLocalService) {
786 this.repositoryLocalService = repositoryLocalService;
787 }
788
789
794 public com.liferay.portal.service.RepositoryService getRepositoryService() {
795 return repositoryService;
796 }
797
798
803 public void setRepositoryService(
804 com.liferay.portal.service.RepositoryService repositoryService) {
805 this.repositoryService = repositoryService;
806 }
807
808
813 public RepositoryPersistence getRepositoryPersistence() {
814 return repositoryPersistence;
815 }
816
817
822 public void setRepositoryPersistence(
823 RepositoryPersistence repositoryPersistence) {
824 this.repositoryPersistence = repositoryPersistence;
825 }
826
827
832 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
833 return resourceLocalService;
834 }
835
836
841 public void setResourceLocalService(
842 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
843 this.resourceLocalService = resourceLocalService;
844 }
845
846
851 public com.liferay.portal.service.UserLocalService getUserLocalService() {
852 return userLocalService;
853 }
854
855
860 public void setUserLocalService(
861 com.liferay.portal.service.UserLocalService userLocalService) {
862 this.userLocalService = userLocalService;
863 }
864
865
870 public com.liferay.portal.service.UserService getUserService() {
871 return userService;
872 }
873
874
879 public void setUserService(
880 com.liferay.portal.service.UserService userService) {
881 this.userService = userService;
882 }
883
884
889 public UserPersistence getUserPersistence() {
890 return userPersistence;
891 }
892
893
898 public void setUserPersistence(UserPersistence userPersistence) {
899 this.userPersistence = userPersistence;
900 }
901
902
907 public UserFinder getUserFinder() {
908 return userFinder;
909 }
910
911
916 public void setUserFinder(UserFinder userFinder) {
917 this.userFinder = userFinder;
918 }
919
920
925 public com.liferay.portal.service.WebDAVPropsLocalService getWebDAVPropsLocalService() {
926 return webDAVPropsLocalService;
927 }
928
929
934 public void setWebDAVPropsLocalService(
935 com.liferay.portal.service.WebDAVPropsLocalService webDAVPropsLocalService) {
936 this.webDAVPropsLocalService = webDAVPropsLocalService;
937 }
938
939
944 public WebDAVPropsPersistence getWebDAVPropsPersistence() {
945 return webDAVPropsPersistence;
946 }
947
948
953 public void setWebDAVPropsPersistence(
954 WebDAVPropsPersistence webDAVPropsPersistence) {
955 this.webDAVPropsPersistence = webDAVPropsPersistence;
956 }
957
958
963 public com.liferay.portal.service.WorkflowDefinitionLinkLocalService getWorkflowDefinitionLinkLocalService() {
964 return workflowDefinitionLinkLocalService;
965 }
966
967
972 public void setWorkflowDefinitionLinkLocalService(
973 com.liferay.portal.service.WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService) {
974 this.workflowDefinitionLinkLocalService = workflowDefinitionLinkLocalService;
975 }
976
977
982 public WorkflowDefinitionLinkPersistence getWorkflowDefinitionLinkPersistence() {
983 return workflowDefinitionLinkPersistence;
984 }
985
986
991 public void setWorkflowDefinitionLinkPersistence(
992 WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence) {
993 this.workflowDefinitionLinkPersistence = workflowDefinitionLinkPersistence;
994 }
995
996
1001 public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
1002 return workflowInstanceLinkLocalService;
1003 }
1004
1005
1010 public void setWorkflowInstanceLinkLocalService(
1011 com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
1012 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
1013 }
1014
1015
1020 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
1021 return workflowInstanceLinkPersistence;
1022 }
1023
1024
1029 public void setWorkflowInstanceLinkPersistence(
1030 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
1031 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
1032 }
1033
1034
1039 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
1040 return assetEntryLocalService;
1041 }
1042
1043
1048 public void setAssetEntryLocalService(
1049 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
1050 this.assetEntryLocalService = assetEntryLocalService;
1051 }
1052
1053
1058 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
1059 return assetEntryService;
1060 }
1061
1062
1067 public void setAssetEntryService(
1068 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
1069 this.assetEntryService = assetEntryService;
1070 }
1071
1072
1077 public AssetEntryPersistence getAssetEntryPersistence() {
1078 return assetEntryPersistence;
1079 }
1080
1081
1086 public void setAssetEntryPersistence(
1087 AssetEntryPersistence assetEntryPersistence) {
1088 this.assetEntryPersistence = assetEntryPersistence;
1089 }
1090
1091
1096 public AssetEntryFinder getAssetEntryFinder() {
1097 return assetEntryFinder;
1098 }
1099
1100
1105 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1106 this.assetEntryFinder = assetEntryFinder;
1107 }
1108
1109
1114 public com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService getDLAppHelperLocalService() {
1115 return dlAppHelperLocalService;
1116 }
1117
1118
1123 public void setDLAppHelperLocalService(
1124 com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService) {
1125 this.dlAppHelperLocalService = dlAppHelperLocalService;
1126 }
1127
1128
1133 public com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService getDLFileEntryLocalService() {
1134 return dlFileEntryLocalService;
1135 }
1136
1137
1142 public void setDLFileEntryLocalService(
1143 com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService dlFileEntryLocalService) {
1144 this.dlFileEntryLocalService = dlFileEntryLocalService;
1145 }
1146
1147
1152 public com.liferay.portlet.documentlibrary.service.DLFileEntryService getDLFileEntryService() {
1153 return dlFileEntryService;
1154 }
1155
1156
1161 public void setDLFileEntryService(
1162 com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService) {
1163 this.dlFileEntryService = dlFileEntryService;
1164 }
1165
1166
1171 public DLFileEntryPersistence getDLFileEntryPersistence() {
1172 return dlFileEntryPersistence;
1173 }
1174
1175
1180 public void setDLFileEntryPersistence(
1181 DLFileEntryPersistence dlFileEntryPersistence) {
1182 this.dlFileEntryPersistence = dlFileEntryPersistence;
1183 }
1184
1185
1190 public DLFileEntryFinder getDLFileEntryFinder() {
1191 return dlFileEntryFinder;
1192 }
1193
1194
1199 public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
1200 this.dlFileEntryFinder = dlFileEntryFinder;
1201 }
1202
1203
1208 public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
1209 return dlFileEntryTypeLocalService;
1210 }
1211
1212
1217 public void setDLFileEntryTypeLocalService(
1218 com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
1219 this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
1220 }
1221
1222
1227 public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService getDLFileEntryTypeService() {
1228 return dlFileEntryTypeService;
1229 }
1230
1231
1236 public void setDLFileEntryTypeService(
1237 com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService) {
1238 this.dlFileEntryTypeService = dlFileEntryTypeService;
1239 }
1240
1241
1246 public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
1247 return dlFileEntryTypePersistence;
1248 }
1249
1250
1255 public void setDLFileEntryTypePersistence(
1256 DLFileEntryTypePersistence dlFileEntryTypePersistence) {
1257 this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
1258 }
1259
1260
1265 public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
1266 return dlFileEntryTypeFinder;
1267 }
1268
1269
1274 public void setDLFileEntryTypeFinder(
1275 DLFileEntryTypeFinder dlFileEntryTypeFinder) {
1276 this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
1277 }
1278
1279
1284 public com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService getDLFileShortcutLocalService() {
1285 return dlFileShortcutLocalService;
1286 }
1287
1288
1293 public void setDLFileShortcutLocalService(
1294 com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService dlFileShortcutLocalService) {
1295 this.dlFileShortcutLocalService = dlFileShortcutLocalService;
1296 }
1297
1298
1303 public com.liferay.portlet.documentlibrary.service.DLFileShortcutService getDLFileShortcutService() {
1304 return dlFileShortcutService;
1305 }
1306
1307
1312 public void setDLFileShortcutService(
1313 com.liferay.portlet.documentlibrary.service.DLFileShortcutService dlFileShortcutService) {
1314 this.dlFileShortcutService = dlFileShortcutService;
1315 }
1316
1317
1322 public DLFileShortcutPersistence getDLFileShortcutPersistence() {
1323 return dlFileShortcutPersistence;
1324 }
1325
1326
1331 public void setDLFileShortcutPersistence(
1332 DLFileShortcutPersistence dlFileShortcutPersistence) {
1333 this.dlFileShortcutPersistence = dlFileShortcutPersistence;
1334 }
1335
1336
1341 public com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService getDLFileVersionLocalService() {
1342 return dlFileVersionLocalService;
1343 }
1344
1345
1350 public void setDLFileVersionLocalService(
1351 com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService) {
1352 this.dlFileVersionLocalService = dlFileVersionLocalService;
1353 }
1354
1355
1360 public com.liferay.portlet.documentlibrary.service.DLFileVersionService getDLFileVersionService() {
1361 return dlFileVersionService;
1362 }
1363
1364
1369 public void setDLFileVersionService(
1370 com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService) {
1371 this.dlFileVersionService = dlFileVersionService;
1372 }
1373
1374
1379 public DLFileVersionPersistence getDLFileVersionPersistence() {
1380 return dlFileVersionPersistence;
1381 }
1382
1383
1388 public void setDLFileVersionPersistence(
1389 DLFileVersionPersistence dlFileVersionPersistence) {
1390 this.dlFileVersionPersistence = dlFileVersionPersistence;
1391 }
1392
1393
1398 public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
1399 return expandoRowLocalService;
1400 }
1401
1402
1407 public void setExpandoRowLocalService(
1408 com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
1409 this.expandoRowLocalService = expandoRowLocalService;
1410 }
1411
1412
1417 public ExpandoRowPersistence getExpandoRowPersistence() {
1418 return expandoRowPersistence;
1419 }
1420
1421
1426 public void setExpandoRowPersistence(
1427 ExpandoRowPersistence expandoRowPersistence) {
1428 this.expandoRowPersistence = expandoRowPersistence;
1429 }
1430
1431
1436 public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
1437 return trashEntryLocalService;
1438 }
1439
1440
1445 public void setTrashEntryLocalService(
1446 com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
1447 this.trashEntryLocalService = trashEntryLocalService;
1448 }
1449
1450
1455 public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
1456 return trashEntryService;
1457 }
1458
1459
1464 public void setTrashEntryService(
1465 com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
1466 this.trashEntryService = trashEntryService;
1467 }
1468
1469
1474 public TrashEntryPersistence getTrashEntryPersistence() {
1475 return trashEntryPersistence;
1476 }
1477
1478
1483 public void setTrashEntryPersistence(
1484 TrashEntryPersistence trashEntryPersistence) {
1485 this.trashEntryPersistence = trashEntryPersistence;
1486 }
1487
1488 public void afterPropertiesSet() {
1489 persistedModelLocalServiceRegistry.register("com.liferay.portlet.documentlibrary.model.DLFolder",
1490 dlFolderLocalService);
1491 }
1492
1493 public void destroy() {
1494 persistedModelLocalServiceRegistry.unregister(
1495 "com.liferay.portlet.documentlibrary.model.DLFolder");
1496 }
1497
1498
1503 @Override
1504 public String getBeanIdentifier() {
1505 return _beanIdentifier;
1506 }
1507
1508
1513 @Override
1514 public void setBeanIdentifier(String beanIdentifier) {
1515 _beanIdentifier = beanIdentifier;
1516 }
1517
1518 protected Class<?> getModelClass() {
1519 return DLFolder.class;
1520 }
1521
1522 protected String getModelClassName() {
1523 return DLFolder.class.getName();
1524 }
1525
1526
1531 protected void runSQL(String sql) {
1532 try {
1533 DataSource dataSource = dlFolderPersistence.getDataSource();
1534
1535 DB db = DBFactoryUtil.getDB();
1536
1537 sql = db.buildSQL(sql);
1538 sql = PortalUtil.transformSQL(sql);
1539
1540 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1541 sql, new int[0]);
1542
1543 sqlUpdate.update();
1544 }
1545 catch (Exception e) {
1546 throw new SystemException(e);
1547 }
1548 }
1549
1550 @BeanReference(type = DLFolderLocalService.class)
1551 protected DLFolderLocalService dlFolderLocalService;
1552 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFolderService.class)
1553 protected com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService;
1554 @BeanReference(type = DLFolderPersistence.class)
1555 protected DLFolderPersistence dlFolderPersistence;
1556 @BeanReference(type = DLFolderFinder.class)
1557 protected DLFolderFinder dlFolderFinder;
1558 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1559 protected com.liferay.counter.service.CounterLocalService counterLocalService;
1560 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1561 protected com.liferay.portal.service.GroupLocalService groupLocalService;
1562 @BeanReference(type = com.liferay.portal.service.GroupService.class)
1563 protected com.liferay.portal.service.GroupService groupService;
1564 @BeanReference(type = GroupPersistence.class)
1565 protected GroupPersistence groupPersistence;
1566 @BeanReference(type = GroupFinder.class)
1567 protected GroupFinder groupFinder;
1568 @BeanReference(type = com.liferay.portal.service.RepositoryLocalService.class)
1569 protected com.liferay.portal.service.RepositoryLocalService repositoryLocalService;
1570 @BeanReference(type = com.liferay.portal.service.RepositoryService.class)
1571 protected com.liferay.portal.service.RepositoryService repositoryService;
1572 @BeanReference(type = RepositoryPersistence.class)
1573 protected RepositoryPersistence repositoryPersistence;
1574 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1575 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1576 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1577 protected com.liferay.portal.service.UserLocalService userLocalService;
1578 @BeanReference(type = com.liferay.portal.service.UserService.class)
1579 protected com.liferay.portal.service.UserService userService;
1580 @BeanReference(type = UserPersistence.class)
1581 protected UserPersistence userPersistence;
1582 @BeanReference(type = UserFinder.class)
1583 protected UserFinder userFinder;
1584 @BeanReference(type = com.liferay.portal.service.WebDAVPropsLocalService.class)
1585 protected com.liferay.portal.service.WebDAVPropsLocalService webDAVPropsLocalService;
1586 @BeanReference(type = WebDAVPropsPersistence.class)
1587 protected WebDAVPropsPersistence webDAVPropsPersistence;
1588 @BeanReference(type = com.liferay.portal.service.WorkflowDefinitionLinkLocalService.class)
1589 protected com.liferay.portal.service.WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService;
1590 @BeanReference(type = WorkflowDefinitionLinkPersistence.class)
1591 protected WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence;
1592 @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1593 protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1594 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1595 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1596 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1597 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1598 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1599 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1600 @BeanReference(type = AssetEntryPersistence.class)
1601 protected AssetEntryPersistence assetEntryPersistence;
1602 @BeanReference(type = AssetEntryFinder.class)
1603 protected AssetEntryFinder assetEntryFinder;
1604 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService.class)
1605 protected com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService;
1606 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService.class)
1607 protected com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService dlFileEntryLocalService;
1608 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryService.class)
1609 protected com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService;
1610 @BeanReference(type = DLFileEntryPersistence.class)
1611 protected DLFileEntryPersistence dlFileEntryPersistence;
1612 @BeanReference(type = DLFileEntryFinder.class)
1613 protected DLFileEntryFinder dlFileEntryFinder;
1614 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService.class)
1615 protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
1616 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService.class)
1617 protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService;
1618 @BeanReference(type = DLFileEntryTypePersistence.class)
1619 protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
1620 @BeanReference(type = DLFileEntryTypeFinder.class)
1621 protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
1622 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService.class)
1623 protected com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService dlFileShortcutLocalService;
1624 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileShortcutService.class)
1625 protected com.liferay.portlet.documentlibrary.service.DLFileShortcutService dlFileShortcutService;
1626 @BeanReference(type = DLFileShortcutPersistence.class)
1627 protected DLFileShortcutPersistence dlFileShortcutPersistence;
1628 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService.class)
1629 protected com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService;
1630 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileVersionService.class)
1631 protected com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService;
1632 @BeanReference(type = DLFileVersionPersistence.class)
1633 protected DLFileVersionPersistence dlFileVersionPersistence;
1634 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1635 protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1636 @BeanReference(type = ExpandoRowPersistence.class)
1637 protected ExpandoRowPersistence expandoRowPersistence;
1638 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1639 protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1640 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1641 protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1642 @BeanReference(type = TrashEntryPersistence.class)
1643 protected TrashEntryPersistence trashEntryPersistence;
1644 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1645 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1646 private String _beanIdentifier;
1647 }