001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.exportimport.service.base;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.dao.db.DB;
021    import com.liferay.portal.kernel.dao.db.DBManagerUtil;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
024    import com.liferay.portal.kernel.exception.SystemException;
025    import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
026    import com.liferay.portal.kernel.util.InfrastructureUtil;
027    import com.liferay.portal.service.BaseLocalServiceImpl;
028    import com.liferay.portal.service.persistence.ClassNamePersistence;
029    import com.liferay.portal.service.persistence.GroupFinder;
030    import com.liferay.portal.service.persistence.GroupPersistence;
031    import com.liferay.portal.service.persistence.LayoutFinder;
032    import com.liferay.portal.service.persistence.LayoutPersistence;
033    import com.liferay.portal.service.persistence.LayoutRevisionPersistence;
034    import com.liferay.portal.service.persistence.LayoutSetBranchPersistence;
035    import com.liferay.portal.service.persistence.LayoutSetPersistence;
036    import com.liferay.portal.service.persistence.PortletPreferencesFinder;
037    import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
038    import com.liferay.portal.service.persistence.UserFinder;
039    import com.liferay.portal.service.persistence.UserPersistence;
040    import com.liferay.portal.util.PortalUtil;
041    
042    import com.liferay.portlet.exportimport.service.StagingLocalService;
043    import com.liferay.portlet.exportimport.service.persistence.ExportImportConfigurationFinder;
044    import com.liferay.portlet.exportimport.service.persistence.ExportImportConfigurationPersistence;
045    
046    import javax.sql.DataSource;
047    
048    /**
049     * Provides the base implementation for the staging local service.
050     *
051     * <p>
052     * 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.StagingLocalServiceImpl}.
053     * </p>
054     *
055     * @author Brian Wing Shun Chan
056     * @see com.liferay.portlet.exportimport.service.impl.StagingLocalServiceImpl
057     * @see com.liferay.portlet.exportimport.service.StagingLocalServiceUtil
058     * @generated
059     */
060    @ProviderType
061    public abstract class StagingLocalServiceBaseImpl extends BaseLocalServiceImpl
062            implements StagingLocalService, IdentifiableOSGiService {
063            /*
064             * NOTE FOR DEVELOPERS:
065             *
066             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.exportimport.service.StagingLocalServiceUtil} to access the staging local service.
067             */
068    
069            /**
070             * Returns the export import local service.
071             *
072             * @return the export import local service
073             */
074            public com.liferay.portlet.exportimport.service.ExportImportLocalService getExportImportLocalService() {
075                    return exportImportLocalService;
076            }
077    
078            /**
079             * Sets the export import local service.
080             *
081             * @param exportImportLocalService the export import local service
082             */
083            public void setExportImportLocalService(
084                    com.liferay.portlet.exportimport.service.ExportImportLocalService exportImportLocalService) {
085                    this.exportImportLocalService = exportImportLocalService;
086            }
087    
088            /**
089             * Returns the export import configuration local service.
090             *
091             * @return the export import configuration local service
092             */
093            public com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService getExportImportConfigurationLocalService() {
094                    return exportImportConfigurationLocalService;
095            }
096    
097            /**
098             * Sets the export import configuration local service.
099             *
100             * @param exportImportConfigurationLocalService the export import configuration local service
101             */
102            public void setExportImportConfigurationLocalService(
103                    com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService) {
104                    this.exportImportConfigurationLocalService = exportImportConfigurationLocalService;
105            }
106    
107            /**
108             * Returns the export import configuration persistence.
109             *
110             * @return the export import configuration persistence
111             */
112            public ExportImportConfigurationPersistence getExportImportConfigurationPersistence() {
113                    return exportImportConfigurationPersistence;
114            }
115    
116            /**
117             * Sets the export import configuration persistence.
118             *
119             * @param exportImportConfigurationPersistence the export import configuration persistence
120             */
121            public void setExportImportConfigurationPersistence(
122                    ExportImportConfigurationPersistence exportImportConfigurationPersistence) {
123                    this.exportImportConfigurationPersistence = exportImportConfigurationPersistence;
124            }
125    
126            /**
127             * Returns the export import configuration finder.
128             *
129             * @return the export import configuration finder
130             */
131            public ExportImportConfigurationFinder getExportImportConfigurationFinder() {
132                    return exportImportConfigurationFinder;
133            }
134    
135            /**
136             * Sets the export import configuration finder.
137             *
138             * @param exportImportConfigurationFinder the export import configuration finder
139             */
140            public void setExportImportConfigurationFinder(
141                    ExportImportConfigurationFinder exportImportConfigurationFinder) {
142                    this.exportImportConfigurationFinder = exportImportConfigurationFinder;
143            }
144    
145            /**
146             * Returns the staging local service.
147             *
148             * @return the staging local service
149             */
150            public StagingLocalService getStagingLocalService() {
151                    return stagingLocalService;
152            }
153    
154            /**
155             * Sets the staging local service.
156             *
157             * @param stagingLocalService the staging local service
158             */
159            public void setStagingLocalService(StagingLocalService stagingLocalService) {
160                    this.stagingLocalService = stagingLocalService;
161            }
162    
163            /**
164             * Returns the counter local service.
165             *
166             * @return the counter local service
167             */
168            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
169                    return counterLocalService;
170            }
171    
172            /**
173             * Sets the counter local service.
174             *
175             * @param counterLocalService the counter local service
176             */
177            public void setCounterLocalService(
178                    com.liferay.counter.service.CounterLocalService counterLocalService) {
179                    this.counterLocalService = counterLocalService;
180            }
181    
182            /**
183             * Returns the class name local service.
184             *
185             * @return the class name local service
186             */
187            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
188                    return classNameLocalService;
189            }
190    
191            /**
192             * Sets the class name local service.
193             *
194             * @param classNameLocalService the class name local service
195             */
196            public void setClassNameLocalService(
197                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
198                    this.classNameLocalService = classNameLocalService;
199            }
200    
201            /**
202             * Returns the class name persistence.
203             *
204             * @return the class name persistence
205             */
206            public ClassNamePersistence getClassNamePersistence() {
207                    return classNamePersistence;
208            }
209    
210            /**
211             * Sets the class name persistence.
212             *
213             * @param classNamePersistence the class name persistence
214             */
215            public void setClassNamePersistence(
216                    ClassNamePersistence classNamePersistence) {
217                    this.classNamePersistence = classNamePersistence;
218            }
219    
220            /**
221             * Returns the group local service.
222             *
223             * @return the group local service
224             */
225            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
226                    return groupLocalService;
227            }
228    
229            /**
230             * Sets the group local service.
231             *
232             * @param groupLocalService the group local service
233             */
234            public void setGroupLocalService(
235                    com.liferay.portal.service.GroupLocalService groupLocalService) {
236                    this.groupLocalService = groupLocalService;
237            }
238    
239            /**
240             * Returns the group persistence.
241             *
242             * @return the group persistence
243             */
244            public GroupPersistence getGroupPersistence() {
245                    return groupPersistence;
246            }
247    
248            /**
249             * Sets the group persistence.
250             *
251             * @param groupPersistence the group persistence
252             */
253            public void setGroupPersistence(GroupPersistence groupPersistence) {
254                    this.groupPersistence = groupPersistence;
255            }
256    
257            /**
258             * Returns the group finder.
259             *
260             * @return the group finder
261             */
262            public GroupFinder getGroupFinder() {
263                    return groupFinder;
264            }
265    
266            /**
267             * Sets the group finder.
268             *
269             * @param groupFinder the group finder
270             */
271            public void setGroupFinder(GroupFinder groupFinder) {
272                    this.groupFinder = groupFinder;
273            }
274    
275            /**
276             * Returns the layout local service.
277             *
278             * @return the layout local service
279             */
280            public com.liferay.portal.service.LayoutLocalService getLayoutLocalService() {
281                    return layoutLocalService;
282            }
283    
284            /**
285             * Sets the layout local service.
286             *
287             * @param layoutLocalService the layout local service
288             */
289            public void setLayoutLocalService(
290                    com.liferay.portal.service.LayoutLocalService layoutLocalService) {
291                    this.layoutLocalService = layoutLocalService;
292            }
293    
294            /**
295             * Returns the layout persistence.
296             *
297             * @return the layout persistence
298             */
299            public LayoutPersistence getLayoutPersistence() {
300                    return layoutPersistence;
301            }
302    
303            /**
304             * Sets the layout persistence.
305             *
306             * @param layoutPersistence the layout persistence
307             */
308            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
309                    this.layoutPersistence = layoutPersistence;
310            }
311    
312            /**
313             * Returns the layout finder.
314             *
315             * @return the layout finder
316             */
317            public LayoutFinder getLayoutFinder() {
318                    return layoutFinder;
319            }
320    
321            /**
322             * Sets the layout finder.
323             *
324             * @param layoutFinder the layout finder
325             */
326            public void setLayoutFinder(LayoutFinder layoutFinder) {
327                    this.layoutFinder = layoutFinder;
328            }
329    
330            /**
331             * Returns the layout revision local service.
332             *
333             * @return the layout revision local service
334             */
335            public com.liferay.portal.service.LayoutRevisionLocalService getLayoutRevisionLocalService() {
336                    return layoutRevisionLocalService;
337            }
338    
339            /**
340             * Sets the layout revision local service.
341             *
342             * @param layoutRevisionLocalService the layout revision local service
343             */
344            public void setLayoutRevisionLocalService(
345                    com.liferay.portal.service.LayoutRevisionLocalService layoutRevisionLocalService) {
346                    this.layoutRevisionLocalService = layoutRevisionLocalService;
347            }
348    
349            /**
350             * Returns the layout revision persistence.
351             *
352             * @return the layout revision persistence
353             */
354            public LayoutRevisionPersistence getLayoutRevisionPersistence() {
355                    return layoutRevisionPersistence;
356            }
357    
358            /**
359             * Sets the layout revision persistence.
360             *
361             * @param layoutRevisionPersistence the layout revision persistence
362             */
363            public void setLayoutRevisionPersistence(
364                    LayoutRevisionPersistence layoutRevisionPersistence) {
365                    this.layoutRevisionPersistence = layoutRevisionPersistence;
366            }
367    
368            /**
369             * Returns the layout set local service.
370             *
371             * @return the layout set local service
372             */
373            public com.liferay.portal.service.LayoutSetLocalService getLayoutSetLocalService() {
374                    return layoutSetLocalService;
375            }
376    
377            /**
378             * Sets the layout set local service.
379             *
380             * @param layoutSetLocalService the layout set local service
381             */
382            public void setLayoutSetLocalService(
383                    com.liferay.portal.service.LayoutSetLocalService layoutSetLocalService) {
384                    this.layoutSetLocalService = layoutSetLocalService;
385            }
386    
387            /**
388             * Returns the layout set persistence.
389             *
390             * @return the layout set persistence
391             */
392            public LayoutSetPersistence getLayoutSetPersistence() {
393                    return layoutSetPersistence;
394            }
395    
396            /**
397             * Sets the layout set persistence.
398             *
399             * @param layoutSetPersistence the layout set persistence
400             */
401            public void setLayoutSetPersistence(
402                    LayoutSetPersistence layoutSetPersistence) {
403                    this.layoutSetPersistence = layoutSetPersistence;
404            }
405    
406            /**
407             * Returns the layout set branch local service.
408             *
409             * @return the layout set branch local service
410             */
411            public com.liferay.portal.service.LayoutSetBranchLocalService getLayoutSetBranchLocalService() {
412                    return layoutSetBranchLocalService;
413            }
414    
415            /**
416             * Sets the layout set branch local service.
417             *
418             * @param layoutSetBranchLocalService the layout set branch local service
419             */
420            public void setLayoutSetBranchLocalService(
421                    com.liferay.portal.service.LayoutSetBranchLocalService layoutSetBranchLocalService) {
422                    this.layoutSetBranchLocalService = layoutSetBranchLocalService;
423            }
424    
425            /**
426             * Returns the layout set branch persistence.
427             *
428             * @return the layout set branch persistence
429             */
430            public LayoutSetBranchPersistence getLayoutSetBranchPersistence() {
431                    return layoutSetBranchPersistence;
432            }
433    
434            /**
435             * Sets the layout set branch persistence.
436             *
437             * @param layoutSetBranchPersistence the layout set branch persistence
438             */
439            public void setLayoutSetBranchPersistence(
440                    LayoutSetBranchPersistence layoutSetBranchPersistence) {
441                    this.layoutSetBranchPersistence = layoutSetBranchPersistence;
442            }
443    
444            /**
445             * Returns the portlet preferences local service.
446             *
447             * @return the portlet preferences local service
448             */
449            public com.liferay.portal.service.PortletPreferencesLocalService getPortletPreferencesLocalService() {
450                    return portletPreferencesLocalService;
451            }
452    
453            /**
454             * Sets the portlet preferences local service.
455             *
456             * @param portletPreferencesLocalService the portlet preferences local service
457             */
458            public void setPortletPreferencesLocalService(
459                    com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService) {
460                    this.portletPreferencesLocalService = portletPreferencesLocalService;
461            }
462    
463            /**
464             * Returns the portlet preferences persistence.
465             *
466             * @return the portlet preferences persistence
467             */
468            public PortletPreferencesPersistence getPortletPreferencesPersistence() {
469                    return portletPreferencesPersistence;
470            }
471    
472            /**
473             * Sets the portlet preferences persistence.
474             *
475             * @param portletPreferencesPersistence the portlet preferences persistence
476             */
477            public void setPortletPreferencesPersistence(
478                    PortletPreferencesPersistence portletPreferencesPersistence) {
479                    this.portletPreferencesPersistence = portletPreferencesPersistence;
480            }
481    
482            /**
483             * Returns the portlet preferences finder.
484             *
485             * @return the portlet preferences finder
486             */
487            public PortletPreferencesFinder getPortletPreferencesFinder() {
488                    return portletPreferencesFinder;
489            }
490    
491            /**
492             * Sets the portlet preferences finder.
493             *
494             * @param portletPreferencesFinder the portlet preferences finder
495             */
496            public void setPortletPreferencesFinder(
497                    PortletPreferencesFinder portletPreferencesFinder) {
498                    this.portletPreferencesFinder = portletPreferencesFinder;
499            }
500    
501            /**
502             * Returns the resource local service.
503             *
504             * @return the resource local service
505             */
506            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
507                    return resourceLocalService;
508            }
509    
510            /**
511             * Sets the resource local service.
512             *
513             * @param resourceLocalService the resource local service
514             */
515            public void setResourceLocalService(
516                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
517                    this.resourceLocalService = resourceLocalService;
518            }
519    
520            /**
521             * Returns the user local service.
522             *
523             * @return the user local service
524             */
525            public com.liferay.portal.service.UserLocalService getUserLocalService() {
526                    return userLocalService;
527            }
528    
529            /**
530             * Sets the user local service.
531             *
532             * @param userLocalService the user local service
533             */
534            public void setUserLocalService(
535                    com.liferay.portal.service.UserLocalService userLocalService) {
536                    this.userLocalService = userLocalService;
537            }
538    
539            /**
540             * Returns the user persistence.
541             *
542             * @return the user persistence
543             */
544            public UserPersistence getUserPersistence() {
545                    return userPersistence;
546            }
547    
548            /**
549             * Sets the user persistence.
550             *
551             * @param userPersistence the user persistence
552             */
553            public void setUserPersistence(UserPersistence userPersistence) {
554                    this.userPersistence = userPersistence;
555            }
556    
557            /**
558             * Returns the user finder.
559             *
560             * @return the user finder
561             */
562            public UserFinder getUserFinder() {
563                    return userFinder;
564            }
565    
566            /**
567             * Sets the user finder.
568             *
569             * @param userFinder the user finder
570             */
571            public void setUserFinder(UserFinder userFinder) {
572                    this.userFinder = userFinder;
573            }
574    
575            public void afterPropertiesSet() {
576            }
577    
578            public void destroy() {
579            }
580    
581            /**
582             * Returns the OSGi service identifier.
583             *
584             * @return the OSGi service identifier
585             */
586            @Override
587            public String getOSGiServiceIdentifier() {
588                    return StagingLocalService.class.getName();
589            }
590    
591            /**
592             * Performs a SQL query.
593             *
594             * @param sql the sql query
595             */
596            protected void runSQL(String sql) {
597                    try {
598                            DataSource dataSource = InfrastructureUtil.getDataSource();
599    
600                            DB db = DBManagerUtil.getDB();
601    
602                            sql = db.buildSQL(sql);
603                            sql = PortalUtil.transformSQL(sql);
604    
605                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
606                                            sql, new int[0]);
607    
608                            sqlUpdate.update();
609                    }
610                    catch (Exception e) {
611                            throw new SystemException(e);
612                    }
613            }
614    
615            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportLocalService.class)
616            protected com.liferay.portlet.exportimport.service.ExportImportLocalService exportImportLocalService;
617            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService.class)
618            protected com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService;
619            @BeanReference(type = ExportImportConfigurationPersistence.class)
620            protected ExportImportConfigurationPersistence exportImportConfigurationPersistence;
621            @BeanReference(type = ExportImportConfigurationFinder.class)
622            protected ExportImportConfigurationFinder exportImportConfigurationFinder;
623            @BeanReference(type = com.liferay.portlet.exportimport.service.StagingLocalService.class)
624            protected StagingLocalService stagingLocalService;
625            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
626            protected com.liferay.counter.service.CounterLocalService counterLocalService;
627            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
628            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
629            @BeanReference(type = ClassNamePersistence.class)
630            protected ClassNamePersistence classNamePersistence;
631            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
632            protected com.liferay.portal.service.GroupLocalService groupLocalService;
633            @BeanReference(type = GroupPersistence.class)
634            protected GroupPersistence groupPersistence;
635            @BeanReference(type = GroupFinder.class)
636            protected GroupFinder groupFinder;
637            @BeanReference(type = com.liferay.portal.service.LayoutLocalService.class)
638            protected com.liferay.portal.service.LayoutLocalService layoutLocalService;
639            @BeanReference(type = LayoutPersistence.class)
640            protected LayoutPersistence layoutPersistence;
641            @BeanReference(type = LayoutFinder.class)
642            protected LayoutFinder layoutFinder;
643            @BeanReference(type = com.liferay.portal.service.LayoutRevisionLocalService.class)
644            protected com.liferay.portal.service.LayoutRevisionLocalService layoutRevisionLocalService;
645            @BeanReference(type = LayoutRevisionPersistence.class)
646            protected LayoutRevisionPersistence layoutRevisionPersistence;
647            @BeanReference(type = com.liferay.portal.service.LayoutSetLocalService.class)
648            protected com.liferay.portal.service.LayoutSetLocalService layoutSetLocalService;
649            @BeanReference(type = LayoutSetPersistence.class)
650            protected LayoutSetPersistence layoutSetPersistence;
651            @BeanReference(type = com.liferay.portal.service.LayoutSetBranchLocalService.class)
652            protected com.liferay.portal.service.LayoutSetBranchLocalService layoutSetBranchLocalService;
653            @BeanReference(type = LayoutSetBranchPersistence.class)
654            protected LayoutSetBranchPersistence layoutSetBranchPersistence;
655            @BeanReference(type = com.liferay.portal.service.PortletPreferencesLocalService.class)
656            protected com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService;
657            @BeanReference(type = PortletPreferencesPersistence.class)
658            protected PortletPreferencesPersistence portletPreferencesPersistence;
659            @BeanReference(type = PortletPreferencesFinder.class)
660            protected PortletPreferencesFinder portletPreferencesFinder;
661            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
662            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
663            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
664            protected com.liferay.portal.service.UserLocalService userLocalService;
665            @BeanReference(type = UserPersistence.class)
666            protected UserPersistence userPersistence;
667            @BeanReference(type = UserFinder.class)
668            protected UserFinder userFinder;
669    }