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