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.document.library.kernel.service.DLAppLocalService;
020    import com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataFinder;
021    import com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence;
022    import com.liferay.document.library.kernel.service.persistence.DLFileRankFinder;
023    import com.liferay.document.library.kernel.service.persistence.DLFileRankPersistence;
024    import com.liferay.document.library.kernel.service.persistence.DLFolderFinder;
025    import com.liferay.document.library.kernel.service.persistence.DLFolderPersistence;
026    
027    import com.liferay.portal.kernel.bean.BeanReference;
028    import com.liferay.portal.kernel.dao.db.DB;
029    import com.liferay.portal.kernel.dao.db.DBManagerUtil;
030    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
031    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
032    import com.liferay.portal.kernel.exception.SystemException;
033    import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
034    import com.liferay.portal.kernel.service.BaseLocalServiceImpl;
035    import com.liferay.portal.kernel.service.persistence.RepositoryEntryPersistence;
036    import com.liferay.portal.kernel.service.persistence.RepositoryPersistence;
037    import com.liferay.portal.kernel.service.persistence.SubscriptionPersistence;
038    import com.liferay.portal.kernel.util.InfrastructureUtil;
039    import com.liferay.portal.kernel.util.PortalUtil;
040    
041    import com.liferay.trash.kernel.service.persistence.TrashEntryPersistence;
042    
043    import javax.sql.DataSource;
044    
045    /**
046     * Provides the base implementation for the d l app local service.
047     *
048     * <p>
049     * 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}.
050     * </p>
051     *
052     * @author Brian Wing Shun Chan
053     * @see com.liferay.portlet.documentlibrary.service.impl.DLAppLocalServiceImpl
054     * @see com.liferay.document.library.kernel.service.DLAppLocalServiceUtil
055     * @generated
056     */
057    @ProviderType
058    public abstract class DLAppLocalServiceBaseImpl extends BaseLocalServiceImpl
059            implements DLAppLocalService, IdentifiableOSGiService {
060            /*
061             * NOTE FOR DEVELOPERS:
062             *
063             * Never modify or reference this class directly. Always use {@link com.liferay.document.library.kernel.service.DLAppLocalServiceUtil} to access the d l app local service.
064             */
065    
066            /**
067             * Returns the d l app local service.
068             *
069             * @return the d l app local service
070             */
071            public DLAppLocalService getDLAppLocalService() {
072                    return dlAppLocalService;
073            }
074    
075            /**
076             * Sets the d l app local service.
077             *
078             * @param dlAppLocalService the d l app local service
079             */
080            public void setDLAppLocalService(DLAppLocalService dlAppLocalService) {
081                    this.dlAppLocalService = dlAppLocalService;
082            }
083    
084            /**
085             * Returns the counter local service.
086             *
087             * @return the counter local service
088             */
089            public com.liferay.counter.kernel.service.CounterLocalService getCounterLocalService() {
090                    return counterLocalService;
091            }
092    
093            /**
094             * Sets the counter local service.
095             *
096             * @param counterLocalService the counter local service
097             */
098            public void setCounterLocalService(
099                    com.liferay.counter.kernel.service.CounterLocalService counterLocalService) {
100                    this.counterLocalService = counterLocalService;
101            }
102    
103            /**
104             * Returns the repository local service.
105             *
106             * @return the repository local service
107             */
108            public com.liferay.portal.kernel.service.RepositoryLocalService getRepositoryLocalService() {
109                    return repositoryLocalService;
110            }
111    
112            /**
113             * Sets the repository local service.
114             *
115             * @param repositoryLocalService the repository local service
116             */
117            public void setRepositoryLocalService(
118                    com.liferay.portal.kernel.service.RepositoryLocalService repositoryLocalService) {
119                    this.repositoryLocalService = repositoryLocalService;
120            }
121    
122            /**
123             * Returns the repository persistence.
124             *
125             * @return the repository persistence
126             */
127            public RepositoryPersistence getRepositoryPersistence() {
128                    return repositoryPersistence;
129            }
130    
131            /**
132             * Sets the repository persistence.
133             *
134             * @param repositoryPersistence the repository persistence
135             */
136            public void setRepositoryPersistence(
137                    RepositoryPersistence repositoryPersistence) {
138                    this.repositoryPersistence = repositoryPersistence;
139            }
140    
141            /**
142             * Returns the repository entry local service.
143             *
144             * @return the repository entry local service
145             */
146            public com.liferay.portal.kernel.service.RepositoryEntryLocalService getRepositoryEntryLocalService() {
147                    return repositoryEntryLocalService;
148            }
149    
150            /**
151             * Sets the repository entry local service.
152             *
153             * @param repositoryEntryLocalService the repository entry local service
154             */
155            public void setRepositoryEntryLocalService(
156                    com.liferay.portal.kernel.service.RepositoryEntryLocalService repositoryEntryLocalService) {
157                    this.repositoryEntryLocalService = repositoryEntryLocalService;
158            }
159    
160            /**
161             * Returns the repository entry persistence.
162             *
163             * @return the repository entry persistence
164             */
165            public RepositoryEntryPersistence getRepositoryEntryPersistence() {
166                    return repositoryEntryPersistence;
167            }
168    
169            /**
170             * Sets the repository entry persistence.
171             *
172             * @param repositoryEntryPersistence the repository entry persistence
173             */
174            public void setRepositoryEntryPersistence(
175                    RepositoryEntryPersistence repositoryEntryPersistence) {
176                    this.repositoryEntryPersistence = repositoryEntryPersistence;
177            }
178    
179            /**
180             * Returns the subscription local service.
181             *
182             * @return the subscription local service
183             */
184            public com.liferay.portal.kernel.service.SubscriptionLocalService getSubscriptionLocalService() {
185                    return subscriptionLocalService;
186            }
187    
188            /**
189             * Sets the subscription local service.
190             *
191             * @param subscriptionLocalService the subscription local service
192             */
193            public void setSubscriptionLocalService(
194                    com.liferay.portal.kernel.service.SubscriptionLocalService subscriptionLocalService) {
195                    this.subscriptionLocalService = subscriptionLocalService;
196            }
197    
198            /**
199             * Returns the subscription persistence.
200             *
201             * @return the subscription persistence
202             */
203            public SubscriptionPersistence getSubscriptionPersistence() {
204                    return subscriptionPersistence;
205            }
206    
207            /**
208             * Sets the subscription persistence.
209             *
210             * @param subscriptionPersistence the subscription persistence
211             */
212            public void setSubscriptionPersistence(
213                    SubscriptionPersistence subscriptionPersistence) {
214                    this.subscriptionPersistence = subscriptionPersistence;
215            }
216    
217            /**
218             * Returns the trash entry local service.
219             *
220             * @return the trash entry local service
221             */
222            public com.liferay.trash.kernel.service.TrashEntryLocalService getTrashEntryLocalService() {
223                    return trashEntryLocalService;
224            }
225    
226            /**
227             * Sets the trash entry local service.
228             *
229             * @param trashEntryLocalService the trash entry local service
230             */
231            public void setTrashEntryLocalService(
232                    com.liferay.trash.kernel.service.TrashEntryLocalService trashEntryLocalService) {
233                    this.trashEntryLocalService = trashEntryLocalService;
234            }
235    
236            /**
237             * Returns the trash entry persistence.
238             *
239             * @return the trash entry persistence
240             */
241            public TrashEntryPersistence getTrashEntryPersistence() {
242                    return trashEntryPersistence;
243            }
244    
245            /**
246             * Sets the trash entry persistence.
247             *
248             * @param trashEntryPersistence the trash entry persistence
249             */
250            public void setTrashEntryPersistence(
251                    TrashEntryPersistence trashEntryPersistence) {
252                    this.trashEntryPersistence = trashEntryPersistence;
253            }
254    
255            /**
256             * Returns the d l app helper local service.
257             *
258             * @return the d l app helper local service
259             */
260            public com.liferay.document.library.kernel.service.DLAppHelperLocalService getDLAppHelperLocalService() {
261                    return dlAppHelperLocalService;
262            }
263    
264            /**
265             * Sets the d l app helper local service.
266             *
267             * @param dlAppHelperLocalService the d l app helper local service
268             */
269            public void setDLAppHelperLocalService(
270                    com.liferay.document.library.kernel.service.DLAppHelperLocalService dlAppHelperLocalService) {
271                    this.dlAppHelperLocalService = dlAppHelperLocalService;
272            }
273    
274            /**
275             * Returns the document library file entry metadata local service.
276             *
277             * @return the document library file entry metadata local service
278             */
279            public com.liferay.document.library.kernel.service.DLFileEntryMetadataLocalService getDLFileEntryMetadataLocalService() {
280                    return dlFileEntryMetadataLocalService;
281            }
282    
283            /**
284             * Sets the document library file entry metadata local service.
285             *
286             * @param dlFileEntryMetadataLocalService the document library file entry metadata local service
287             */
288            public void setDLFileEntryMetadataLocalService(
289                    com.liferay.document.library.kernel.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService) {
290                    this.dlFileEntryMetadataLocalService = dlFileEntryMetadataLocalService;
291            }
292    
293            /**
294             * Returns the document library file entry metadata persistence.
295             *
296             * @return the document library file entry metadata persistence
297             */
298            public DLFileEntryMetadataPersistence getDLFileEntryMetadataPersistence() {
299                    return dlFileEntryMetadataPersistence;
300            }
301    
302            /**
303             * Sets the document library file entry metadata persistence.
304             *
305             * @param dlFileEntryMetadataPersistence the document library file entry metadata persistence
306             */
307            public void setDLFileEntryMetadataPersistence(
308                    DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence) {
309                    this.dlFileEntryMetadataPersistence = dlFileEntryMetadataPersistence;
310            }
311    
312            /**
313             * Returns the document library file entry metadata finder.
314             *
315             * @return the document library file entry metadata finder
316             */
317            public DLFileEntryMetadataFinder getDLFileEntryMetadataFinder() {
318                    return dlFileEntryMetadataFinder;
319            }
320    
321            /**
322             * Sets the document library file entry metadata finder.
323             *
324             * @param dlFileEntryMetadataFinder the document library file entry metadata finder
325             */
326            public void setDLFileEntryMetadataFinder(
327                    DLFileEntryMetadataFinder dlFileEntryMetadataFinder) {
328                    this.dlFileEntryMetadataFinder = dlFileEntryMetadataFinder;
329            }
330    
331            /**
332             * Returns the document library file rank local service.
333             *
334             * @return the document library file rank local service
335             */
336            public com.liferay.document.library.kernel.service.DLFileRankLocalService getDLFileRankLocalService() {
337                    return dlFileRankLocalService;
338            }
339    
340            /**
341             * Sets the document library file rank local service.
342             *
343             * @param dlFileRankLocalService the document library file rank local service
344             */
345            public void setDLFileRankLocalService(
346                    com.liferay.document.library.kernel.service.DLFileRankLocalService dlFileRankLocalService) {
347                    this.dlFileRankLocalService = dlFileRankLocalService;
348            }
349    
350            /**
351             * Returns the document library file rank persistence.
352             *
353             * @return the document library file rank persistence
354             */
355            public DLFileRankPersistence getDLFileRankPersistence() {
356                    return dlFileRankPersistence;
357            }
358    
359            /**
360             * Sets the document library file rank persistence.
361             *
362             * @param dlFileRankPersistence the document library file rank persistence
363             */
364            public void setDLFileRankPersistence(
365                    DLFileRankPersistence dlFileRankPersistence) {
366                    this.dlFileRankPersistence = dlFileRankPersistence;
367            }
368    
369            /**
370             * Returns the document library file rank finder.
371             *
372             * @return the document library file rank finder
373             */
374            public DLFileRankFinder getDLFileRankFinder() {
375                    return dlFileRankFinder;
376            }
377    
378            /**
379             * Sets the document library file rank finder.
380             *
381             * @param dlFileRankFinder the document library file rank finder
382             */
383            public void setDLFileRankFinder(DLFileRankFinder dlFileRankFinder) {
384                    this.dlFileRankFinder = dlFileRankFinder;
385            }
386    
387            /**
388             * Returns the document library folder local service.
389             *
390             * @return the document library folder local service
391             */
392            public com.liferay.document.library.kernel.service.DLFolderLocalService getDLFolderLocalService() {
393                    return dlFolderLocalService;
394            }
395    
396            /**
397             * Sets the document library folder local service.
398             *
399             * @param dlFolderLocalService the document library folder local service
400             */
401            public void setDLFolderLocalService(
402                    com.liferay.document.library.kernel.service.DLFolderLocalService dlFolderLocalService) {
403                    this.dlFolderLocalService = dlFolderLocalService;
404            }
405    
406            /**
407             * Returns the document library folder persistence.
408             *
409             * @return the document library folder persistence
410             */
411            public DLFolderPersistence getDLFolderPersistence() {
412                    return dlFolderPersistence;
413            }
414    
415            /**
416             * Sets the document library folder persistence.
417             *
418             * @param dlFolderPersistence the document library folder persistence
419             */
420            public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
421                    this.dlFolderPersistence = dlFolderPersistence;
422            }
423    
424            /**
425             * Returns the document library folder finder.
426             *
427             * @return the document library folder finder
428             */
429            public DLFolderFinder getDLFolderFinder() {
430                    return dlFolderFinder;
431            }
432    
433            /**
434             * Sets the document library folder finder.
435             *
436             * @param dlFolderFinder the document library folder finder
437             */
438            public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
439                    this.dlFolderFinder = dlFolderFinder;
440            }
441    
442            public void afterPropertiesSet() {
443            }
444    
445            public void destroy() {
446            }
447    
448            /**
449             * Returns the OSGi service identifier.
450             *
451             * @return the OSGi service identifier
452             */
453            @Override
454            public String getOSGiServiceIdentifier() {
455                    return DLAppLocalService.class.getName();
456            }
457    
458            /**
459             * Performs a SQL query.
460             *
461             * @param sql the sql query
462             */
463            protected void runSQL(String sql) {
464                    try {
465                            DataSource dataSource = InfrastructureUtil.getDataSource();
466    
467                            DB db = DBManagerUtil.getDB();
468    
469                            sql = db.buildSQL(sql);
470                            sql = PortalUtil.transformSQL(sql);
471    
472                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
473                                            sql);
474    
475                            sqlUpdate.update();
476                    }
477                    catch (Exception e) {
478                            throw new SystemException(e);
479                    }
480            }
481    
482            @BeanReference(type = DLAppLocalService.class)
483            protected DLAppLocalService dlAppLocalService;
484            @BeanReference(type = com.liferay.counter.kernel.service.CounterLocalService.class)
485            protected com.liferay.counter.kernel.service.CounterLocalService counterLocalService;
486            @BeanReference(type = com.liferay.portal.kernel.service.RepositoryLocalService.class)
487            protected com.liferay.portal.kernel.service.RepositoryLocalService repositoryLocalService;
488            @BeanReference(type = RepositoryPersistence.class)
489            protected RepositoryPersistence repositoryPersistence;
490            @BeanReference(type = com.liferay.portal.kernel.service.RepositoryEntryLocalService.class)
491            protected com.liferay.portal.kernel.service.RepositoryEntryLocalService repositoryEntryLocalService;
492            @BeanReference(type = RepositoryEntryPersistence.class)
493            protected RepositoryEntryPersistence repositoryEntryPersistence;
494            @BeanReference(type = com.liferay.portal.kernel.service.SubscriptionLocalService.class)
495            protected com.liferay.portal.kernel.service.SubscriptionLocalService subscriptionLocalService;
496            @BeanReference(type = SubscriptionPersistence.class)
497            protected SubscriptionPersistence subscriptionPersistence;
498            @BeanReference(type = com.liferay.trash.kernel.service.TrashEntryLocalService.class)
499            protected com.liferay.trash.kernel.service.TrashEntryLocalService trashEntryLocalService;
500            @BeanReference(type = TrashEntryPersistence.class)
501            protected TrashEntryPersistence trashEntryPersistence;
502            @BeanReference(type = com.liferay.document.library.kernel.service.DLAppHelperLocalService.class)
503            protected com.liferay.document.library.kernel.service.DLAppHelperLocalService dlAppHelperLocalService;
504            @BeanReference(type = com.liferay.document.library.kernel.service.DLFileEntryMetadataLocalService.class)
505            protected com.liferay.document.library.kernel.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService;
506            @BeanReference(type = DLFileEntryMetadataPersistence.class)
507            protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence;
508            @BeanReference(type = DLFileEntryMetadataFinder.class)
509            protected DLFileEntryMetadataFinder dlFileEntryMetadataFinder;
510            @BeanReference(type = com.liferay.document.library.kernel.service.DLFileRankLocalService.class)
511            protected com.liferay.document.library.kernel.service.DLFileRankLocalService dlFileRankLocalService;
512            @BeanReference(type = DLFileRankPersistence.class)
513            protected DLFileRankPersistence dlFileRankPersistence;
514            @BeanReference(type = DLFileRankFinder.class)
515            protected DLFileRankFinder dlFileRankFinder;
516            @BeanReference(type = com.liferay.document.library.kernel.service.DLFolderLocalService.class)
517            protected com.liferay.document.library.kernel.service.DLFolderLocalService dlFolderLocalService;
518            @BeanReference(type = DLFolderPersistence.class)
519            protected DLFolderPersistence dlFolderPersistence;
520            @BeanReference(type = DLFolderFinder.class)
521            protected DLFolderFinder dlFolderFinder;
522    }