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