001
014
015 package com.liferay.portlet.documentlibrary.service.base;
016
017 import com.liferay.asset.kernel.service.persistence.AssetEntryFinder;
018 import com.liferay.asset.kernel.service.persistence.AssetEntryPersistence;
019 import com.liferay.asset.kernel.service.persistence.AssetTagFinder;
020 import com.liferay.asset.kernel.service.persistence.AssetTagPersistence;
021
022 import com.liferay.document.library.kernel.model.DLFileShortcut;
023 import com.liferay.document.library.kernel.service.DLFileShortcutService;
024 import com.liferay.document.library.kernel.service.persistence.DLFileShortcutPersistence;
025 import com.liferay.document.library.kernel.service.persistence.DLFolderFinder;
026 import com.liferay.document.library.kernel.service.persistence.DLFolderPersistence;
027
028 import com.liferay.portal.kernel.bean.BeanReference;
029 import com.liferay.portal.kernel.dao.db.DB;
030 import com.liferay.portal.kernel.dao.db.DBManagerUtil;
031 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
032 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
033 import com.liferay.portal.kernel.exception.SystemException;
034 import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
035 import com.liferay.portal.kernel.service.BaseServiceImpl;
036 import com.liferay.portal.kernel.service.persistence.UserFinder;
037 import com.liferay.portal.kernel.service.persistence.UserPersistence;
038 import com.liferay.portal.kernel.util.PortalUtil;
039
040 import com.liferay.trash.kernel.service.persistence.TrashEntryPersistence;
041 import com.liferay.trash.kernel.service.persistence.TrashVersionPersistence;
042
043 import javax.sql.DataSource;
044
045
057 public abstract class DLFileShortcutServiceBaseImpl extends BaseServiceImpl
058 implements DLFileShortcutService, IdentifiableOSGiService {
059
064
065
070 public com.liferay.document.library.kernel.service.DLFileShortcutLocalService getDLFileShortcutLocalService() {
071 return dlFileShortcutLocalService;
072 }
073
074
079 public void setDLFileShortcutLocalService(
080 com.liferay.document.library.kernel.service.DLFileShortcutLocalService dlFileShortcutLocalService) {
081 this.dlFileShortcutLocalService = dlFileShortcutLocalService;
082 }
083
084
089 public DLFileShortcutService getDLFileShortcutService() {
090 return dlFileShortcutService;
091 }
092
093
098 public void setDLFileShortcutService(
099 DLFileShortcutService dlFileShortcutService) {
100 this.dlFileShortcutService = dlFileShortcutService;
101 }
102
103
108 public DLFileShortcutPersistence getDLFileShortcutPersistence() {
109 return dlFileShortcutPersistence;
110 }
111
112
117 public void setDLFileShortcutPersistence(
118 DLFileShortcutPersistence dlFileShortcutPersistence) {
119 this.dlFileShortcutPersistence = dlFileShortcutPersistence;
120 }
121
122
127 public com.liferay.counter.kernel.service.CounterLocalService getCounterLocalService() {
128 return counterLocalService;
129 }
130
131
136 public void setCounterLocalService(
137 com.liferay.counter.kernel.service.CounterLocalService counterLocalService) {
138 this.counterLocalService = counterLocalService;
139 }
140
141
146 public com.liferay.portal.kernel.service.ResourceLocalService getResourceLocalService() {
147 return resourceLocalService;
148 }
149
150
155 public void setResourceLocalService(
156 com.liferay.portal.kernel.service.ResourceLocalService resourceLocalService) {
157 this.resourceLocalService = resourceLocalService;
158 }
159
160
165 public com.liferay.portal.kernel.service.UserLocalService getUserLocalService() {
166 return userLocalService;
167 }
168
169
174 public void setUserLocalService(
175 com.liferay.portal.kernel.service.UserLocalService userLocalService) {
176 this.userLocalService = userLocalService;
177 }
178
179
184 public com.liferay.portal.kernel.service.UserService getUserService() {
185 return userService;
186 }
187
188
193 public void setUserService(
194 com.liferay.portal.kernel.service.UserService userService) {
195 this.userService = userService;
196 }
197
198
203 public UserPersistence getUserPersistence() {
204 return userPersistence;
205 }
206
207
212 public void setUserPersistence(UserPersistence userPersistence) {
213 this.userPersistence = userPersistence;
214 }
215
216
221 public UserFinder getUserFinder() {
222 return userFinder;
223 }
224
225
230 public void setUserFinder(UserFinder userFinder) {
231 this.userFinder = userFinder;
232 }
233
234
239 public com.liferay.asset.kernel.service.AssetEntryLocalService getAssetEntryLocalService() {
240 return assetEntryLocalService;
241 }
242
243
248 public void setAssetEntryLocalService(
249 com.liferay.asset.kernel.service.AssetEntryLocalService assetEntryLocalService) {
250 this.assetEntryLocalService = assetEntryLocalService;
251 }
252
253
258 public com.liferay.asset.kernel.service.AssetEntryService getAssetEntryService() {
259 return assetEntryService;
260 }
261
262
267 public void setAssetEntryService(
268 com.liferay.asset.kernel.service.AssetEntryService assetEntryService) {
269 this.assetEntryService = assetEntryService;
270 }
271
272
277 public AssetEntryPersistence getAssetEntryPersistence() {
278 return assetEntryPersistence;
279 }
280
281
286 public void setAssetEntryPersistence(
287 AssetEntryPersistence assetEntryPersistence) {
288 this.assetEntryPersistence = assetEntryPersistence;
289 }
290
291
296 public AssetEntryFinder getAssetEntryFinder() {
297 return assetEntryFinder;
298 }
299
300
305 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
306 this.assetEntryFinder = assetEntryFinder;
307 }
308
309
314 public com.liferay.asset.kernel.service.AssetTagLocalService getAssetTagLocalService() {
315 return assetTagLocalService;
316 }
317
318
323 public void setAssetTagLocalService(
324 com.liferay.asset.kernel.service.AssetTagLocalService assetTagLocalService) {
325 this.assetTagLocalService = assetTagLocalService;
326 }
327
328
333 public com.liferay.asset.kernel.service.AssetTagService getAssetTagService() {
334 return assetTagService;
335 }
336
337
342 public void setAssetTagService(
343 com.liferay.asset.kernel.service.AssetTagService assetTagService) {
344 this.assetTagService = assetTagService;
345 }
346
347
352 public AssetTagPersistence getAssetTagPersistence() {
353 return assetTagPersistence;
354 }
355
356
361 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
362 this.assetTagPersistence = assetTagPersistence;
363 }
364
365
370 public AssetTagFinder getAssetTagFinder() {
371 return assetTagFinder;
372 }
373
374
379 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
380 this.assetTagFinder = assetTagFinder;
381 }
382
383
388 public com.liferay.document.library.kernel.service.DLAppLocalService getDLAppLocalService() {
389 return dlAppLocalService;
390 }
391
392
397 public void setDLAppLocalService(
398 com.liferay.document.library.kernel.service.DLAppLocalService dlAppLocalService) {
399 this.dlAppLocalService = dlAppLocalService;
400 }
401
402
407 public com.liferay.document.library.kernel.service.DLAppService getDLAppService() {
408 return dlAppService;
409 }
410
411
416 public void setDLAppService(
417 com.liferay.document.library.kernel.service.DLAppService dlAppService) {
418 this.dlAppService = dlAppService;
419 }
420
421
426 public com.liferay.trash.kernel.service.TrashEntryLocalService getTrashEntryLocalService() {
427 return trashEntryLocalService;
428 }
429
430
435 public void setTrashEntryLocalService(
436 com.liferay.trash.kernel.service.TrashEntryLocalService trashEntryLocalService) {
437 this.trashEntryLocalService = trashEntryLocalService;
438 }
439
440
445 public com.liferay.trash.kernel.service.TrashEntryService getTrashEntryService() {
446 return trashEntryService;
447 }
448
449
454 public void setTrashEntryService(
455 com.liferay.trash.kernel.service.TrashEntryService trashEntryService) {
456 this.trashEntryService = trashEntryService;
457 }
458
459
464 public TrashEntryPersistence getTrashEntryPersistence() {
465 return trashEntryPersistence;
466 }
467
468
473 public void setTrashEntryPersistence(
474 TrashEntryPersistence trashEntryPersistence) {
475 this.trashEntryPersistence = trashEntryPersistence;
476 }
477
478
483 public com.liferay.trash.kernel.service.TrashVersionLocalService getTrashVersionLocalService() {
484 return trashVersionLocalService;
485 }
486
487
492 public void setTrashVersionLocalService(
493 com.liferay.trash.kernel.service.TrashVersionLocalService trashVersionLocalService) {
494 this.trashVersionLocalService = trashVersionLocalService;
495 }
496
497
502 public TrashVersionPersistence getTrashVersionPersistence() {
503 return trashVersionPersistence;
504 }
505
506
511 public void setTrashVersionPersistence(
512 TrashVersionPersistence trashVersionPersistence) {
513 this.trashVersionPersistence = trashVersionPersistence;
514 }
515
516
521 public com.liferay.document.library.kernel.service.DLFolderLocalService getDLFolderLocalService() {
522 return dlFolderLocalService;
523 }
524
525
530 public void setDLFolderLocalService(
531 com.liferay.document.library.kernel.service.DLFolderLocalService dlFolderLocalService) {
532 this.dlFolderLocalService = dlFolderLocalService;
533 }
534
535
540 public com.liferay.document.library.kernel.service.DLFolderService getDLFolderService() {
541 return dlFolderService;
542 }
543
544
549 public void setDLFolderService(
550 com.liferay.document.library.kernel.service.DLFolderService dlFolderService) {
551 this.dlFolderService = dlFolderService;
552 }
553
554
559 public DLFolderPersistence getDLFolderPersistence() {
560 return dlFolderPersistence;
561 }
562
563
568 public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
569 this.dlFolderPersistence = dlFolderPersistence;
570 }
571
572
577 public DLFolderFinder getDLFolderFinder() {
578 return dlFolderFinder;
579 }
580
581
586 public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
587 this.dlFolderFinder = dlFolderFinder;
588 }
589
590 public void afterPropertiesSet() {
591 }
592
593 public void destroy() {
594 }
595
596
601 @Override
602 public String getOSGiServiceIdentifier() {
603 return DLFileShortcutService.class.getName();
604 }
605
606 protected Class<?> getModelClass() {
607 return DLFileShortcut.class;
608 }
609
610 protected String getModelClassName() {
611 return DLFileShortcut.class.getName();
612 }
613
614
619 protected void runSQL(String sql) {
620 try {
621 DataSource dataSource = dlFileShortcutPersistence.getDataSource();
622
623 DB db = DBManagerUtil.getDB();
624
625 sql = db.buildSQL(sql);
626 sql = PortalUtil.transformSQL(sql);
627
628 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
629 sql);
630
631 sqlUpdate.update();
632 }
633 catch (Exception e) {
634 throw new SystemException(e);
635 }
636 }
637
638 @BeanReference(type = com.liferay.document.library.kernel.service.DLFileShortcutLocalService.class)
639 protected com.liferay.document.library.kernel.service.DLFileShortcutLocalService dlFileShortcutLocalService;
640 @BeanReference(type = DLFileShortcutService.class)
641 protected DLFileShortcutService dlFileShortcutService;
642 @BeanReference(type = DLFileShortcutPersistence.class)
643 protected DLFileShortcutPersistence dlFileShortcutPersistence;
644 @BeanReference(type = com.liferay.counter.kernel.service.CounterLocalService.class)
645 protected com.liferay.counter.kernel.service.CounterLocalService counterLocalService;
646 @BeanReference(type = com.liferay.portal.kernel.service.ResourceLocalService.class)
647 protected com.liferay.portal.kernel.service.ResourceLocalService resourceLocalService;
648 @BeanReference(type = com.liferay.portal.kernel.service.UserLocalService.class)
649 protected com.liferay.portal.kernel.service.UserLocalService userLocalService;
650 @BeanReference(type = com.liferay.portal.kernel.service.UserService.class)
651 protected com.liferay.portal.kernel.service.UserService userService;
652 @BeanReference(type = UserPersistence.class)
653 protected UserPersistence userPersistence;
654 @BeanReference(type = UserFinder.class)
655 protected UserFinder userFinder;
656 @BeanReference(type = com.liferay.asset.kernel.service.AssetEntryLocalService.class)
657 protected com.liferay.asset.kernel.service.AssetEntryLocalService assetEntryLocalService;
658 @BeanReference(type = com.liferay.asset.kernel.service.AssetEntryService.class)
659 protected com.liferay.asset.kernel.service.AssetEntryService assetEntryService;
660 @BeanReference(type = AssetEntryPersistence.class)
661 protected AssetEntryPersistence assetEntryPersistence;
662 @BeanReference(type = AssetEntryFinder.class)
663 protected AssetEntryFinder assetEntryFinder;
664 @BeanReference(type = com.liferay.asset.kernel.service.AssetTagLocalService.class)
665 protected com.liferay.asset.kernel.service.AssetTagLocalService assetTagLocalService;
666 @BeanReference(type = com.liferay.asset.kernel.service.AssetTagService.class)
667 protected com.liferay.asset.kernel.service.AssetTagService assetTagService;
668 @BeanReference(type = AssetTagPersistence.class)
669 protected AssetTagPersistence assetTagPersistence;
670 @BeanReference(type = AssetTagFinder.class)
671 protected AssetTagFinder assetTagFinder;
672 @BeanReference(type = com.liferay.document.library.kernel.service.DLAppLocalService.class)
673 protected com.liferay.document.library.kernel.service.DLAppLocalService dlAppLocalService;
674 @BeanReference(type = com.liferay.document.library.kernel.service.DLAppService.class)
675 protected com.liferay.document.library.kernel.service.DLAppService dlAppService;
676 @BeanReference(type = com.liferay.trash.kernel.service.TrashEntryLocalService.class)
677 protected com.liferay.trash.kernel.service.TrashEntryLocalService trashEntryLocalService;
678 @BeanReference(type = com.liferay.trash.kernel.service.TrashEntryService.class)
679 protected com.liferay.trash.kernel.service.TrashEntryService trashEntryService;
680 @BeanReference(type = TrashEntryPersistence.class)
681 protected TrashEntryPersistence trashEntryPersistence;
682 @BeanReference(type = com.liferay.trash.kernel.service.TrashVersionLocalService.class)
683 protected com.liferay.trash.kernel.service.TrashVersionLocalService trashVersionLocalService;
684 @BeanReference(type = TrashVersionPersistence.class)
685 protected TrashVersionPersistence trashVersionPersistence;
686 @BeanReference(type = com.liferay.document.library.kernel.service.DLFolderLocalService.class)
687 protected com.liferay.document.library.kernel.service.DLFolderLocalService dlFolderLocalService;
688 @BeanReference(type = com.liferay.document.library.kernel.service.DLFolderService.class)
689 protected com.liferay.document.library.kernel.service.DLFolderService dlFolderService;
690 @BeanReference(type = DLFolderPersistence.class)
691 protected DLFolderPersistence dlFolderPersistence;
692 @BeanReference(type = DLFolderFinder.class)
693 protected DLFolderFinder dlFolderFinder;
694 }