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