001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.service.base;
016    
017    import com.liferay.document.library.kernel.service.DLAppService;
018    import com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataFinder;
019    import com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataPersistence;
020    import com.liferay.document.library.kernel.service.persistence.DLFileRankFinder;
021    import com.liferay.document.library.kernel.service.persistence.DLFileRankPersistence;
022    import com.liferay.document.library.kernel.service.persistence.DLFolderFinder;
023    import com.liferay.document.library.kernel.service.persistence.DLFolderPersistence;
024    
025    import com.liferay.portal.kernel.bean.BeanReference;
026    import com.liferay.portal.kernel.dao.db.DB;
027    import com.liferay.portal.kernel.dao.db.DBManagerUtil;
028    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
029    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
030    import com.liferay.portal.kernel.exception.SystemException;
031    import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
032    import com.liferay.portal.kernel.service.BaseServiceImpl;
033    import com.liferay.portal.kernel.service.persistence.RepositoryEntryPersistence;
034    import com.liferay.portal.kernel.service.persistence.RepositoryPersistence;
035    import com.liferay.portal.kernel.service.persistence.SubscriptionPersistence;
036    import com.liferay.portal.kernel.util.InfrastructureUtil;
037    import com.liferay.portal.kernel.util.PortalUtil;
038    
039    import com.liferay.trash.kernel.service.persistence.TrashEntryPersistence;
040    
041    import javax.sql.DataSource;
042    
043    /**
044     * Provides the base implementation for the d l app remote service.
045     *
046     * <p>
047     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl}.
048     * </p>
049     *
050     * @author Brian Wing Shun Chan
051     * @see com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl
052     * @see com.liferay.document.library.kernel.service.DLAppServiceUtil
053     * @generated
054     */
055    public abstract class DLAppServiceBaseImpl extends BaseServiceImpl
056            implements DLAppService, IdentifiableOSGiService {
057            /*
058             * NOTE FOR DEVELOPERS:
059             *
060             * Never modify or reference this class directly. Always use {@link com.liferay.document.library.kernel.service.DLAppServiceUtil} to access the d l app remote service.
061             */
062    
063            /**
064             * Returns the d l app local service.
065             *
066             * @return the d l app local service
067             */
068            public com.liferay.document.library.kernel.service.DLAppLocalService getDLAppLocalService() {
069                    return dlAppLocalService;
070            }
071    
072            /**
073             * Sets the d l app local service.
074             *
075             * @param dlAppLocalService the d l app local service
076             */
077            public void setDLAppLocalService(
078                    com.liferay.document.library.kernel.service.DLAppLocalService dlAppLocalService) {
079                    this.dlAppLocalService = dlAppLocalService;
080            }
081    
082            /**
083             * Returns the d l app remote service.
084             *
085             * @return the d l app remote service
086             */
087            public 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(DLAppService dlAppService) {
097                    this.dlAppService = dlAppService;
098            }
099    
100            /**
101             * Returns the counter local service.
102             *
103             * @return the counter local service
104             */
105            public com.liferay.counter.kernel.service.CounterLocalService getCounterLocalService() {
106                    return counterLocalService;
107            }
108    
109            /**
110             * Sets the counter local service.
111             *
112             * @param counterLocalService the counter local service
113             */
114            public void setCounterLocalService(
115                    com.liferay.counter.kernel.service.CounterLocalService counterLocalService) {
116                    this.counterLocalService = counterLocalService;
117            }
118    
119            /**
120             * Returns the repository local service.
121             *
122             * @return the repository local service
123             */
124            public com.liferay.portal.kernel.service.RepositoryLocalService getRepositoryLocalService() {
125                    return repositoryLocalService;
126            }
127    
128            /**
129             * Sets the repository local service.
130             *
131             * @param repositoryLocalService the repository local service
132             */
133            public void setRepositoryLocalService(
134                    com.liferay.portal.kernel.service.RepositoryLocalService repositoryLocalService) {
135                    this.repositoryLocalService = repositoryLocalService;
136            }
137    
138            /**
139             * Returns the repository remote service.
140             *
141             * @return the repository remote service
142             */
143            public com.liferay.portal.kernel.service.RepositoryService getRepositoryService() {
144                    return repositoryService;
145            }
146    
147            /**
148             * Sets the repository remote service.
149             *
150             * @param repositoryService the repository remote service
151             */
152            public void setRepositoryService(
153                    com.liferay.portal.kernel.service.RepositoryService repositoryService) {
154                    this.repositoryService = repositoryService;
155            }
156    
157            /**
158             * Returns the repository persistence.
159             *
160             * @return the repository persistence
161             */
162            public RepositoryPersistence getRepositoryPersistence() {
163                    return repositoryPersistence;
164            }
165    
166            /**
167             * Sets the repository persistence.
168             *
169             * @param repositoryPersistence the repository persistence
170             */
171            public void setRepositoryPersistence(
172                    RepositoryPersistence repositoryPersistence) {
173                    this.repositoryPersistence = repositoryPersistence;
174            }
175    
176            /**
177             * Returns the repository entry local service.
178             *
179             * @return the repository entry local service
180             */
181            public com.liferay.portal.kernel.service.RepositoryEntryLocalService getRepositoryEntryLocalService() {
182                    return repositoryEntryLocalService;
183            }
184    
185            /**
186             * Sets the repository entry local service.
187             *
188             * @param repositoryEntryLocalService the repository entry local service
189             */
190            public void setRepositoryEntryLocalService(
191                    com.liferay.portal.kernel.service.RepositoryEntryLocalService repositoryEntryLocalService) {
192                    this.repositoryEntryLocalService = repositoryEntryLocalService;
193            }
194    
195            /**
196             * Returns the repository entry persistence.
197             *
198             * @return the repository entry persistence
199             */
200            public RepositoryEntryPersistence getRepositoryEntryPersistence() {
201                    return repositoryEntryPersistence;
202            }
203    
204            /**
205             * Sets the repository entry persistence.
206             *
207             * @param repositoryEntryPersistence the repository entry persistence
208             */
209            public void setRepositoryEntryPersistence(
210                    RepositoryEntryPersistence repositoryEntryPersistence) {
211                    this.repositoryEntryPersistence = repositoryEntryPersistence;
212            }
213    
214            /**
215             * Returns the subscription local service.
216             *
217             * @return the subscription local service
218             */
219            public com.liferay.portal.kernel.service.SubscriptionLocalService getSubscriptionLocalService() {
220                    return subscriptionLocalService;
221            }
222    
223            /**
224             * Sets the subscription local service.
225             *
226             * @param subscriptionLocalService the subscription local service
227             */
228            public void setSubscriptionLocalService(
229                    com.liferay.portal.kernel.service.SubscriptionLocalService subscriptionLocalService) {
230                    this.subscriptionLocalService = subscriptionLocalService;
231            }
232    
233            /**
234             * Returns the subscription persistence.
235             *
236             * @return the subscription persistence
237             */
238            public SubscriptionPersistence getSubscriptionPersistence() {
239                    return subscriptionPersistence;
240            }
241    
242            /**
243             * Sets the subscription persistence.
244             *
245             * @param subscriptionPersistence the subscription persistence
246             */
247            public void setSubscriptionPersistence(
248                    SubscriptionPersistence subscriptionPersistence) {
249                    this.subscriptionPersistence = subscriptionPersistence;
250            }
251    
252            /**
253             * Returns the trash entry local service.
254             *
255             * @return the trash entry local service
256             */
257            public com.liferay.trash.kernel.service.TrashEntryLocalService getTrashEntryLocalService() {
258                    return trashEntryLocalService;
259            }
260    
261            /**
262             * Sets the trash entry local service.
263             *
264             * @param trashEntryLocalService the trash entry local service
265             */
266            public void setTrashEntryLocalService(
267                    com.liferay.trash.kernel.service.TrashEntryLocalService trashEntryLocalService) {
268                    this.trashEntryLocalService = trashEntryLocalService;
269            }
270    
271            /**
272             * Returns the trash entry remote service.
273             *
274             * @return the trash entry remote service
275             */
276            public com.liferay.trash.kernel.service.TrashEntryService getTrashEntryService() {
277                    return trashEntryService;
278            }
279    
280            /**
281             * Sets the trash entry remote service.
282             *
283             * @param trashEntryService the trash entry remote service
284             */
285            public void setTrashEntryService(
286                    com.liferay.trash.kernel.service.TrashEntryService trashEntryService) {
287                    this.trashEntryService = trashEntryService;
288            }
289    
290            /**
291             * Returns the trash entry persistence.
292             *
293             * @return the trash entry persistence
294             */
295            public TrashEntryPersistence getTrashEntryPersistence() {
296                    return trashEntryPersistence;
297            }
298    
299            /**
300             * Sets the trash entry persistence.
301             *
302             * @param trashEntryPersistence the trash entry persistence
303             */
304            public void setTrashEntryPersistence(
305                    TrashEntryPersistence trashEntryPersistence) {
306                    this.trashEntryPersistence = trashEntryPersistence;
307            }
308    
309            /**
310             * Returns the d l app helper local service.
311             *
312             * @return the d l app helper local service
313             */
314            public com.liferay.document.library.kernel.service.DLAppHelperLocalService getDLAppHelperLocalService() {
315                    return dlAppHelperLocalService;
316            }
317    
318            /**
319             * Sets the d l app helper local service.
320             *
321             * @param dlAppHelperLocalService the d l app helper local service
322             */
323            public void setDLAppHelperLocalService(
324                    com.liferay.document.library.kernel.service.DLAppHelperLocalService dlAppHelperLocalService) {
325                    this.dlAppHelperLocalService = dlAppHelperLocalService;
326            }
327    
328            /**
329             * Returns the document library file entry metadata local service.
330             *
331             * @return the document library file entry metadata local service
332             */
333            public com.liferay.document.library.kernel.service.DLFileEntryMetadataLocalService getDLFileEntryMetadataLocalService() {
334                    return dlFileEntryMetadataLocalService;
335            }
336    
337            /**
338             * Sets the document library file entry metadata local service.
339             *
340             * @param dlFileEntryMetadataLocalService the document library file entry metadata local service
341             */
342            public void setDLFileEntryMetadataLocalService(
343                    com.liferay.document.library.kernel.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService) {
344                    this.dlFileEntryMetadataLocalService = dlFileEntryMetadataLocalService;
345            }
346    
347            /**
348             * Returns the document library file entry metadata persistence.
349             *
350             * @return the document library file entry metadata persistence
351             */
352            public DLFileEntryMetadataPersistence getDLFileEntryMetadataPersistence() {
353                    return dlFileEntryMetadataPersistence;
354            }
355    
356            /**
357             * Sets the document library file entry metadata persistence.
358             *
359             * @param dlFileEntryMetadataPersistence the document library file entry metadata persistence
360             */
361            public void setDLFileEntryMetadataPersistence(
362                    DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence) {
363                    this.dlFileEntryMetadataPersistence = dlFileEntryMetadataPersistence;
364            }
365    
366            /**
367             * Returns the document library file entry metadata finder.
368             *
369             * @return the document library file entry metadata finder
370             */
371            public DLFileEntryMetadataFinder getDLFileEntryMetadataFinder() {
372                    return dlFileEntryMetadataFinder;
373            }
374    
375            /**
376             * Sets the document library file entry metadata finder.
377             *
378             * @param dlFileEntryMetadataFinder the document library file entry metadata finder
379             */
380            public void setDLFileEntryMetadataFinder(
381                    DLFileEntryMetadataFinder dlFileEntryMetadataFinder) {
382                    this.dlFileEntryMetadataFinder = dlFileEntryMetadataFinder;
383            }
384    
385            /**
386             * Returns the document library file rank local service.
387             *
388             * @return the document library file rank local service
389             */
390            public com.liferay.document.library.kernel.service.DLFileRankLocalService getDLFileRankLocalService() {
391                    return dlFileRankLocalService;
392            }
393    
394            /**
395             * Sets the document library file rank local service.
396             *
397             * @param dlFileRankLocalService the document library file rank local service
398             */
399            public void setDLFileRankLocalService(
400                    com.liferay.document.library.kernel.service.DLFileRankLocalService dlFileRankLocalService) {
401                    this.dlFileRankLocalService = dlFileRankLocalService;
402            }
403    
404            /**
405             * Returns the document library file rank persistence.
406             *
407             * @return the document library file rank persistence
408             */
409            public DLFileRankPersistence getDLFileRankPersistence() {
410                    return dlFileRankPersistence;
411            }
412    
413            /**
414             * Sets the document library file rank persistence.
415             *
416             * @param dlFileRankPersistence the document library file rank persistence
417             */
418            public void setDLFileRankPersistence(
419                    DLFileRankPersistence dlFileRankPersistence) {
420                    this.dlFileRankPersistence = dlFileRankPersistence;
421            }
422    
423            /**
424             * Returns the document library file rank finder.
425             *
426             * @return the document library file rank finder
427             */
428            public DLFileRankFinder getDLFileRankFinder() {
429                    return dlFileRankFinder;
430            }
431    
432            /**
433             * Sets the document library file rank finder.
434             *
435             * @param dlFileRankFinder the document library file rank finder
436             */
437            public void setDLFileRankFinder(DLFileRankFinder dlFileRankFinder) {
438                    this.dlFileRankFinder = dlFileRankFinder;
439            }
440    
441            /**
442             * Returns the document library folder local service.
443             *
444             * @return the document library folder local service
445             */
446            public com.liferay.document.library.kernel.service.DLFolderLocalService getDLFolderLocalService() {
447                    return dlFolderLocalService;
448            }
449    
450            /**
451             * Sets the document library folder local service.
452             *
453             * @param dlFolderLocalService the document library folder local service
454             */
455            public void setDLFolderLocalService(
456                    com.liferay.document.library.kernel.service.DLFolderLocalService dlFolderLocalService) {
457                    this.dlFolderLocalService = dlFolderLocalService;
458            }
459    
460            /**
461             * Returns the document library folder remote service.
462             *
463             * @return the document library folder remote service
464             */
465            public com.liferay.document.library.kernel.service.DLFolderService getDLFolderService() {
466                    return dlFolderService;
467            }
468    
469            /**
470             * Sets the document library folder remote service.
471             *
472             * @param dlFolderService the document library folder remote service
473             */
474            public void setDLFolderService(
475                    com.liferay.document.library.kernel.service.DLFolderService dlFolderService) {
476                    this.dlFolderService = dlFolderService;
477            }
478    
479            /**
480             * Returns the document library folder persistence.
481             *
482             * @return the document library folder persistence
483             */
484            public DLFolderPersistence getDLFolderPersistence() {
485                    return dlFolderPersistence;
486            }
487    
488            /**
489             * Sets the document library folder persistence.
490             *
491             * @param dlFolderPersistence the document library folder persistence
492             */
493            public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
494                    this.dlFolderPersistence = dlFolderPersistence;
495            }
496    
497            /**
498             * Returns the document library folder finder.
499             *
500             * @return the document library folder finder
501             */
502            public DLFolderFinder getDLFolderFinder() {
503                    return dlFolderFinder;
504            }
505    
506            /**
507             * Sets the document library folder finder.
508             *
509             * @param dlFolderFinder the document library folder finder
510             */
511            public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
512                    this.dlFolderFinder = dlFolderFinder;
513            }
514    
515            public void afterPropertiesSet() {
516            }
517    
518            public void destroy() {
519            }
520    
521            /**
522             * Returns the OSGi service identifier.
523             *
524             * @return the OSGi service identifier
525             */
526            @Override
527            public String getOSGiServiceIdentifier() {
528                    return DLAppService.class.getName();
529            }
530    
531            /**
532             * Performs a SQL query.
533             *
534             * @param sql the sql query
535             */
536            protected void runSQL(String sql) {
537                    try {
538                            DataSource dataSource = InfrastructureUtil.getDataSource();
539    
540                            DB db = DBManagerUtil.getDB();
541    
542                            sql = db.buildSQL(sql);
543                            sql = PortalUtil.transformSQL(sql);
544    
545                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
546                                            sql);
547    
548                            sqlUpdate.update();
549                    }
550                    catch (Exception e) {
551                            throw new SystemException(e);
552                    }
553            }
554    
555            @BeanReference(type = com.liferay.document.library.kernel.service.DLAppLocalService.class)
556            protected com.liferay.document.library.kernel.service.DLAppLocalService dlAppLocalService;
557            @BeanReference(type = DLAppService.class)
558            protected DLAppService dlAppService;
559            @BeanReference(type = com.liferay.counter.kernel.service.CounterLocalService.class)
560            protected com.liferay.counter.kernel.service.CounterLocalService counterLocalService;
561            @BeanReference(type = com.liferay.portal.kernel.service.RepositoryLocalService.class)
562            protected com.liferay.portal.kernel.service.RepositoryLocalService repositoryLocalService;
563            @BeanReference(type = com.liferay.portal.kernel.service.RepositoryService.class)
564            protected com.liferay.portal.kernel.service.RepositoryService repositoryService;
565            @BeanReference(type = RepositoryPersistence.class)
566            protected RepositoryPersistence repositoryPersistence;
567            @BeanReference(type = com.liferay.portal.kernel.service.RepositoryEntryLocalService.class)
568            protected com.liferay.portal.kernel.service.RepositoryEntryLocalService repositoryEntryLocalService;
569            @BeanReference(type = RepositoryEntryPersistence.class)
570            protected RepositoryEntryPersistence repositoryEntryPersistence;
571            @BeanReference(type = com.liferay.portal.kernel.service.SubscriptionLocalService.class)
572            protected com.liferay.portal.kernel.service.SubscriptionLocalService subscriptionLocalService;
573            @BeanReference(type = SubscriptionPersistence.class)
574            protected SubscriptionPersistence subscriptionPersistence;
575            @BeanReference(type = com.liferay.trash.kernel.service.TrashEntryLocalService.class)
576            protected com.liferay.trash.kernel.service.TrashEntryLocalService trashEntryLocalService;
577            @BeanReference(type = com.liferay.trash.kernel.service.TrashEntryService.class)
578            protected com.liferay.trash.kernel.service.TrashEntryService trashEntryService;
579            @BeanReference(type = TrashEntryPersistence.class)
580            protected TrashEntryPersistence trashEntryPersistence;
581            @BeanReference(type = com.liferay.document.library.kernel.service.DLAppHelperLocalService.class)
582            protected com.liferay.document.library.kernel.service.DLAppHelperLocalService dlAppHelperLocalService;
583            @BeanReference(type = com.liferay.document.library.kernel.service.DLFileEntryMetadataLocalService.class)
584            protected com.liferay.document.library.kernel.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService;
585            @BeanReference(type = DLFileEntryMetadataPersistence.class)
586            protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence;
587            @BeanReference(type = DLFileEntryMetadataFinder.class)
588            protected DLFileEntryMetadataFinder dlFileEntryMetadataFinder;
589            @BeanReference(type = com.liferay.document.library.kernel.service.DLFileRankLocalService.class)
590            protected com.liferay.document.library.kernel.service.DLFileRankLocalService dlFileRankLocalService;
591            @BeanReference(type = DLFileRankPersistence.class)
592            protected DLFileRankPersistence dlFileRankPersistence;
593            @BeanReference(type = DLFileRankFinder.class)
594            protected DLFileRankFinder dlFileRankFinder;
595            @BeanReference(type = com.liferay.document.library.kernel.service.DLFolderLocalService.class)
596            protected com.liferay.document.library.kernel.service.DLFolderLocalService dlFolderLocalService;
597            @BeanReference(type = com.liferay.document.library.kernel.service.DLFolderService.class)
598            protected com.liferay.document.library.kernel.service.DLFolderService dlFolderService;
599            @BeanReference(type = DLFolderPersistence.class)
600            protected DLFolderPersistence dlFolderPersistence;
601            @BeanReference(type = DLFolderFinder.class)
602            protected DLFolderFinder dlFolderFinder;
603    }