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