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