001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
046     * Provides the base implementation for the document library file shortcut remote service.
047     *
048     * <p>
049     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portlet.documentlibrary.service.impl.DLFileShortcutServiceImpl}.
050     * </p>
051     *
052     * @author Brian Wing Shun Chan
053     * @see com.liferay.portlet.documentlibrary.service.impl.DLFileShortcutServiceImpl
054     * @see com.liferay.document.library.kernel.service.DLFileShortcutServiceUtil
055     * @generated
056     */
057    public abstract class DLFileShortcutServiceBaseImpl extends BaseServiceImpl
058            implements DLFileShortcutService, IdentifiableOSGiService {
059            /*
060             * NOTE FOR DEVELOPERS:
061             *
062             * Never modify or reference this class directly. Always use {@link com.liferay.document.library.kernel.service.DLFileShortcutServiceUtil} to access the document library file shortcut remote service.
063             */
064    
065            /**
066             * Returns the document library file shortcut local service.
067             *
068             * @return the document library file shortcut local service
069             */
070            public com.liferay.document.library.kernel.service.DLFileShortcutLocalService getDLFileShortcutLocalService() {
071                    return dlFileShortcutLocalService;
072            }
073    
074            /**
075             * Sets the document library file shortcut local service.
076             *
077             * @param dlFileShortcutLocalService the document library file shortcut local service
078             */
079            public void setDLFileShortcutLocalService(
080                    com.liferay.document.library.kernel.service.DLFileShortcutLocalService dlFileShortcutLocalService) {
081                    this.dlFileShortcutLocalService = dlFileShortcutLocalService;
082            }
083    
084            /**
085             * Returns the document library file shortcut remote service.
086             *
087             * @return the document library file shortcut remote service
088             */
089            public DLFileShortcutService getDLFileShortcutService() {
090                    return dlFileShortcutService;
091            }
092    
093            /**
094             * Sets the document library file shortcut remote service.
095             *
096             * @param dlFileShortcutService the document library file shortcut remote service
097             */
098            public void setDLFileShortcutService(
099                    DLFileShortcutService dlFileShortcutService) {
100                    this.dlFileShortcutService = dlFileShortcutService;
101            }
102    
103            /**
104             * Returns the document library file shortcut persistence.
105             *
106             * @return the document library file shortcut persistence
107             */
108            public DLFileShortcutPersistence getDLFileShortcutPersistence() {
109                    return dlFileShortcutPersistence;
110            }
111    
112            /**
113             * Sets the document library file shortcut persistence.
114             *
115             * @param dlFileShortcutPersistence the document library file shortcut persistence
116             */
117            public void setDLFileShortcutPersistence(
118                    DLFileShortcutPersistence dlFileShortcutPersistence) {
119                    this.dlFileShortcutPersistence = dlFileShortcutPersistence;
120            }
121    
122            /**
123             * Returns the counter local service.
124             *
125             * @return the counter local service
126             */
127            public com.liferay.counter.kernel.service.CounterLocalService getCounterLocalService() {
128                    return counterLocalService;
129            }
130    
131            /**
132             * Sets the counter local service.
133             *
134             * @param counterLocalService the counter local service
135             */
136            public void setCounterLocalService(
137                    com.liferay.counter.kernel.service.CounterLocalService counterLocalService) {
138                    this.counterLocalService = counterLocalService;
139            }
140    
141            /**
142             * Returns the resource local service.
143             *
144             * @return the resource local service
145             */
146            public com.liferay.portal.kernel.service.ResourceLocalService getResourceLocalService() {
147                    return resourceLocalService;
148            }
149    
150            /**
151             * Sets the resource local service.
152             *
153             * @param resourceLocalService the resource local service
154             */
155            public void setResourceLocalService(
156                    com.liferay.portal.kernel.service.ResourceLocalService resourceLocalService) {
157                    this.resourceLocalService = resourceLocalService;
158            }
159    
160            /**
161             * Returns the user local service.
162             *
163             * @return the user local service
164             */
165            public com.liferay.portal.kernel.service.UserLocalService getUserLocalService() {
166                    return userLocalService;
167            }
168    
169            /**
170             * Sets the user local service.
171             *
172             * @param userLocalService the user local service
173             */
174            public void setUserLocalService(
175                    com.liferay.portal.kernel.service.UserLocalService userLocalService) {
176                    this.userLocalService = userLocalService;
177            }
178    
179            /**
180             * Returns the user remote service.
181             *
182             * @return the user remote service
183             */
184            public com.liferay.portal.kernel.service.UserService getUserService() {
185                    return userService;
186            }
187    
188            /**
189             * Sets the user remote service.
190             *
191             * @param userService the user remote service
192             */
193            public void setUserService(
194                    com.liferay.portal.kernel.service.UserService userService) {
195                    this.userService = userService;
196            }
197    
198            /**
199             * Returns the user persistence.
200             *
201             * @return the user persistence
202             */
203            public UserPersistence getUserPersistence() {
204                    return userPersistence;
205            }
206    
207            /**
208             * Sets the user persistence.
209             *
210             * @param userPersistence the user persistence
211             */
212            public void setUserPersistence(UserPersistence userPersistence) {
213                    this.userPersistence = userPersistence;
214            }
215    
216            /**
217             * Returns the user finder.
218             *
219             * @return the user finder
220             */
221            public UserFinder getUserFinder() {
222                    return userFinder;
223            }
224    
225            /**
226             * Sets the user finder.
227             *
228             * @param userFinder the user finder
229             */
230            public void setUserFinder(UserFinder userFinder) {
231                    this.userFinder = userFinder;
232            }
233    
234            /**
235             * Returns the asset entry local service.
236             *
237             * @return the asset entry local service
238             */
239            public com.liferay.asset.kernel.service.AssetEntryLocalService getAssetEntryLocalService() {
240                    return assetEntryLocalService;
241            }
242    
243            /**
244             * Sets the asset entry local service.
245             *
246             * @param assetEntryLocalService the asset entry local service
247             */
248            public void setAssetEntryLocalService(
249                    com.liferay.asset.kernel.service.AssetEntryLocalService assetEntryLocalService) {
250                    this.assetEntryLocalService = assetEntryLocalService;
251            }
252    
253            /**
254             * Returns the asset entry remote service.
255             *
256             * @return the asset entry remote service
257             */
258            public com.liferay.asset.kernel.service.AssetEntryService getAssetEntryService() {
259                    return assetEntryService;
260            }
261    
262            /**
263             * Sets the asset entry remote service.
264             *
265             * @param assetEntryService the asset entry remote service
266             */
267            public void setAssetEntryService(
268                    com.liferay.asset.kernel.service.AssetEntryService assetEntryService) {
269                    this.assetEntryService = assetEntryService;
270            }
271    
272            /**
273             * Returns the asset entry persistence.
274             *
275             * @return the asset entry persistence
276             */
277            public AssetEntryPersistence getAssetEntryPersistence() {
278                    return assetEntryPersistence;
279            }
280    
281            /**
282             * Sets the asset entry persistence.
283             *
284             * @param assetEntryPersistence the asset entry persistence
285             */
286            public void setAssetEntryPersistence(
287                    AssetEntryPersistence assetEntryPersistence) {
288                    this.assetEntryPersistence = assetEntryPersistence;
289            }
290    
291            /**
292             * Returns the asset entry finder.
293             *
294             * @return the asset entry finder
295             */
296            public AssetEntryFinder getAssetEntryFinder() {
297                    return assetEntryFinder;
298            }
299    
300            /**
301             * Sets the asset entry finder.
302             *
303             * @param assetEntryFinder the asset entry finder
304             */
305            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
306                    this.assetEntryFinder = assetEntryFinder;
307            }
308    
309            /**
310             * Returns the asset tag local service.
311             *
312             * @return the asset tag local service
313             */
314            public com.liferay.asset.kernel.service.AssetTagLocalService getAssetTagLocalService() {
315                    return assetTagLocalService;
316            }
317    
318            /**
319             * Sets the asset tag local service.
320             *
321             * @param assetTagLocalService the asset tag local service
322             */
323            public void setAssetTagLocalService(
324                    com.liferay.asset.kernel.service.AssetTagLocalService assetTagLocalService) {
325                    this.assetTagLocalService = assetTagLocalService;
326            }
327    
328            /**
329             * Returns the asset tag remote service.
330             *
331             * @return the asset tag remote service
332             */
333            public com.liferay.asset.kernel.service.AssetTagService getAssetTagService() {
334                    return assetTagService;
335            }
336    
337            /**
338             * Sets the asset tag remote service.
339             *
340             * @param assetTagService the asset tag remote service
341             */
342            public void setAssetTagService(
343                    com.liferay.asset.kernel.service.AssetTagService assetTagService) {
344                    this.assetTagService = assetTagService;
345            }
346    
347            /**
348             * Returns the asset tag persistence.
349             *
350             * @return the asset tag persistence
351             */
352            public AssetTagPersistence getAssetTagPersistence() {
353                    return assetTagPersistence;
354            }
355    
356            /**
357             * Sets the asset tag persistence.
358             *
359             * @param assetTagPersistence the asset tag persistence
360             */
361            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
362                    this.assetTagPersistence = assetTagPersistence;
363            }
364    
365            /**
366             * Returns the asset tag finder.
367             *
368             * @return the asset tag finder
369             */
370            public AssetTagFinder getAssetTagFinder() {
371                    return assetTagFinder;
372            }
373    
374            /**
375             * Sets the asset tag finder.
376             *
377             * @param assetTagFinder the asset tag finder
378             */
379            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
380                    this.assetTagFinder = assetTagFinder;
381            }
382    
383            /**
384             * Returns the d l app local service.
385             *
386             * @return the d l app local service
387             */
388            public com.liferay.document.library.kernel.service.DLAppLocalService getDLAppLocalService() {
389                    return dlAppLocalService;
390            }
391    
392            /**
393             * Sets the d l app local service.
394             *
395             * @param dlAppLocalService the d l app local service
396             */
397            public void setDLAppLocalService(
398                    com.liferay.document.library.kernel.service.DLAppLocalService dlAppLocalService) {
399                    this.dlAppLocalService = dlAppLocalService;
400            }
401    
402            /**
403             * Returns the d l app remote service.
404             *
405             * @return the d l app remote service
406             */
407            public com.liferay.document.library.kernel.service.DLAppService getDLAppService() {
408                    return dlAppService;
409            }
410    
411            /**
412             * Sets the d l app remote service.
413             *
414             * @param dlAppService the d l app remote service
415             */
416            public void setDLAppService(
417                    com.liferay.document.library.kernel.service.DLAppService dlAppService) {
418                    this.dlAppService = dlAppService;
419            }
420    
421            /**
422             * Returns the trash entry local service.
423             *
424             * @return the trash entry local service
425             */
426            public com.liferay.trash.kernel.service.TrashEntryLocalService getTrashEntryLocalService() {
427                    return trashEntryLocalService;
428            }
429    
430            /**
431             * Sets the trash entry local service.
432             *
433             * @param trashEntryLocalService the trash entry local service
434             */
435            public void setTrashEntryLocalService(
436                    com.liferay.trash.kernel.service.TrashEntryLocalService trashEntryLocalService) {
437                    this.trashEntryLocalService = trashEntryLocalService;
438            }
439    
440            /**
441             * Returns the trash entry remote service.
442             *
443             * @return the trash entry remote service
444             */
445            public com.liferay.trash.kernel.service.TrashEntryService getTrashEntryService() {
446                    return trashEntryService;
447            }
448    
449            /**
450             * Sets the trash entry remote service.
451             *
452             * @param trashEntryService the trash entry remote service
453             */
454            public void setTrashEntryService(
455                    com.liferay.trash.kernel.service.TrashEntryService trashEntryService) {
456                    this.trashEntryService = trashEntryService;
457            }
458    
459            /**
460             * Returns the trash entry persistence.
461             *
462             * @return the trash entry persistence
463             */
464            public TrashEntryPersistence getTrashEntryPersistence() {
465                    return trashEntryPersistence;
466            }
467    
468            /**
469             * Sets the trash entry persistence.
470             *
471             * @param trashEntryPersistence the trash entry persistence
472             */
473            public void setTrashEntryPersistence(
474                    TrashEntryPersistence trashEntryPersistence) {
475                    this.trashEntryPersistence = trashEntryPersistence;
476            }
477    
478            /**
479             * Returns the trash version local service.
480             *
481             * @return the trash version local service
482             */
483            public com.liferay.trash.kernel.service.TrashVersionLocalService getTrashVersionLocalService() {
484                    return trashVersionLocalService;
485            }
486    
487            /**
488             * Sets the trash version local service.
489             *
490             * @param trashVersionLocalService the trash version local service
491             */
492            public void setTrashVersionLocalService(
493                    com.liferay.trash.kernel.service.TrashVersionLocalService trashVersionLocalService) {
494                    this.trashVersionLocalService = trashVersionLocalService;
495            }
496    
497            /**
498             * Returns the trash version persistence.
499             *
500             * @return the trash version persistence
501             */
502            public TrashVersionPersistence getTrashVersionPersistence() {
503                    return trashVersionPersistence;
504            }
505    
506            /**
507             * Sets the trash version persistence.
508             *
509             * @param trashVersionPersistence the trash version persistence
510             */
511            public void setTrashVersionPersistence(
512                    TrashVersionPersistence trashVersionPersistence) {
513                    this.trashVersionPersistence = trashVersionPersistence;
514            }
515    
516            /**
517             * Returns the document library folder local service.
518             *
519             * @return the document library folder local service
520             */
521            public com.liferay.document.library.kernel.service.DLFolderLocalService getDLFolderLocalService() {
522                    return dlFolderLocalService;
523            }
524    
525            /**
526             * Sets the document library folder local service.
527             *
528             * @param dlFolderLocalService the document library folder local service
529             */
530            public void setDLFolderLocalService(
531                    com.liferay.document.library.kernel.service.DLFolderLocalService dlFolderLocalService) {
532                    this.dlFolderLocalService = dlFolderLocalService;
533            }
534    
535            /**
536             * Returns the document library folder remote service.
537             *
538             * @return the document library folder remote service
539             */
540            public com.liferay.document.library.kernel.service.DLFolderService getDLFolderService() {
541                    return dlFolderService;
542            }
543    
544            /**
545             * Sets the document library folder remote service.
546             *
547             * @param dlFolderService the document library folder remote service
548             */
549            public void setDLFolderService(
550                    com.liferay.document.library.kernel.service.DLFolderService dlFolderService) {
551                    this.dlFolderService = dlFolderService;
552            }
553    
554            /**
555             * Returns the document library folder persistence.
556             *
557             * @return the document library folder persistence
558             */
559            public DLFolderPersistence getDLFolderPersistence() {
560                    return dlFolderPersistence;
561            }
562    
563            /**
564             * Sets the document library folder persistence.
565             *
566             * @param dlFolderPersistence the document library folder persistence
567             */
568            public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
569                    this.dlFolderPersistence = dlFolderPersistence;
570            }
571    
572            /**
573             * Returns the document library folder finder.
574             *
575             * @return the document library folder finder
576             */
577            public DLFolderFinder getDLFolderFinder() {
578                    return dlFolderFinder;
579            }
580    
581            /**
582             * Sets the document library folder finder.
583             *
584             * @param dlFolderFinder the document library folder finder
585             */
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            /**
597             * Returns the OSGi service identifier.
598             *
599             * @return the OSGi service identifier
600             */
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            /**
615             * Performs a SQL query.
616             *
617             * @param sql the sql query
618             */
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, new int[0]);
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 = com.liferay.document.library.kernel.service.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    }