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.exportimport.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.DBFactoryUtil;
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.ClassNamePersistence;
029    import com.liferay.portal.service.persistence.LayoutFinder;
030    import com.liferay.portal.service.persistence.LayoutPersistence;
031    import com.liferay.portal.service.persistence.UserFinder;
032    import com.liferay.portal.service.persistence.UserPersistence;
033    import com.liferay.portal.util.PortalUtil;
034    
035    import com.liferay.portlet.exportimport.service.ExportImportLocalService;
036    import com.liferay.portlet.exportimport.service.persistence.ExportImportConfigurationPersistence;
037    
038    import javax.sql.DataSource;
039    
040    /**
041     * Provides the base implementation for the export import local service.
042     *
043     * <p>
044     * 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.exportimport.service.impl.ExportImportLocalServiceImpl}.
045     * </p>
046     *
047     * @author Brian Wing Shun Chan
048     * @see com.liferay.portlet.exportimport.service.impl.ExportImportLocalServiceImpl
049     * @see com.liferay.portlet.exportimport.service.ExportImportLocalServiceUtil
050     * @generated
051     */
052    @ProviderType
053    public abstract class ExportImportLocalServiceBaseImpl
054            extends BaseLocalServiceImpl implements ExportImportLocalService,
055                    IdentifiableOSGiService {
056            /*
057             * NOTE FOR DEVELOPERS:
058             *
059             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.exportimport.service.ExportImportLocalServiceUtil} to access the export import local service.
060             */
061    
062            /**
063             * Returns the export import local service.
064             *
065             * @return the export import local service
066             */
067            public ExportImportLocalService getExportImportLocalService() {
068                    return exportImportLocalService;
069            }
070    
071            /**
072             * Sets the export import local service.
073             *
074             * @param exportImportLocalService the export import local service
075             */
076            public void setExportImportLocalService(
077                    ExportImportLocalService exportImportLocalService) {
078                    this.exportImportLocalService = exportImportLocalService;
079            }
080    
081            /**
082             * Returns the export import remote service.
083             *
084             * @return the export import remote service
085             */
086            public com.liferay.portlet.exportimport.service.ExportImportService getExportImportService() {
087                    return exportImportService;
088            }
089    
090            /**
091             * Sets the export import remote service.
092             *
093             * @param exportImportService the export import remote service
094             */
095            public void setExportImportService(
096                    com.liferay.portlet.exportimport.service.ExportImportService exportImportService) {
097                    this.exportImportService = exportImportService;
098            }
099    
100            /**
101             * Returns the export import configuration local service.
102             *
103             * @return the export import configuration local service
104             */
105            public com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService getExportImportConfigurationLocalService() {
106                    return exportImportConfigurationLocalService;
107            }
108    
109            /**
110             * Sets the export import configuration local service.
111             *
112             * @param exportImportConfigurationLocalService the export import configuration local service
113             */
114            public void setExportImportConfigurationLocalService(
115                    com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService) {
116                    this.exportImportConfigurationLocalService = exportImportConfigurationLocalService;
117            }
118    
119            /**
120             * Returns the export import configuration remote service.
121             *
122             * @return the export import configuration remote service
123             */
124            public com.liferay.portlet.exportimport.service.ExportImportConfigurationService getExportImportConfigurationService() {
125                    return exportImportConfigurationService;
126            }
127    
128            /**
129             * Sets the export import configuration remote service.
130             *
131             * @param exportImportConfigurationService the export import configuration remote service
132             */
133            public void setExportImportConfigurationService(
134                    com.liferay.portlet.exportimport.service.ExportImportConfigurationService exportImportConfigurationService) {
135                    this.exportImportConfigurationService = exportImportConfigurationService;
136            }
137    
138            /**
139             * Returns the export import configuration persistence.
140             *
141             * @return the export import configuration persistence
142             */
143            public ExportImportConfigurationPersistence getExportImportConfigurationPersistence() {
144                    return exportImportConfigurationPersistence;
145            }
146    
147            /**
148             * Sets the export import configuration persistence.
149             *
150             * @param exportImportConfigurationPersistence the export import configuration persistence
151             */
152            public void setExportImportConfigurationPersistence(
153                    ExportImportConfigurationPersistence exportImportConfigurationPersistence) {
154                    this.exportImportConfigurationPersistence = exportImportConfigurationPersistence;
155            }
156    
157            /**
158             * Returns the staging local service.
159             *
160             * @return the staging local service
161             */
162            public com.liferay.portlet.exportimport.service.StagingLocalService getStagingLocalService() {
163                    return stagingLocalService;
164            }
165    
166            /**
167             * Sets the staging local service.
168             *
169             * @param stagingLocalService the staging local service
170             */
171            public void setStagingLocalService(
172                    com.liferay.portlet.exportimport.service.StagingLocalService stagingLocalService) {
173                    this.stagingLocalService = stagingLocalService;
174            }
175    
176            /**
177             * Returns the staging remote service.
178             *
179             * @return the staging remote service
180             */
181            public com.liferay.portlet.exportimport.service.StagingService getStagingService() {
182                    return stagingService;
183            }
184    
185            /**
186             * Sets the staging remote service.
187             *
188             * @param stagingService the staging remote service
189             */
190            public void setStagingService(
191                    com.liferay.portlet.exportimport.service.StagingService stagingService) {
192                    this.stagingService = stagingService;
193            }
194    
195            /**
196             * Returns the counter local service.
197             *
198             * @return the counter local service
199             */
200            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
201                    return counterLocalService;
202            }
203    
204            /**
205             * Sets the counter local service.
206             *
207             * @param counterLocalService the counter local service
208             */
209            public void setCounterLocalService(
210                    com.liferay.counter.service.CounterLocalService counterLocalService) {
211                    this.counterLocalService = counterLocalService;
212            }
213    
214            /**
215             * Returns the class name local service.
216             *
217             * @return the class name local service
218             */
219            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
220                    return classNameLocalService;
221            }
222    
223            /**
224             * Sets the class name local service.
225             *
226             * @param classNameLocalService the class name local service
227             */
228            public void setClassNameLocalService(
229                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
230                    this.classNameLocalService = classNameLocalService;
231            }
232    
233            /**
234             * Returns the class name remote service.
235             *
236             * @return the class name remote service
237             */
238            public com.liferay.portal.service.ClassNameService getClassNameService() {
239                    return classNameService;
240            }
241    
242            /**
243             * Sets the class name remote service.
244             *
245             * @param classNameService the class name remote service
246             */
247            public void setClassNameService(
248                    com.liferay.portal.service.ClassNameService classNameService) {
249                    this.classNameService = classNameService;
250            }
251    
252            /**
253             * Returns the class name persistence.
254             *
255             * @return the class name persistence
256             */
257            public ClassNamePersistence getClassNamePersistence() {
258                    return classNamePersistence;
259            }
260    
261            /**
262             * Sets the class name persistence.
263             *
264             * @param classNamePersistence the class name persistence
265             */
266            public void setClassNamePersistence(
267                    ClassNamePersistence classNamePersistence) {
268                    this.classNamePersistence = classNamePersistence;
269            }
270    
271            /**
272             * Returns the layout local service.
273             *
274             * @return the layout local service
275             */
276            public com.liferay.portal.service.LayoutLocalService getLayoutLocalService() {
277                    return layoutLocalService;
278            }
279    
280            /**
281             * Sets the layout local service.
282             *
283             * @param layoutLocalService the layout local service
284             */
285            public void setLayoutLocalService(
286                    com.liferay.portal.service.LayoutLocalService layoutLocalService) {
287                    this.layoutLocalService = layoutLocalService;
288            }
289    
290            /**
291             * Returns the layout remote service.
292             *
293             * @return the layout remote service
294             */
295            public com.liferay.portal.service.LayoutService getLayoutService() {
296                    return layoutService;
297            }
298    
299            /**
300             * Sets the layout remote service.
301             *
302             * @param layoutService the layout remote service
303             */
304            public void setLayoutService(
305                    com.liferay.portal.service.LayoutService layoutService) {
306                    this.layoutService = layoutService;
307            }
308    
309            /**
310             * Returns the layout persistence.
311             *
312             * @return the layout persistence
313             */
314            public LayoutPersistence getLayoutPersistence() {
315                    return layoutPersistence;
316            }
317    
318            /**
319             * Sets the layout persistence.
320             *
321             * @param layoutPersistence the layout persistence
322             */
323            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
324                    this.layoutPersistence = layoutPersistence;
325            }
326    
327            /**
328             * Returns the layout finder.
329             *
330             * @return the layout finder
331             */
332            public LayoutFinder getLayoutFinder() {
333                    return layoutFinder;
334            }
335    
336            /**
337             * Sets the layout finder.
338             *
339             * @param layoutFinder the layout finder
340             */
341            public void setLayoutFinder(LayoutFinder layoutFinder) {
342                    this.layoutFinder = layoutFinder;
343            }
344    
345            /**
346             * Returns the resource local service.
347             *
348             * @return the resource local service
349             */
350            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
351                    return resourceLocalService;
352            }
353    
354            /**
355             * Sets the resource local service.
356             *
357             * @param resourceLocalService the resource local service
358             */
359            public void setResourceLocalService(
360                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
361                    this.resourceLocalService = resourceLocalService;
362            }
363    
364            /**
365             * Returns the user local service.
366             *
367             * @return the user local service
368             */
369            public com.liferay.portal.service.UserLocalService getUserLocalService() {
370                    return userLocalService;
371            }
372    
373            /**
374             * Sets the user local service.
375             *
376             * @param userLocalService the user local service
377             */
378            public void setUserLocalService(
379                    com.liferay.portal.service.UserLocalService userLocalService) {
380                    this.userLocalService = userLocalService;
381            }
382    
383            /**
384             * Returns the user remote service.
385             *
386             * @return the user remote service
387             */
388            public com.liferay.portal.service.UserService getUserService() {
389                    return userService;
390            }
391    
392            /**
393             * Sets the user remote service.
394             *
395             * @param userService the user remote service
396             */
397            public void setUserService(
398                    com.liferay.portal.service.UserService userService) {
399                    this.userService = userService;
400            }
401    
402            /**
403             * Returns the user persistence.
404             *
405             * @return the user persistence
406             */
407            public UserPersistence getUserPersistence() {
408                    return userPersistence;
409            }
410    
411            /**
412             * Sets the user persistence.
413             *
414             * @param userPersistence the user persistence
415             */
416            public void setUserPersistence(UserPersistence userPersistence) {
417                    this.userPersistence = userPersistence;
418            }
419    
420            /**
421             * Returns the user finder.
422             *
423             * @return the user finder
424             */
425            public UserFinder getUserFinder() {
426                    return userFinder;
427            }
428    
429            /**
430             * Sets the user finder.
431             *
432             * @param userFinder the user finder
433             */
434            public void setUserFinder(UserFinder userFinder) {
435                    this.userFinder = userFinder;
436            }
437    
438            public void afterPropertiesSet() {
439            }
440    
441            public void destroy() {
442            }
443    
444            /**
445             * Returns the OSGi service identifier.
446             *
447             * @return the OSGi service identifier
448             */
449            @Override
450            public String getOSGiServiceIdentifier() {
451                    return ExportImportLocalService.class.getName();
452            }
453    
454            /**
455             * Performs a SQL query.
456             *
457             * @param sql the sql query
458             */
459            protected void runSQL(String sql) {
460                    try {
461                            DataSource dataSource = InfrastructureUtil.getDataSource();
462    
463                            DB db = DBFactoryUtil.getDB();
464    
465                            sql = db.buildSQL(sql);
466                            sql = PortalUtil.transformSQL(sql);
467    
468                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
469                                            sql, new int[0]);
470    
471                            sqlUpdate.update();
472                    }
473                    catch (Exception e) {
474                            throw new SystemException(e);
475                    }
476            }
477    
478            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportLocalService.class)
479            protected ExportImportLocalService exportImportLocalService;
480            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportService.class)
481            protected com.liferay.portlet.exportimport.service.ExportImportService exportImportService;
482            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService.class)
483            protected com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService;
484            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationService.class)
485            protected com.liferay.portlet.exportimport.service.ExportImportConfigurationService exportImportConfigurationService;
486            @BeanReference(type = ExportImportConfigurationPersistence.class)
487            protected ExportImportConfigurationPersistence exportImportConfigurationPersistence;
488            @BeanReference(type = com.liferay.portlet.exportimport.service.StagingLocalService.class)
489            protected com.liferay.portlet.exportimport.service.StagingLocalService stagingLocalService;
490            @BeanReference(type = com.liferay.portlet.exportimport.service.StagingService.class)
491            protected com.liferay.portlet.exportimport.service.StagingService stagingService;
492            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
493            protected com.liferay.counter.service.CounterLocalService counterLocalService;
494            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
495            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
496            @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
497            protected com.liferay.portal.service.ClassNameService classNameService;
498            @BeanReference(type = ClassNamePersistence.class)
499            protected ClassNamePersistence classNamePersistence;
500            @BeanReference(type = com.liferay.portal.service.LayoutLocalService.class)
501            protected com.liferay.portal.service.LayoutLocalService layoutLocalService;
502            @BeanReference(type = com.liferay.portal.service.LayoutService.class)
503            protected com.liferay.portal.service.LayoutService layoutService;
504            @BeanReference(type = LayoutPersistence.class)
505            protected LayoutPersistence layoutPersistence;
506            @BeanReference(type = LayoutFinder.class)
507            protected LayoutFinder layoutFinder;
508            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
509            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
510            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
511            protected com.liferay.portal.service.UserLocalService userLocalService;
512            @BeanReference(type = com.liferay.portal.service.UserService.class)
513            protected com.liferay.portal.service.UserService userService;
514            @BeanReference(type = UserPersistence.class)
515            protected UserPersistence userPersistence;
516            @BeanReference(type = UserFinder.class)
517            protected UserFinder userFinder;
518    }