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