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