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