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