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.bean.IdentifiableBean;
019    import com.liferay.portal.kernel.dao.db.DB;
020    import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023    import com.liferay.portal.kernel.exception.SystemException;
024    import com.liferay.portal.kernel.util.InfrastructureUtil;
025    import com.liferay.portal.service.BaseServiceImpl;
026    import com.liferay.portal.service.persistence.BackgroundTaskPersistence;
027    import com.liferay.portal.service.persistence.ClassNamePersistence;
028    import com.liferay.portal.service.persistence.LayoutFinder;
029    import com.liferay.portal.service.persistence.LayoutPersistence;
030    import com.liferay.portal.service.persistence.UserFinder;
031    import com.liferay.portal.service.persistence.UserPersistence;
032    import com.liferay.portal.util.PortalUtil;
033    
034    import com.liferay.portlet.exportimport.service.ExportImportService;
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, IdentifiableBean {
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 staging local service.
155             *
156             * @return the staging local service
157             */
158            public com.liferay.portlet.exportimport.service.StagingLocalService getStagingLocalService() {
159                    return stagingLocalService;
160            }
161    
162            /**
163             * Sets the staging local service.
164             *
165             * @param stagingLocalService the staging local service
166             */
167            public void setStagingLocalService(
168                    com.liferay.portlet.exportimport.service.StagingLocalService stagingLocalService) {
169                    this.stagingLocalService = stagingLocalService;
170            }
171    
172            /**
173             * Returns the staging remote service.
174             *
175             * @return the staging remote service
176             */
177            public com.liferay.portlet.exportimport.service.StagingService getStagingService() {
178                    return stagingService;
179            }
180    
181            /**
182             * Sets the staging remote service.
183             *
184             * @param stagingService the staging remote service
185             */
186            public void setStagingService(
187                    com.liferay.portlet.exportimport.service.StagingService stagingService) {
188                    this.stagingService = stagingService;
189            }
190    
191            /**
192             * Returns the counter local service.
193             *
194             * @return the counter local service
195             */
196            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
197                    return counterLocalService;
198            }
199    
200            /**
201             * Sets the counter local service.
202             *
203             * @param counterLocalService the counter local service
204             */
205            public void setCounterLocalService(
206                    com.liferay.counter.service.CounterLocalService counterLocalService) {
207                    this.counterLocalService = counterLocalService;
208            }
209    
210            /**
211             * Returns the background task local service.
212             *
213             * @return the background task local service
214             */
215            public com.liferay.portal.service.BackgroundTaskLocalService getBackgroundTaskLocalService() {
216                    return backgroundTaskLocalService;
217            }
218    
219            /**
220             * Sets the background task local service.
221             *
222             * @param backgroundTaskLocalService the background task local service
223             */
224            public void setBackgroundTaskLocalService(
225                    com.liferay.portal.service.BackgroundTaskLocalService backgroundTaskLocalService) {
226                    this.backgroundTaskLocalService = backgroundTaskLocalService;
227            }
228    
229            /**
230             * Returns the background task remote service.
231             *
232             * @return the background task remote service
233             */
234            public com.liferay.portal.service.BackgroundTaskService getBackgroundTaskService() {
235                    return backgroundTaskService;
236            }
237    
238            /**
239             * Sets the background task remote service.
240             *
241             * @param backgroundTaskService the background task remote service
242             */
243            public void setBackgroundTaskService(
244                    com.liferay.portal.service.BackgroundTaskService backgroundTaskService) {
245                    this.backgroundTaskService = backgroundTaskService;
246            }
247    
248            /**
249             * Returns the background task persistence.
250             *
251             * @return the background task persistence
252             */
253            public BackgroundTaskPersistence getBackgroundTaskPersistence() {
254                    return backgroundTaskPersistence;
255            }
256    
257            /**
258             * Sets the background task persistence.
259             *
260             * @param backgroundTaskPersistence the background task persistence
261             */
262            public void setBackgroundTaskPersistence(
263                    BackgroundTaskPersistence backgroundTaskPersistence) {
264                    this.backgroundTaskPersistence = backgroundTaskPersistence;
265            }
266    
267            /**
268             * Returns the class name local service.
269             *
270             * @return the class name local service
271             */
272            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
273                    return classNameLocalService;
274            }
275    
276            /**
277             * Sets the class name local service.
278             *
279             * @param classNameLocalService the class name local service
280             */
281            public void setClassNameLocalService(
282                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
283                    this.classNameLocalService = classNameLocalService;
284            }
285    
286            /**
287             * Returns the class name remote service.
288             *
289             * @return the class name remote service
290             */
291            public com.liferay.portal.service.ClassNameService getClassNameService() {
292                    return classNameService;
293            }
294    
295            /**
296             * Sets the class name remote service.
297             *
298             * @param classNameService the class name remote service
299             */
300            public void setClassNameService(
301                    com.liferay.portal.service.ClassNameService classNameService) {
302                    this.classNameService = classNameService;
303            }
304    
305            /**
306             * Returns the class name persistence.
307             *
308             * @return the class name persistence
309             */
310            public ClassNamePersistence getClassNamePersistence() {
311                    return classNamePersistence;
312            }
313    
314            /**
315             * Sets the class name persistence.
316             *
317             * @param classNamePersistence the class name persistence
318             */
319            public void setClassNamePersistence(
320                    ClassNamePersistence classNamePersistence) {
321                    this.classNamePersistence = classNamePersistence;
322            }
323    
324            /**
325             * Returns the layout local service.
326             *
327             * @return the layout local service
328             */
329            public com.liferay.portal.service.LayoutLocalService getLayoutLocalService() {
330                    return layoutLocalService;
331            }
332    
333            /**
334             * Sets the layout local service.
335             *
336             * @param layoutLocalService the layout local service
337             */
338            public void setLayoutLocalService(
339                    com.liferay.portal.service.LayoutLocalService layoutLocalService) {
340                    this.layoutLocalService = layoutLocalService;
341            }
342    
343            /**
344             * Returns the layout remote service.
345             *
346             * @return the layout remote service
347             */
348            public com.liferay.portal.service.LayoutService getLayoutService() {
349                    return layoutService;
350            }
351    
352            /**
353             * Sets the layout remote service.
354             *
355             * @param layoutService the layout remote service
356             */
357            public void setLayoutService(
358                    com.liferay.portal.service.LayoutService layoutService) {
359                    this.layoutService = layoutService;
360            }
361    
362            /**
363             * Returns the layout persistence.
364             *
365             * @return the layout persistence
366             */
367            public LayoutPersistence getLayoutPersistence() {
368                    return layoutPersistence;
369            }
370    
371            /**
372             * Sets the layout persistence.
373             *
374             * @param layoutPersistence the layout persistence
375             */
376            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
377                    this.layoutPersistence = layoutPersistence;
378            }
379    
380            /**
381             * Returns the layout finder.
382             *
383             * @return the layout finder
384             */
385            public LayoutFinder getLayoutFinder() {
386                    return layoutFinder;
387            }
388    
389            /**
390             * Sets the layout finder.
391             *
392             * @param layoutFinder the layout finder
393             */
394            public void setLayoutFinder(LayoutFinder layoutFinder) {
395                    this.layoutFinder = layoutFinder;
396            }
397    
398            /**
399             * Returns the resource local service.
400             *
401             * @return the resource local service
402             */
403            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
404                    return resourceLocalService;
405            }
406    
407            /**
408             * Sets the resource local service.
409             *
410             * @param resourceLocalService the resource local service
411             */
412            public void setResourceLocalService(
413                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
414                    this.resourceLocalService = resourceLocalService;
415            }
416    
417            /**
418             * Returns the user local service.
419             *
420             * @return the user local service
421             */
422            public com.liferay.portal.service.UserLocalService getUserLocalService() {
423                    return userLocalService;
424            }
425    
426            /**
427             * Sets the user local service.
428             *
429             * @param userLocalService the user local service
430             */
431            public void setUserLocalService(
432                    com.liferay.portal.service.UserLocalService userLocalService) {
433                    this.userLocalService = userLocalService;
434            }
435    
436            /**
437             * Returns the user remote service.
438             *
439             * @return the user remote service
440             */
441            public com.liferay.portal.service.UserService getUserService() {
442                    return userService;
443            }
444    
445            /**
446             * Sets the user remote service.
447             *
448             * @param userService the user remote service
449             */
450            public void setUserService(
451                    com.liferay.portal.service.UserService userService) {
452                    this.userService = userService;
453            }
454    
455            /**
456             * Returns the user persistence.
457             *
458             * @return the user persistence
459             */
460            public UserPersistence getUserPersistence() {
461                    return userPersistence;
462            }
463    
464            /**
465             * Sets the user persistence.
466             *
467             * @param userPersistence the user persistence
468             */
469            public void setUserPersistence(UserPersistence userPersistence) {
470                    this.userPersistence = userPersistence;
471            }
472    
473            /**
474             * Returns the user finder.
475             *
476             * @return the user finder
477             */
478            public UserFinder getUserFinder() {
479                    return userFinder;
480            }
481    
482            /**
483             * Sets the user finder.
484             *
485             * @param userFinder the user finder
486             */
487            public void setUserFinder(UserFinder userFinder) {
488                    this.userFinder = userFinder;
489            }
490    
491            public void afterPropertiesSet() {
492            }
493    
494            public void destroy() {
495            }
496    
497            /**
498             * Returns the Spring bean ID for this bean.
499             *
500             * @return the Spring bean ID for this bean
501             */
502            @Override
503            public String getBeanIdentifier() {
504                    return _beanIdentifier;
505            }
506    
507            /**
508             * Sets the Spring bean ID for this bean.
509             *
510             * @param beanIdentifier the Spring bean ID for this bean
511             */
512            @Override
513            public void setBeanIdentifier(String beanIdentifier) {
514                    _beanIdentifier = beanIdentifier;
515            }
516    
517            /**
518             * Performs a SQL query.
519             *
520             * @param sql the sql query
521             */
522            protected void runSQL(String sql) {
523                    try {
524                            DataSource dataSource = InfrastructureUtil.getDataSource();
525    
526                            DB db = DBFactoryUtil.getDB();
527    
528                            sql = db.buildSQL(sql);
529                            sql = PortalUtil.transformSQL(sql);
530    
531                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
532                                            sql, new int[0]);
533    
534                            sqlUpdate.update();
535                    }
536                    catch (Exception e) {
537                            throw new SystemException(e);
538                    }
539            }
540    
541            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportLocalService.class)
542            protected com.liferay.portlet.exportimport.service.ExportImportLocalService exportImportLocalService;
543            @BeanReference(type = ExportImportService.class)
544            protected ExportImportService exportImportService;
545            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService.class)
546            protected com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService;
547            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationService.class)
548            protected com.liferay.portlet.exportimport.service.ExportImportConfigurationService exportImportConfigurationService;
549            @BeanReference(type = ExportImportConfigurationPersistence.class)
550            protected ExportImportConfigurationPersistence exportImportConfigurationPersistence;
551            @BeanReference(type = com.liferay.portlet.exportimport.service.StagingLocalService.class)
552            protected com.liferay.portlet.exportimport.service.StagingLocalService stagingLocalService;
553            @BeanReference(type = com.liferay.portlet.exportimport.service.StagingService.class)
554            protected com.liferay.portlet.exportimport.service.StagingService stagingService;
555            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
556            protected com.liferay.counter.service.CounterLocalService counterLocalService;
557            @BeanReference(type = com.liferay.portal.service.BackgroundTaskLocalService.class)
558            protected com.liferay.portal.service.BackgroundTaskLocalService backgroundTaskLocalService;
559            @BeanReference(type = com.liferay.portal.service.BackgroundTaskService.class)
560            protected com.liferay.portal.service.BackgroundTaskService backgroundTaskService;
561            @BeanReference(type = BackgroundTaskPersistence.class)
562            protected BackgroundTaskPersistence backgroundTaskPersistence;
563            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
564            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
565            @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
566            protected com.liferay.portal.service.ClassNameService classNameService;
567            @BeanReference(type = ClassNamePersistence.class)
568            protected ClassNamePersistence classNamePersistence;
569            @BeanReference(type = com.liferay.portal.service.LayoutLocalService.class)
570            protected com.liferay.portal.service.LayoutLocalService layoutLocalService;
571            @BeanReference(type = com.liferay.portal.service.LayoutService.class)
572            protected com.liferay.portal.service.LayoutService layoutService;
573            @BeanReference(type = LayoutPersistence.class)
574            protected LayoutPersistence layoutPersistence;
575            @BeanReference(type = LayoutFinder.class)
576            protected LayoutFinder layoutFinder;
577            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
578            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
579            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
580            protected com.liferay.portal.service.UserLocalService userLocalService;
581            @BeanReference(type = com.liferay.portal.service.UserService.class)
582            protected com.liferay.portal.service.UserService userService;
583            @BeanReference(type = UserPersistence.class)
584            protected UserPersistence userPersistence;
585            @BeanReference(type = UserFinder.class)
586            protected UserFinder userFinder;
587            private String _beanIdentifier;
588    }