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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.db.DB;
022    import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
024    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
025    import com.liferay.portal.kernel.exception.SystemException;
026    import com.liferay.portal.kernel.util.InfrastructureUtil;
027    import com.liferay.portal.service.BaseLocalServiceImpl;
028    import com.liferay.portal.service.persistence.LockFinder;
029    import com.liferay.portal.service.persistence.LockPersistence;
030    import com.liferay.portal.service.persistence.RepositoryEntryPersistence;
031    import com.liferay.portal.service.persistence.RepositoryPersistence;
032    import com.liferay.portal.service.persistence.SubscriptionPersistence;
033    import com.liferay.portal.util.PortalUtil;
034    
035    import com.liferay.portlet.documentlibrary.service.DLAppLocalService;
036    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistence;
037    import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder;
038    import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
039    import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
040    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
041    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
042    
043    import javax.sql.DataSource;
044    
045    /**
046     * Provides the base implementation for the d l app local 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.DLAppLocalServiceImpl}.
050     * </p>
051     *
052     * @author Brian Wing Shun Chan
053     * @see com.liferay.portlet.documentlibrary.service.impl.DLAppLocalServiceImpl
054     * @see com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil
055     * @generated
056     */
057    @ProviderType
058    public abstract class DLAppLocalServiceBaseImpl extends BaseLocalServiceImpl
059            implements DLAppLocalService, IdentifiableBean {
060            /*
061             * NOTE FOR DEVELOPERS:
062             *
063             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil} to access the d l app local service.
064             */
065    
066            /**
067             * Returns the d l app local service.
068             *
069             * @return the d l app local service
070             */
071            public com.liferay.portlet.documentlibrary.service.DLAppLocalService getDLAppLocalService() {
072                    return dlAppLocalService;
073            }
074    
075            /**
076             * Sets the d l app local service.
077             *
078             * @param dlAppLocalService the d l app local service
079             */
080            public void setDLAppLocalService(
081                    com.liferay.portlet.documentlibrary.service.DLAppLocalService dlAppLocalService) {
082                    this.dlAppLocalService = dlAppLocalService;
083            }
084    
085            /**
086             * Returns the d l app remote service.
087             *
088             * @return the d l app remote service
089             */
090            public com.liferay.portlet.documentlibrary.service.DLAppService getDLAppService() {
091                    return dlAppService;
092            }
093    
094            /**
095             * Sets the d l app remote service.
096             *
097             * @param dlAppService the d l app remote service
098             */
099            public void setDLAppService(
100                    com.liferay.portlet.documentlibrary.service.DLAppService dlAppService) {
101                    this.dlAppService = dlAppService;
102            }
103    
104            /**
105             * Returns the counter local service.
106             *
107             * @return the counter local service
108             */
109            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
110                    return counterLocalService;
111            }
112    
113            /**
114             * Sets the counter local service.
115             *
116             * @param counterLocalService the counter local service
117             */
118            public void setCounterLocalService(
119                    com.liferay.counter.service.CounterLocalService counterLocalService) {
120                    this.counterLocalService = counterLocalService;
121            }
122    
123            /**
124             * Returns the lock local service.
125             *
126             * @return the lock local service
127             */
128            public com.liferay.portal.service.LockLocalService getLockLocalService() {
129                    return lockLocalService;
130            }
131    
132            /**
133             * Sets the lock local service.
134             *
135             * @param lockLocalService the lock local service
136             */
137            public void setLockLocalService(
138                    com.liferay.portal.service.LockLocalService lockLocalService) {
139                    this.lockLocalService = lockLocalService;
140            }
141    
142            /**
143             * Returns the lock persistence.
144             *
145             * @return the lock persistence
146             */
147            public LockPersistence getLockPersistence() {
148                    return lockPersistence;
149            }
150    
151            /**
152             * Sets the lock persistence.
153             *
154             * @param lockPersistence the lock persistence
155             */
156            public void setLockPersistence(LockPersistence lockPersistence) {
157                    this.lockPersistence = lockPersistence;
158            }
159    
160            /**
161             * Returns the lock finder.
162             *
163             * @return the lock finder
164             */
165            public LockFinder getLockFinder() {
166                    return lockFinder;
167            }
168    
169            /**
170             * Sets the lock finder.
171             *
172             * @param lockFinder the lock finder
173             */
174            public void setLockFinder(LockFinder lockFinder) {
175                    this.lockFinder = lockFinder;
176            }
177    
178            /**
179             * Returns the repository local service.
180             *
181             * @return the repository local service
182             */
183            public com.liferay.portal.service.RepositoryLocalService getRepositoryLocalService() {
184                    return repositoryLocalService;
185            }
186    
187            /**
188             * Sets the repository local service.
189             *
190             * @param repositoryLocalService the repository local service
191             */
192            public void setRepositoryLocalService(
193                    com.liferay.portal.service.RepositoryLocalService repositoryLocalService) {
194                    this.repositoryLocalService = repositoryLocalService;
195            }
196    
197            /**
198             * Returns the repository remote service.
199             *
200             * @return the repository remote service
201             */
202            public com.liferay.portal.service.RepositoryService getRepositoryService() {
203                    return repositoryService;
204            }
205    
206            /**
207             * Sets the repository remote service.
208             *
209             * @param repositoryService the repository remote service
210             */
211            public void setRepositoryService(
212                    com.liferay.portal.service.RepositoryService repositoryService) {
213                    this.repositoryService = repositoryService;
214            }
215    
216            /**
217             * Returns the repository persistence.
218             *
219             * @return the repository persistence
220             */
221            public RepositoryPersistence getRepositoryPersistence() {
222                    return repositoryPersistence;
223            }
224    
225            /**
226             * Sets the repository persistence.
227             *
228             * @param repositoryPersistence the repository persistence
229             */
230            public void setRepositoryPersistence(
231                    RepositoryPersistence repositoryPersistence) {
232                    this.repositoryPersistence = repositoryPersistence;
233            }
234    
235            /**
236             * Returns the repository entry local service.
237             *
238             * @return the repository entry local service
239             */
240            public com.liferay.portal.service.RepositoryEntryLocalService getRepositoryEntryLocalService() {
241                    return repositoryEntryLocalService;
242            }
243    
244            /**
245             * Sets the repository entry local service.
246             *
247             * @param repositoryEntryLocalService the repository entry local service
248             */
249            public void setRepositoryEntryLocalService(
250                    com.liferay.portal.service.RepositoryEntryLocalService repositoryEntryLocalService) {
251                    this.repositoryEntryLocalService = repositoryEntryLocalService;
252            }
253    
254            /**
255             * Returns the repository entry persistence.
256             *
257             * @return the repository entry persistence
258             */
259            public RepositoryEntryPersistence getRepositoryEntryPersistence() {
260                    return repositoryEntryPersistence;
261            }
262    
263            /**
264             * Sets the repository entry persistence.
265             *
266             * @param repositoryEntryPersistence the repository entry persistence
267             */
268            public void setRepositoryEntryPersistence(
269                    RepositoryEntryPersistence repositoryEntryPersistence) {
270                    this.repositoryEntryPersistence = repositoryEntryPersistence;
271            }
272    
273            /**
274             * Returns the subscription local service.
275             *
276             * @return the subscription local service
277             */
278            public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
279                    return subscriptionLocalService;
280            }
281    
282            /**
283             * Sets the subscription local service.
284             *
285             * @param subscriptionLocalService the subscription local service
286             */
287            public void setSubscriptionLocalService(
288                    com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
289                    this.subscriptionLocalService = subscriptionLocalService;
290            }
291    
292            /**
293             * Returns the subscription persistence.
294             *
295             * @return the subscription persistence
296             */
297            public SubscriptionPersistence getSubscriptionPersistence() {
298                    return subscriptionPersistence;
299            }
300    
301            /**
302             * Sets the subscription persistence.
303             *
304             * @param subscriptionPersistence the subscription persistence
305             */
306            public void setSubscriptionPersistence(
307                    SubscriptionPersistence subscriptionPersistence) {
308                    this.subscriptionPersistence = subscriptionPersistence;
309            }
310    
311            /**
312             * Returns the d l app helper local service.
313             *
314             * @return the d l app helper local service
315             */
316            public com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService getDLAppHelperLocalService() {
317                    return dlAppHelperLocalService;
318            }
319    
320            /**
321             * Sets the d l app helper local service.
322             *
323             * @param dlAppHelperLocalService the d l app helper local service
324             */
325            public void setDLAppHelperLocalService(
326                    com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService) {
327                    this.dlAppHelperLocalService = dlAppHelperLocalService;
328            }
329    
330            /**
331             * Returns the document library file entry metadata local service.
332             *
333             * @return the document library file entry metadata local service
334             */
335            public com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService getDLFileEntryMetadataLocalService() {
336                    return dlFileEntryMetadataLocalService;
337            }
338    
339            /**
340             * Sets the document library file entry metadata local service.
341             *
342             * @param dlFileEntryMetadataLocalService the document library file entry metadata local service
343             */
344            public void setDLFileEntryMetadataLocalService(
345                    com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService) {
346                    this.dlFileEntryMetadataLocalService = dlFileEntryMetadataLocalService;
347            }
348    
349            /**
350             * Returns the document library file entry metadata persistence.
351             *
352             * @return the document library file entry metadata persistence
353             */
354            public DLFileEntryMetadataPersistence getDLFileEntryMetadataPersistence() {
355                    return dlFileEntryMetadataPersistence;
356            }
357    
358            /**
359             * Sets the document library file entry metadata persistence.
360             *
361             * @param dlFileEntryMetadataPersistence the document library file entry metadata persistence
362             */
363            public void setDLFileEntryMetadataPersistence(
364                    DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence) {
365                    this.dlFileEntryMetadataPersistence = dlFileEntryMetadataPersistence;
366            }
367    
368            /**
369             * Returns the document library file rank local service.
370             *
371             * @return the document library file rank local service
372             */
373            public com.liferay.portlet.documentlibrary.service.DLFileRankLocalService getDLFileRankLocalService() {
374                    return dlFileRankLocalService;
375            }
376    
377            /**
378             * Sets the document library file rank local service.
379             *
380             * @param dlFileRankLocalService the document library file rank local service
381             */
382            public void setDLFileRankLocalService(
383                    com.liferay.portlet.documentlibrary.service.DLFileRankLocalService dlFileRankLocalService) {
384                    this.dlFileRankLocalService = dlFileRankLocalService;
385            }
386    
387            /**
388             * Returns the document library file rank persistence.
389             *
390             * @return the document library file rank persistence
391             */
392            public DLFileRankPersistence getDLFileRankPersistence() {
393                    return dlFileRankPersistence;
394            }
395    
396            /**
397             * Sets the document library file rank persistence.
398             *
399             * @param dlFileRankPersistence the document library file rank persistence
400             */
401            public void setDLFileRankPersistence(
402                    DLFileRankPersistence dlFileRankPersistence) {
403                    this.dlFileRankPersistence = dlFileRankPersistence;
404            }
405    
406            /**
407             * Returns the document library file rank finder.
408             *
409             * @return the document library file rank finder
410             */
411            public DLFileRankFinder getDLFileRankFinder() {
412                    return dlFileRankFinder;
413            }
414    
415            /**
416             * Sets the document library file rank finder.
417             *
418             * @param dlFileRankFinder the document library file rank finder
419             */
420            public void setDLFileRankFinder(DLFileRankFinder dlFileRankFinder) {
421                    this.dlFileRankFinder = dlFileRankFinder;
422            }
423    
424            /**
425             * Returns the document library file shortcut local service.
426             *
427             * @return the document library file shortcut local service
428             */
429            public com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService getDLFileShortcutLocalService() {
430                    return dlFileShortcutLocalService;
431            }
432    
433            /**
434             * Sets the document library file shortcut local service.
435             *
436             * @param dlFileShortcutLocalService the document library file shortcut local service
437             */
438            public void setDLFileShortcutLocalService(
439                    com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService dlFileShortcutLocalService) {
440                    this.dlFileShortcutLocalService = dlFileShortcutLocalService;
441            }
442    
443            /**
444             * Returns the document library file shortcut remote service.
445             *
446             * @return the document library file shortcut remote service
447             */
448            public com.liferay.portlet.documentlibrary.service.DLFileShortcutService getDLFileShortcutService() {
449                    return dlFileShortcutService;
450            }
451    
452            /**
453             * Sets the document library file shortcut remote service.
454             *
455             * @param dlFileShortcutService the document library file shortcut remote service
456             */
457            public void setDLFileShortcutService(
458                    com.liferay.portlet.documentlibrary.service.DLFileShortcutService dlFileShortcutService) {
459                    this.dlFileShortcutService = dlFileShortcutService;
460            }
461    
462            /**
463             * Returns the document library file shortcut persistence.
464             *
465             * @return the document library file shortcut persistence
466             */
467            public DLFileShortcutPersistence getDLFileShortcutPersistence() {
468                    return dlFileShortcutPersistence;
469            }
470    
471            /**
472             * Sets the document library file shortcut persistence.
473             *
474             * @param dlFileShortcutPersistence the document library file shortcut persistence
475             */
476            public void setDLFileShortcutPersistence(
477                    DLFileShortcutPersistence dlFileShortcutPersistence) {
478                    this.dlFileShortcutPersistence = dlFileShortcutPersistence;
479            }
480    
481            /**
482             * Returns the document library folder local service.
483             *
484             * @return the document library folder local service
485             */
486            public com.liferay.portlet.documentlibrary.service.DLFolderLocalService getDLFolderLocalService() {
487                    return dlFolderLocalService;
488            }
489    
490            /**
491             * Sets the document library folder local service.
492             *
493             * @param dlFolderLocalService the document library folder local service
494             */
495            public void setDLFolderLocalService(
496                    com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService) {
497                    this.dlFolderLocalService = dlFolderLocalService;
498            }
499    
500            /**
501             * Returns the document library folder remote service.
502             *
503             * @return the document library folder remote service
504             */
505            public com.liferay.portlet.documentlibrary.service.DLFolderService getDLFolderService() {
506                    return dlFolderService;
507            }
508    
509            /**
510             * Sets the document library folder remote service.
511             *
512             * @param dlFolderService the document library folder remote service
513             */
514            public void setDLFolderService(
515                    com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService) {
516                    this.dlFolderService = dlFolderService;
517            }
518    
519            /**
520             * Returns the document library folder persistence.
521             *
522             * @return the document library folder persistence
523             */
524            public DLFolderPersistence getDLFolderPersistence() {
525                    return dlFolderPersistence;
526            }
527    
528            /**
529             * Sets the document library folder persistence.
530             *
531             * @param dlFolderPersistence the document library folder persistence
532             */
533            public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
534                    this.dlFolderPersistence = dlFolderPersistence;
535            }
536    
537            /**
538             * Returns the document library folder finder.
539             *
540             * @return the document library folder finder
541             */
542            public DLFolderFinder getDLFolderFinder() {
543                    return dlFolderFinder;
544            }
545    
546            /**
547             * Sets the document library folder finder.
548             *
549             * @param dlFolderFinder the document library folder finder
550             */
551            public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
552                    this.dlFolderFinder = dlFolderFinder;
553            }
554    
555            public void afterPropertiesSet() {
556            }
557    
558            public void destroy() {
559            }
560    
561            /**
562             * Returns the Spring bean ID for this bean.
563             *
564             * @return the Spring bean ID for this bean
565             */
566            @Override
567            public String getBeanIdentifier() {
568                    return _beanIdentifier;
569            }
570    
571            /**
572             * Sets the Spring bean ID for this bean.
573             *
574             * @param beanIdentifier the Spring bean ID for this bean
575             */
576            @Override
577            public void setBeanIdentifier(String beanIdentifier) {
578                    _beanIdentifier = beanIdentifier;
579            }
580    
581            /**
582             * Performs a SQL query.
583             *
584             * @param sql the sql query
585             */
586            protected void runSQL(String sql) {
587                    try {
588                            DataSource dataSource = InfrastructureUtil.getDataSource();
589    
590                            DB db = DBFactoryUtil.getDB();
591    
592                            sql = db.buildSQL(sql);
593                            sql = PortalUtil.transformSQL(sql);
594    
595                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
596                                            sql, new int[0]);
597    
598                            sqlUpdate.update();
599                    }
600                    catch (Exception e) {
601                            throw new SystemException(e);
602                    }
603            }
604    
605            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppLocalService.class)
606            protected com.liferay.portlet.documentlibrary.service.DLAppLocalService dlAppLocalService;
607            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppService.class)
608            protected com.liferay.portlet.documentlibrary.service.DLAppService dlAppService;
609            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
610            protected com.liferay.counter.service.CounterLocalService counterLocalService;
611            @BeanReference(type = com.liferay.portal.service.LockLocalService.class)
612            protected com.liferay.portal.service.LockLocalService lockLocalService;
613            @BeanReference(type = LockPersistence.class)
614            protected LockPersistence lockPersistence;
615            @BeanReference(type = LockFinder.class)
616            protected LockFinder lockFinder;
617            @BeanReference(type = com.liferay.portal.service.RepositoryLocalService.class)
618            protected com.liferay.portal.service.RepositoryLocalService repositoryLocalService;
619            @BeanReference(type = com.liferay.portal.service.RepositoryService.class)
620            protected com.liferay.portal.service.RepositoryService repositoryService;
621            @BeanReference(type = RepositoryPersistence.class)
622            protected RepositoryPersistence repositoryPersistence;
623            @BeanReference(type = com.liferay.portal.service.RepositoryEntryLocalService.class)
624            protected com.liferay.portal.service.RepositoryEntryLocalService repositoryEntryLocalService;
625            @BeanReference(type = RepositoryEntryPersistence.class)
626            protected RepositoryEntryPersistence repositoryEntryPersistence;
627            @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
628            protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
629            @BeanReference(type = SubscriptionPersistence.class)
630            protected SubscriptionPersistence subscriptionPersistence;
631            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService.class)
632            protected com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService;
633            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService.class)
634            protected com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService;
635            @BeanReference(type = DLFileEntryMetadataPersistence.class)
636            protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence;
637            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileRankLocalService.class)
638            protected com.liferay.portlet.documentlibrary.service.DLFileRankLocalService dlFileRankLocalService;
639            @BeanReference(type = DLFileRankPersistence.class)
640            protected DLFileRankPersistence dlFileRankPersistence;
641            @BeanReference(type = DLFileRankFinder.class)
642            protected DLFileRankFinder dlFileRankFinder;
643            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService.class)
644            protected com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService dlFileShortcutLocalService;
645            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileShortcutService.class)
646            protected com.liferay.portlet.documentlibrary.service.DLFileShortcutService dlFileShortcutService;
647            @BeanReference(type = DLFileShortcutPersistence.class)
648            protected DLFileShortcutPersistence dlFileShortcutPersistence;
649            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFolderLocalService.class)
650            protected com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService;
651            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFolderService.class)
652            protected com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService;
653            @BeanReference(type = DLFolderPersistence.class)
654            protected DLFolderPersistence dlFolderPersistence;
655            @BeanReference(type = DLFolderFinder.class)
656            protected DLFolderFinder dlFolderFinder;
657            private String _beanIdentifier;
658    }