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