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