001
014
015 package com.liferay.portlet.documentlibrary.service.base;
016
017 import com.liferay.counter.service.CounterLocalService;
018
019 import com.liferay.portal.kernel.bean.BeanReference;
020 import com.liferay.portal.kernel.bean.IdentifiableBean;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
024 import com.liferay.portal.kernel.exception.PortalException;
025 import com.liferay.portal.kernel.exception.SystemException;
026 import com.liferay.portal.kernel.log.Log;
027 import com.liferay.portal.kernel.log.LogFactoryUtil;
028 import com.liferay.portal.kernel.search.Indexer;
029 import com.liferay.portal.kernel.search.IndexerRegistryUtil;
030 import com.liferay.portal.kernel.search.SearchException;
031 import com.liferay.portal.kernel.util.OrderByComparator;
032 import com.liferay.portal.model.PersistedModel;
033 import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
034 import com.liferay.portal.service.ResourceLocalService;
035 import com.liferay.portal.service.ResourceService;
036 import com.liferay.portal.service.UserLocalService;
037 import com.liferay.portal.service.UserService;
038 import com.liferay.portal.service.WorkflowDefinitionLinkLocalService;
039 import com.liferay.portal.service.WorkflowInstanceLinkLocalService;
040 import com.liferay.portal.service.persistence.ResourceFinder;
041 import com.liferay.portal.service.persistence.ResourcePersistence;
042 import com.liferay.portal.service.persistence.UserFinder;
043 import com.liferay.portal.service.persistence.UserPersistence;
044 import com.liferay.portal.service.persistence.WorkflowDefinitionLinkPersistence;
045 import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
046
047 import com.liferay.portlet.documentlibrary.model.DLFileEntryType;
048 import com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService;
049 import com.liferay.portlet.documentlibrary.service.DLAppLocalService;
050 import com.liferay.portlet.documentlibrary.service.DLAppService;
051 import com.liferay.portlet.documentlibrary.service.DLContentLocalService;
052 import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
053 import com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService;
054 import com.liferay.portlet.documentlibrary.service.DLFileEntryService;
055 import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService;
056 import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService;
057 import com.liferay.portlet.documentlibrary.service.DLFileRankLocalService;
058 import com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService;
059 import com.liferay.portlet.documentlibrary.service.DLFileShortcutService;
060 import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService;
061 import com.liferay.portlet.documentlibrary.service.DLFileVersionService;
062 import com.liferay.portlet.documentlibrary.service.DLFolderLocalService;
063 import com.liferay.portlet.documentlibrary.service.DLFolderService;
064 import com.liferay.portlet.documentlibrary.service.DLSyncLocalService;
065 import com.liferay.portlet.documentlibrary.service.DLSyncService;
066 import com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence;
067 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
068 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistence;
069 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
070 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
071 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
072 import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder;
073 import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
074 import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
075 import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
076 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
077 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
078 import com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence;
079 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService;
080 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureService;
081 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
082 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
083
084 import java.io.Serializable;
085
086 import java.util.List;
087
088 import javax.sql.DataSource;
089
090
102 public abstract class DLFileEntryTypeLocalServiceBaseImpl
103 implements DLFileEntryTypeLocalService, IdentifiableBean {
104
109
110
117 public DLFileEntryType addDLFileEntryType(DLFileEntryType dlFileEntryType)
118 throws SystemException {
119 dlFileEntryType.setNew(true);
120
121 dlFileEntryType = dlFileEntryTypePersistence.update(dlFileEntryType,
122 false);
123
124 Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
125
126 if (indexer != null) {
127 try {
128 indexer.reindex(dlFileEntryType);
129 }
130 catch (SearchException se) {
131 if (_log.isWarnEnabled()) {
132 _log.warn(se, se);
133 }
134 }
135 }
136
137 return dlFileEntryType;
138 }
139
140
146 public DLFileEntryType createDLFileEntryType(long fileEntryTypeId) {
147 return dlFileEntryTypePersistence.create(fileEntryTypeId);
148 }
149
150
157 public void deleteDLFileEntryType(long fileEntryTypeId)
158 throws PortalException, SystemException {
159 DLFileEntryType dlFileEntryType = dlFileEntryTypePersistence.remove(fileEntryTypeId);
160
161 Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
162
163 if (indexer != null) {
164 try {
165 indexer.delete(dlFileEntryType);
166 }
167 catch (SearchException se) {
168 if (_log.isWarnEnabled()) {
169 _log.warn(se, se);
170 }
171 }
172 }
173 }
174
175
181 public void deleteDLFileEntryType(DLFileEntryType dlFileEntryType)
182 throws SystemException {
183 dlFileEntryTypePersistence.remove(dlFileEntryType);
184
185 Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
186
187 if (indexer != null) {
188 try {
189 indexer.delete(dlFileEntryType);
190 }
191 catch (SearchException se) {
192 if (_log.isWarnEnabled()) {
193 _log.warn(se, se);
194 }
195 }
196 }
197 }
198
199
206 @SuppressWarnings("rawtypes")
207 public List dynamicQuery(DynamicQuery dynamicQuery)
208 throws SystemException {
209 return dlFileEntryTypePersistence.findWithDynamicQuery(dynamicQuery);
210 }
211
212
225 @SuppressWarnings("rawtypes")
226 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
227 throws SystemException {
228 return dlFileEntryTypePersistence.findWithDynamicQuery(dynamicQuery,
229 start, end);
230 }
231
232
246 @SuppressWarnings("rawtypes")
247 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
248 OrderByComparator orderByComparator) throws SystemException {
249 return dlFileEntryTypePersistence.findWithDynamicQuery(dynamicQuery,
250 start, end, orderByComparator);
251 }
252
253
260 public long dynamicQueryCount(DynamicQuery dynamicQuery)
261 throws SystemException {
262 return dlFileEntryTypePersistence.countWithDynamicQuery(dynamicQuery);
263 }
264
265 public DLFileEntryType fetchDLFileEntryType(long fileEntryTypeId)
266 throws SystemException {
267 return dlFileEntryTypePersistence.fetchByPrimaryKey(fileEntryTypeId);
268 }
269
270
278 public DLFileEntryType getDLFileEntryType(long fileEntryTypeId)
279 throws PortalException, SystemException {
280 return dlFileEntryTypePersistence.findByPrimaryKey(fileEntryTypeId);
281 }
282
283 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
284 throws PortalException, SystemException {
285 return dlFileEntryTypePersistence.findByPrimaryKey(primaryKeyObj);
286 }
287
288
297 public DLFileEntryType getDLFileEntryTypeByUuidAndGroupId(String uuid,
298 long groupId) throws PortalException, SystemException {
299 return dlFileEntryTypePersistence.findByUUID_G(uuid, groupId);
300 }
301
302
314 public List<DLFileEntryType> getDLFileEntryTypes(int start, int end)
315 throws SystemException {
316 return dlFileEntryTypePersistence.findAll(start, end);
317 }
318
319
325 public int getDLFileEntryTypesCount() throws SystemException {
326 return dlFileEntryTypePersistence.countAll();
327 }
328
329
336 public DLFileEntryType updateDLFileEntryType(
337 DLFileEntryType dlFileEntryType) throws SystemException {
338 return updateDLFileEntryType(dlFileEntryType, true);
339 }
340
341
349 public DLFileEntryType updateDLFileEntryType(
350 DLFileEntryType dlFileEntryType, boolean merge)
351 throws SystemException {
352 dlFileEntryType.setNew(false);
353
354 dlFileEntryType = dlFileEntryTypePersistence.update(dlFileEntryType,
355 merge);
356
357 Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
358
359 if (indexer != null) {
360 try {
361 indexer.reindex(dlFileEntryType);
362 }
363 catch (SearchException se) {
364 if (_log.isWarnEnabled()) {
365 _log.warn(se, se);
366 }
367 }
368 }
369
370 return dlFileEntryType;
371 }
372
373
378 public DLAppLocalService getDLAppLocalService() {
379 return dlAppLocalService;
380 }
381
382
387 public void setDLAppLocalService(DLAppLocalService dlAppLocalService) {
388 this.dlAppLocalService = dlAppLocalService;
389 }
390
391
396 public DLAppService getDLAppService() {
397 return dlAppService;
398 }
399
400
405 public void setDLAppService(DLAppService dlAppService) {
406 this.dlAppService = dlAppService;
407 }
408
409
414 public DLAppHelperLocalService getDLAppHelperLocalService() {
415 return dlAppHelperLocalService;
416 }
417
418
423 public void setDLAppHelperLocalService(
424 DLAppHelperLocalService dlAppHelperLocalService) {
425 this.dlAppHelperLocalService = dlAppHelperLocalService;
426 }
427
428
433 public DLContentLocalService getDLContentLocalService() {
434 return dlContentLocalService;
435 }
436
437
442 public void setDLContentLocalService(
443 DLContentLocalService dlContentLocalService) {
444 this.dlContentLocalService = dlContentLocalService;
445 }
446
447
452 public DLContentPersistence getDLContentPersistence() {
453 return dlContentPersistence;
454 }
455
456
461 public void setDLContentPersistence(
462 DLContentPersistence dlContentPersistence) {
463 this.dlContentPersistence = dlContentPersistence;
464 }
465
466
471 public DLFileEntryLocalService getDLFileEntryLocalService() {
472 return dlFileEntryLocalService;
473 }
474
475
480 public void setDLFileEntryLocalService(
481 DLFileEntryLocalService dlFileEntryLocalService) {
482 this.dlFileEntryLocalService = dlFileEntryLocalService;
483 }
484
485
490 public DLFileEntryService getDLFileEntryService() {
491 return dlFileEntryService;
492 }
493
494
499 public void setDLFileEntryService(DLFileEntryService dlFileEntryService) {
500 this.dlFileEntryService = dlFileEntryService;
501 }
502
503
508 public DLFileEntryPersistence getDLFileEntryPersistence() {
509 return dlFileEntryPersistence;
510 }
511
512
517 public void setDLFileEntryPersistence(
518 DLFileEntryPersistence dlFileEntryPersistence) {
519 this.dlFileEntryPersistence = dlFileEntryPersistence;
520 }
521
522
527 public DLFileEntryFinder getDLFileEntryFinder() {
528 return dlFileEntryFinder;
529 }
530
531
536 public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
537 this.dlFileEntryFinder = dlFileEntryFinder;
538 }
539
540
545 public DLFileEntryMetadataLocalService getDLFileEntryMetadataLocalService() {
546 return dlFileEntryMetadataLocalService;
547 }
548
549
554 public void setDLFileEntryMetadataLocalService(
555 DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService) {
556 this.dlFileEntryMetadataLocalService = dlFileEntryMetadataLocalService;
557 }
558
559
564 public DLFileEntryMetadataPersistence getDLFileEntryMetadataPersistence() {
565 return dlFileEntryMetadataPersistence;
566 }
567
568
573 public void setDLFileEntryMetadataPersistence(
574 DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence) {
575 this.dlFileEntryMetadataPersistence = dlFileEntryMetadataPersistence;
576 }
577
578
583 public DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
584 return dlFileEntryTypeLocalService;
585 }
586
587
592 public void setDLFileEntryTypeLocalService(
593 DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
594 this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
595 }
596
597
602 public DLFileEntryTypeService getDLFileEntryTypeService() {
603 return dlFileEntryTypeService;
604 }
605
606
611 public void setDLFileEntryTypeService(
612 DLFileEntryTypeService dlFileEntryTypeService) {
613 this.dlFileEntryTypeService = dlFileEntryTypeService;
614 }
615
616
621 public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
622 return dlFileEntryTypePersistence;
623 }
624
625
630 public void setDLFileEntryTypePersistence(
631 DLFileEntryTypePersistence dlFileEntryTypePersistence) {
632 this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
633 }
634
635
640 public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
641 return dlFileEntryTypeFinder;
642 }
643
644
649 public void setDLFileEntryTypeFinder(
650 DLFileEntryTypeFinder dlFileEntryTypeFinder) {
651 this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
652 }
653
654
659 public DLFileRankLocalService getDLFileRankLocalService() {
660 return dlFileRankLocalService;
661 }
662
663
668 public void setDLFileRankLocalService(
669 DLFileRankLocalService dlFileRankLocalService) {
670 this.dlFileRankLocalService = dlFileRankLocalService;
671 }
672
673
678 public DLFileRankPersistence getDLFileRankPersistence() {
679 return dlFileRankPersistence;
680 }
681
682
687 public void setDLFileRankPersistence(
688 DLFileRankPersistence dlFileRankPersistence) {
689 this.dlFileRankPersistence = dlFileRankPersistence;
690 }
691
692
697 public DLFileRankFinder getDLFileRankFinder() {
698 return dlFileRankFinder;
699 }
700
701
706 public void setDLFileRankFinder(DLFileRankFinder dlFileRankFinder) {
707 this.dlFileRankFinder = dlFileRankFinder;
708 }
709
710
715 public DLFileShortcutLocalService getDLFileShortcutLocalService() {
716 return dlFileShortcutLocalService;
717 }
718
719
724 public void setDLFileShortcutLocalService(
725 DLFileShortcutLocalService dlFileShortcutLocalService) {
726 this.dlFileShortcutLocalService = dlFileShortcutLocalService;
727 }
728
729
734 public DLFileShortcutService getDLFileShortcutService() {
735 return dlFileShortcutService;
736 }
737
738
743 public void setDLFileShortcutService(
744 DLFileShortcutService dlFileShortcutService) {
745 this.dlFileShortcutService = dlFileShortcutService;
746 }
747
748
753 public DLFileShortcutPersistence getDLFileShortcutPersistence() {
754 return dlFileShortcutPersistence;
755 }
756
757
762 public void setDLFileShortcutPersistence(
763 DLFileShortcutPersistence dlFileShortcutPersistence) {
764 this.dlFileShortcutPersistence = dlFileShortcutPersistence;
765 }
766
767
772 public DLFileVersionLocalService getDLFileVersionLocalService() {
773 return dlFileVersionLocalService;
774 }
775
776
781 public void setDLFileVersionLocalService(
782 DLFileVersionLocalService dlFileVersionLocalService) {
783 this.dlFileVersionLocalService = dlFileVersionLocalService;
784 }
785
786
791 public DLFileVersionService getDLFileVersionService() {
792 return dlFileVersionService;
793 }
794
795
800 public void setDLFileVersionService(
801 DLFileVersionService dlFileVersionService) {
802 this.dlFileVersionService = dlFileVersionService;
803 }
804
805
810 public DLFileVersionPersistence getDLFileVersionPersistence() {
811 return dlFileVersionPersistence;
812 }
813
814
819 public void setDLFileVersionPersistence(
820 DLFileVersionPersistence dlFileVersionPersistence) {
821 this.dlFileVersionPersistence = dlFileVersionPersistence;
822 }
823
824
829 public DLFolderLocalService getDLFolderLocalService() {
830 return dlFolderLocalService;
831 }
832
833
838 public void setDLFolderLocalService(
839 DLFolderLocalService dlFolderLocalService) {
840 this.dlFolderLocalService = dlFolderLocalService;
841 }
842
843
848 public DLFolderService getDLFolderService() {
849 return dlFolderService;
850 }
851
852
857 public void setDLFolderService(DLFolderService dlFolderService) {
858 this.dlFolderService = dlFolderService;
859 }
860
861
866 public DLFolderPersistence getDLFolderPersistence() {
867 return dlFolderPersistence;
868 }
869
870
875 public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
876 this.dlFolderPersistence = dlFolderPersistence;
877 }
878
879
884 public DLFolderFinder getDLFolderFinder() {
885 return dlFolderFinder;
886 }
887
888
893 public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
894 this.dlFolderFinder = dlFolderFinder;
895 }
896
897
902 public DLSyncLocalService getDLSyncLocalService() {
903 return dlSyncLocalService;
904 }
905
906
911 public void setDLSyncLocalService(DLSyncLocalService dlSyncLocalService) {
912 this.dlSyncLocalService = dlSyncLocalService;
913 }
914
915
920 public DLSyncService getDLSyncService() {
921 return dlSyncService;
922 }
923
924
929 public void setDLSyncService(DLSyncService dlSyncService) {
930 this.dlSyncService = dlSyncService;
931 }
932
933
938 public DLSyncPersistence getDLSyncPersistence() {
939 return dlSyncPersistence;
940 }
941
942
947 public void setDLSyncPersistence(DLSyncPersistence dlSyncPersistence) {
948 this.dlSyncPersistence = dlSyncPersistence;
949 }
950
951
956 public CounterLocalService getCounterLocalService() {
957 return counterLocalService;
958 }
959
960
965 public void setCounterLocalService(CounterLocalService counterLocalService) {
966 this.counterLocalService = counterLocalService;
967 }
968
969
974 public ResourceLocalService getResourceLocalService() {
975 return resourceLocalService;
976 }
977
978
983 public void setResourceLocalService(
984 ResourceLocalService resourceLocalService) {
985 this.resourceLocalService = resourceLocalService;
986 }
987
988
993 public ResourceService getResourceService() {
994 return resourceService;
995 }
996
997
1002 public void setResourceService(ResourceService resourceService) {
1003 this.resourceService = resourceService;
1004 }
1005
1006
1011 public ResourcePersistence getResourcePersistence() {
1012 return resourcePersistence;
1013 }
1014
1015
1020 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
1021 this.resourcePersistence = resourcePersistence;
1022 }
1023
1024
1029 public ResourceFinder getResourceFinder() {
1030 return resourceFinder;
1031 }
1032
1033
1038 public void setResourceFinder(ResourceFinder resourceFinder) {
1039 this.resourceFinder = resourceFinder;
1040 }
1041
1042
1047 public UserLocalService getUserLocalService() {
1048 return userLocalService;
1049 }
1050
1051
1056 public void setUserLocalService(UserLocalService userLocalService) {
1057 this.userLocalService = userLocalService;
1058 }
1059
1060
1065 public UserService getUserService() {
1066 return userService;
1067 }
1068
1069
1074 public void setUserService(UserService userService) {
1075 this.userService = userService;
1076 }
1077
1078
1083 public UserPersistence getUserPersistence() {
1084 return userPersistence;
1085 }
1086
1087
1092 public void setUserPersistence(UserPersistence userPersistence) {
1093 this.userPersistence = userPersistence;
1094 }
1095
1096
1101 public UserFinder getUserFinder() {
1102 return userFinder;
1103 }
1104
1105
1110 public void setUserFinder(UserFinder userFinder) {
1111 this.userFinder = userFinder;
1112 }
1113
1114
1119 public WorkflowDefinitionLinkLocalService getWorkflowDefinitionLinkLocalService() {
1120 return workflowDefinitionLinkLocalService;
1121 }
1122
1123
1128 public void setWorkflowDefinitionLinkLocalService(
1129 WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService) {
1130 this.workflowDefinitionLinkLocalService = workflowDefinitionLinkLocalService;
1131 }
1132
1133
1138 public WorkflowDefinitionLinkPersistence getWorkflowDefinitionLinkPersistence() {
1139 return workflowDefinitionLinkPersistence;
1140 }
1141
1142
1147 public void setWorkflowDefinitionLinkPersistence(
1148 WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence) {
1149 this.workflowDefinitionLinkPersistence = workflowDefinitionLinkPersistence;
1150 }
1151
1152
1157 public WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
1158 return workflowInstanceLinkLocalService;
1159 }
1160
1161
1166 public void setWorkflowInstanceLinkLocalService(
1167 WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
1168 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
1169 }
1170
1171
1176 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
1177 return workflowInstanceLinkPersistence;
1178 }
1179
1180
1185 public void setWorkflowInstanceLinkPersistence(
1186 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
1187 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
1188 }
1189
1190
1195 public DDMStructureLocalService getDDMStructureLocalService() {
1196 return ddmStructureLocalService;
1197 }
1198
1199
1204 public void setDDMStructureLocalService(
1205 DDMStructureLocalService ddmStructureLocalService) {
1206 this.ddmStructureLocalService = ddmStructureLocalService;
1207 }
1208
1209
1214 public DDMStructureService getDDMStructureService() {
1215 return ddmStructureService;
1216 }
1217
1218
1223 public void setDDMStructureService(DDMStructureService ddmStructureService) {
1224 this.ddmStructureService = ddmStructureService;
1225 }
1226
1227
1232 public DDMStructurePersistence getDDMStructurePersistence() {
1233 return ddmStructurePersistence;
1234 }
1235
1236
1241 public void setDDMStructurePersistence(
1242 DDMStructurePersistence ddmStructurePersistence) {
1243 this.ddmStructurePersistence = ddmStructurePersistence;
1244 }
1245
1246
1251 public DDMStructureFinder getDDMStructureFinder() {
1252 return ddmStructureFinder;
1253 }
1254
1255
1260 public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
1261 this.ddmStructureFinder = ddmStructureFinder;
1262 }
1263
1264 public void afterPropertiesSet() {
1265 persistedModelLocalServiceRegistry.register("com.liferay.portlet.documentlibrary.model.DLFileEntryType",
1266 dlFileEntryTypeLocalService);
1267 }
1268
1269 public void destroy() {
1270 persistedModelLocalServiceRegistry.unregister(
1271 "com.liferay.portlet.documentlibrary.model.DLFileEntryType");
1272 }
1273
1274
1279 public String getBeanIdentifier() {
1280 return _beanIdentifier;
1281 }
1282
1283
1288 public void setBeanIdentifier(String beanIdentifier) {
1289 _beanIdentifier = beanIdentifier;
1290 }
1291
1292 protected ClassLoader getClassLoader() {
1293 Class<?> clazz = getClass();
1294
1295 return clazz.getClassLoader();
1296 }
1297
1298 protected Class<?> getModelClass() {
1299 return DLFileEntryType.class;
1300 }
1301
1302 protected String getModelClassName() {
1303 return DLFileEntryType.class.getName();
1304 }
1305
1306
1311 protected void runSQL(String sql) throws SystemException {
1312 try {
1313 DataSource dataSource = dlFileEntryTypePersistence.getDataSource();
1314
1315 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1316 sql, new int[0]);
1317
1318 sqlUpdate.update();
1319 }
1320 catch (Exception e) {
1321 throw new SystemException(e);
1322 }
1323 }
1324
1325 @BeanReference(type = DLAppLocalService.class)
1326 protected DLAppLocalService dlAppLocalService;
1327 @BeanReference(type = DLAppService.class)
1328 protected DLAppService dlAppService;
1329 @BeanReference(type = DLAppHelperLocalService.class)
1330 protected DLAppHelperLocalService dlAppHelperLocalService;
1331 @BeanReference(type = DLContentLocalService.class)
1332 protected DLContentLocalService dlContentLocalService;
1333 @BeanReference(type = DLContentPersistence.class)
1334 protected DLContentPersistence dlContentPersistence;
1335 @BeanReference(type = DLFileEntryLocalService.class)
1336 protected DLFileEntryLocalService dlFileEntryLocalService;
1337 @BeanReference(type = DLFileEntryService.class)
1338 protected DLFileEntryService dlFileEntryService;
1339 @BeanReference(type = DLFileEntryPersistence.class)
1340 protected DLFileEntryPersistence dlFileEntryPersistence;
1341 @BeanReference(type = DLFileEntryFinder.class)
1342 protected DLFileEntryFinder dlFileEntryFinder;
1343 @BeanReference(type = DLFileEntryMetadataLocalService.class)
1344 protected DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService;
1345 @BeanReference(type = DLFileEntryMetadataPersistence.class)
1346 protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence;
1347 @BeanReference(type = DLFileEntryTypeLocalService.class)
1348 protected DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
1349 @BeanReference(type = DLFileEntryTypeService.class)
1350 protected DLFileEntryTypeService dlFileEntryTypeService;
1351 @BeanReference(type = DLFileEntryTypePersistence.class)
1352 protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
1353 @BeanReference(type = DLFileEntryTypeFinder.class)
1354 protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
1355 @BeanReference(type = DLFileRankLocalService.class)
1356 protected DLFileRankLocalService dlFileRankLocalService;
1357 @BeanReference(type = DLFileRankPersistence.class)
1358 protected DLFileRankPersistence dlFileRankPersistence;
1359 @BeanReference(type = DLFileRankFinder.class)
1360 protected DLFileRankFinder dlFileRankFinder;
1361 @BeanReference(type = DLFileShortcutLocalService.class)
1362 protected DLFileShortcutLocalService dlFileShortcutLocalService;
1363 @BeanReference(type = DLFileShortcutService.class)
1364 protected DLFileShortcutService dlFileShortcutService;
1365 @BeanReference(type = DLFileShortcutPersistence.class)
1366 protected DLFileShortcutPersistence dlFileShortcutPersistence;
1367 @BeanReference(type = DLFileVersionLocalService.class)
1368 protected DLFileVersionLocalService dlFileVersionLocalService;
1369 @BeanReference(type = DLFileVersionService.class)
1370 protected DLFileVersionService dlFileVersionService;
1371 @BeanReference(type = DLFileVersionPersistence.class)
1372 protected DLFileVersionPersistence dlFileVersionPersistence;
1373 @BeanReference(type = DLFolderLocalService.class)
1374 protected DLFolderLocalService dlFolderLocalService;
1375 @BeanReference(type = DLFolderService.class)
1376 protected DLFolderService dlFolderService;
1377 @BeanReference(type = DLFolderPersistence.class)
1378 protected DLFolderPersistence dlFolderPersistence;
1379 @BeanReference(type = DLFolderFinder.class)
1380 protected DLFolderFinder dlFolderFinder;
1381 @BeanReference(type = DLSyncLocalService.class)
1382 protected DLSyncLocalService dlSyncLocalService;
1383 @BeanReference(type = DLSyncService.class)
1384 protected DLSyncService dlSyncService;
1385 @BeanReference(type = DLSyncPersistence.class)
1386 protected DLSyncPersistence dlSyncPersistence;
1387 @BeanReference(type = CounterLocalService.class)
1388 protected CounterLocalService counterLocalService;
1389 @BeanReference(type = ResourceLocalService.class)
1390 protected ResourceLocalService resourceLocalService;
1391 @BeanReference(type = ResourceService.class)
1392 protected ResourceService resourceService;
1393 @BeanReference(type = ResourcePersistence.class)
1394 protected ResourcePersistence resourcePersistence;
1395 @BeanReference(type = ResourceFinder.class)
1396 protected ResourceFinder resourceFinder;
1397 @BeanReference(type = UserLocalService.class)
1398 protected UserLocalService userLocalService;
1399 @BeanReference(type = UserService.class)
1400 protected UserService userService;
1401 @BeanReference(type = UserPersistence.class)
1402 protected UserPersistence userPersistence;
1403 @BeanReference(type = UserFinder.class)
1404 protected UserFinder userFinder;
1405 @BeanReference(type = WorkflowDefinitionLinkLocalService.class)
1406 protected WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService;
1407 @BeanReference(type = WorkflowDefinitionLinkPersistence.class)
1408 protected WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence;
1409 @BeanReference(type = WorkflowInstanceLinkLocalService.class)
1410 protected WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1411 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1412 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1413 @BeanReference(type = DDMStructureLocalService.class)
1414 protected DDMStructureLocalService ddmStructureLocalService;
1415 @BeanReference(type = DDMStructureService.class)
1416 protected DDMStructureService ddmStructureService;
1417 @BeanReference(type = DDMStructurePersistence.class)
1418 protected DDMStructurePersistence ddmStructurePersistence;
1419 @BeanReference(type = DDMStructureFinder.class)
1420 protected DDMStructureFinder ddmStructureFinder;
1421 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1422 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1423 private static Log _log = LogFactoryUtil.getLog(DLFileEntryTypeLocalServiceBaseImpl.class);
1424 private String _beanIdentifier;
1425 }