001
014
015 package com.liferay.portlet.documentlibrary.service.base;
016
017 import com.liferay.portal.kernel.bean.BeanReference;
018 import com.liferay.portal.kernel.dao.db.DB;
019 import com.liferay.portal.kernel.dao.db.DBManagerUtil;
020 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022 import com.liferay.portal.kernel.exception.SystemException;
023 import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
024 import com.liferay.portal.service.BaseServiceImpl;
025 import com.liferay.portal.service.persistence.UserFinder;
026 import com.liferay.portal.service.persistence.UserPersistence;
027 import com.liferay.portal.util.PortalUtil;
028
029 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
030 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
031 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
032 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
033 import com.liferay.portlet.documentlibrary.model.DLFileShortcut;
034 import com.liferay.portlet.documentlibrary.service.DLFileShortcutService;
035 import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
036 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
037 import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
038 import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
039 import com.liferay.portlet.trash.service.persistence.TrashVersionPersistence;
040
041 import javax.sql.DataSource;
042
043
055 public abstract class DLFileShortcutServiceBaseImpl extends BaseServiceImpl
056 implements DLFileShortcutService, IdentifiableOSGiService {
057
062
063
068 public com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService getDLFileShortcutLocalService() {
069 return dlFileShortcutLocalService;
070 }
071
072
077 public void setDLFileShortcutLocalService(
078 com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService dlFileShortcutLocalService) {
079 this.dlFileShortcutLocalService = dlFileShortcutLocalService;
080 }
081
082
087 public DLFileShortcutService getDLFileShortcutService() {
088 return dlFileShortcutService;
089 }
090
091
096 public void setDLFileShortcutService(
097 DLFileShortcutService dlFileShortcutService) {
098 this.dlFileShortcutService = dlFileShortcutService;
099 }
100
101
106 public DLFileShortcutPersistence getDLFileShortcutPersistence() {
107 return dlFileShortcutPersistence;
108 }
109
110
115 public void setDLFileShortcutPersistence(
116 DLFileShortcutPersistence dlFileShortcutPersistence) {
117 this.dlFileShortcutPersistence = dlFileShortcutPersistence;
118 }
119
120
125 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
126 return counterLocalService;
127 }
128
129
134 public void setCounterLocalService(
135 com.liferay.counter.service.CounterLocalService counterLocalService) {
136 this.counterLocalService = counterLocalService;
137 }
138
139
144 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
145 return resourceLocalService;
146 }
147
148
153 public void setResourceLocalService(
154 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
155 this.resourceLocalService = resourceLocalService;
156 }
157
158
163 public com.liferay.portal.service.UserLocalService getUserLocalService() {
164 return userLocalService;
165 }
166
167
172 public void setUserLocalService(
173 com.liferay.portal.service.UserLocalService userLocalService) {
174 this.userLocalService = userLocalService;
175 }
176
177
182 public com.liferay.portal.service.UserService getUserService() {
183 return userService;
184 }
185
186
191 public void setUserService(
192 com.liferay.portal.service.UserService userService) {
193 this.userService = userService;
194 }
195
196
201 public UserPersistence getUserPersistence() {
202 return userPersistence;
203 }
204
205
210 public void setUserPersistence(UserPersistence userPersistence) {
211 this.userPersistence = userPersistence;
212 }
213
214
219 public UserFinder getUserFinder() {
220 return userFinder;
221 }
222
223
228 public void setUserFinder(UserFinder userFinder) {
229 this.userFinder = userFinder;
230 }
231
232
237 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
238 return assetEntryLocalService;
239 }
240
241
246 public void setAssetEntryLocalService(
247 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
248 this.assetEntryLocalService = assetEntryLocalService;
249 }
250
251
256 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
257 return assetEntryService;
258 }
259
260
265 public void setAssetEntryService(
266 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
267 this.assetEntryService = assetEntryService;
268 }
269
270
275 public AssetEntryPersistence getAssetEntryPersistence() {
276 return assetEntryPersistence;
277 }
278
279
284 public void setAssetEntryPersistence(
285 AssetEntryPersistence assetEntryPersistence) {
286 this.assetEntryPersistence = assetEntryPersistence;
287 }
288
289
294 public AssetEntryFinder getAssetEntryFinder() {
295 return assetEntryFinder;
296 }
297
298
303 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
304 this.assetEntryFinder = assetEntryFinder;
305 }
306
307
312 public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
313 return assetTagLocalService;
314 }
315
316
321 public void setAssetTagLocalService(
322 com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
323 this.assetTagLocalService = assetTagLocalService;
324 }
325
326
331 public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
332 return assetTagService;
333 }
334
335
340 public void setAssetTagService(
341 com.liferay.portlet.asset.service.AssetTagService assetTagService) {
342 this.assetTagService = assetTagService;
343 }
344
345
350 public AssetTagPersistence getAssetTagPersistence() {
351 return assetTagPersistence;
352 }
353
354
359 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
360 this.assetTagPersistence = assetTagPersistence;
361 }
362
363
368 public AssetTagFinder getAssetTagFinder() {
369 return assetTagFinder;
370 }
371
372
377 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
378 this.assetTagFinder = assetTagFinder;
379 }
380
381
386 public com.liferay.portlet.documentlibrary.service.DLAppLocalService getDLAppLocalService() {
387 return dlAppLocalService;
388 }
389
390
395 public void setDLAppLocalService(
396 com.liferay.portlet.documentlibrary.service.DLAppLocalService dlAppLocalService) {
397 this.dlAppLocalService = dlAppLocalService;
398 }
399
400
405 public com.liferay.portlet.documentlibrary.service.DLAppService getDLAppService() {
406 return dlAppService;
407 }
408
409
414 public void setDLAppService(
415 com.liferay.portlet.documentlibrary.service.DLAppService dlAppService) {
416 this.dlAppService = dlAppService;
417 }
418
419
424 public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
425 return trashEntryLocalService;
426 }
427
428
433 public void setTrashEntryLocalService(
434 com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
435 this.trashEntryLocalService = trashEntryLocalService;
436 }
437
438
443 public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
444 return trashEntryService;
445 }
446
447
452 public void setTrashEntryService(
453 com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
454 this.trashEntryService = trashEntryService;
455 }
456
457
462 public TrashEntryPersistence getTrashEntryPersistence() {
463 return trashEntryPersistence;
464 }
465
466
471 public void setTrashEntryPersistence(
472 TrashEntryPersistence trashEntryPersistence) {
473 this.trashEntryPersistence = trashEntryPersistence;
474 }
475
476
481 public com.liferay.portlet.trash.service.TrashVersionLocalService getTrashVersionLocalService() {
482 return trashVersionLocalService;
483 }
484
485
490 public void setTrashVersionLocalService(
491 com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService) {
492 this.trashVersionLocalService = trashVersionLocalService;
493 }
494
495
500 public TrashVersionPersistence getTrashVersionPersistence() {
501 return trashVersionPersistence;
502 }
503
504
509 public void setTrashVersionPersistence(
510 TrashVersionPersistence trashVersionPersistence) {
511 this.trashVersionPersistence = trashVersionPersistence;
512 }
513
514
519 public com.liferay.portlet.documentlibrary.service.DLFolderLocalService getDLFolderLocalService() {
520 return dlFolderLocalService;
521 }
522
523
528 public void setDLFolderLocalService(
529 com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService) {
530 this.dlFolderLocalService = dlFolderLocalService;
531 }
532
533
538 public com.liferay.portlet.documentlibrary.service.DLFolderService getDLFolderService() {
539 return dlFolderService;
540 }
541
542
547 public void setDLFolderService(
548 com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService) {
549 this.dlFolderService = dlFolderService;
550 }
551
552
557 public DLFolderPersistence getDLFolderPersistence() {
558 return dlFolderPersistence;
559 }
560
561
566 public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
567 this.dlFolderPersistence = dlFolderPersistence;
568 }
569
570
575 public DLFolderFinder getDLFolderFinder() {
576 return dlFolderFinder;
577 }
578
579
584 public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
585 this.dlFolderFinder = dlFolderFinder;
586 }
587
588 public void afterPropertiesSet() {
589 }
590
591 public void destroy() {
592 }
593
594
599 @Override
600 public String getOSGiServiceIdentifier() {
601 return DLFileShortcutService.class.getName();
602 }
603
604 protected Class<?> getModelClass() {
605 return DLFileShortcut.class;
606 }
607
608 protected String getModelClassName() {
609 return DLFileShortcut.class.getName();
610 }
611
612
617 protected void runSQL(String sql) {
618 try {
619 DataSource dataSource = dlFileShortcutPersistence.getDataSource();
620
621 DB db = DBManagerUtil.getDB();
622
623 sql = db.buildSQL(sql);
624 sql = PortalUtil.transformSQL(sql);
625
626 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
627 sql, new int[0]);
628
629 sqlUpdate.update();
630 }
631 catch (Exception e) {
632 throw new SystemException(e);
633 }
634 }
635
636 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService.class)
637 protected com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService dlFileShortcutLocalService;
638 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileShortcutService.class)
639 protected DLFileShortcutService dlFileShortcutService;
640 @BeanReference(type = DLFileShortcutPersistence.class)
641 protected DLFileShortcutPersistence dlFileShortcutPersistence;
642 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
643 protected com.liferay.counter.service.CounterLocalService counterLocalService;
644 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
645 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
646 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
647 protected com.liferay.portal.service.UserLocalService userLocalService;
648 @BeanReference(type = com.liferay.portal.service.UserService.class)
649 protected com.liferay.portal.service.UserService userService;
650 @BeanReference(type = UserPersistence.class)
651 protected UserPersistence userPersistence;
652 @BeanReference(type = UserFinder.class)
653 protected UserFinder userFinder;
654 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
655 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
656 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
657 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
658 @BeanReference(type = AssetEntryPersistence.class)
659 protected AssetEntryPersistence assetEntryPersistence;
660 @BeanReference(type = AssetEntryFinder.class)
661 protected AssetEntryFinder assetEntryFinder;
662 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
663 protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
664 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
665 protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
666 @BeanReference(type = AssetTagPersistence.class)
667 protected AssetTagPersistence assetTagPersistence;
668 @BeanReference(type = AssetTagFinder.class)
669 protected AssetTagFinder assetTagFinder;
670 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppLocalService.class)
671 protected com.liferay.portlet.documentlibrary.service.DLAppLocalService dlAppLocalService;
672 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppService.class)
673 protected com.liferay.portlet.documentlibrary.service.DLAppService dlAppService;
674 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
675 protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
676 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
677 protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
678 @BeanReference(type = TrashEntryPersistence.class)
679 protected TrashEntryPersistence trashEntryPersistence;
680 @BeanReference(type = com.liferay.portlet.trash.service.TrashVersionLocalService.class)
681 protected com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService;
682 @BeanReference(type = TrashVersionPersistence.class)
683 protected TrashVersionPersistence trashVersionPersistence;
684 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFolderLocalService.class)
685 protected com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService;
686 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFolderService.class)
687 protected com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService;
688 @BeanReference(type = DLFolderPersistence.class)
689 protected DLFolderPersistence dlFolderPersistence;
690 @BeanReference(type = DLFolderFinder.class)
691 protected DLFolderFinder dlFolderFinder;
692 }