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.dao.orm.ActionableDynamicQuery;
025    import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
026    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
027    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
028    import com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery;
029    import com.liferay.portal.kernel.dao.orm.Projection;
030    import com.liferay.portal.kernel.exception.PortalException;
031    import com.liferay.portal.kernel.exception.SystemException;
032    import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
033    import com.liferay.portal.kernel.search.Indexable;
034    import com.liferay.portal.kernel.search.IndexableType;
035    import com.liferay.portal.kernel.util.OrderByComparator;
036    import com.liferay.portal.model.PersistedModel;
037    import com.liferay.portal.service.BaseLocalServiceImpl;
038    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
039    import com.liferay.portal.service.persistence.ClassNamePersistence;
040    import com.liferay.portal.service.persistence.UserFinder;
041    import com.liferay.portal.service.persistence.UserPersistence;
042    import com.liferay.portal.util.PortalUtil;
043    
044    import com.liferay.portlet.exportimport.model.ExportImportConfiguration;
045    import com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService;
046    import com.liferay.portlet.exportimport.service.persistence.ExportImportConfigurationFinder;
047    import com.liferay.portlet.exportimport.service.persistence.ExportImportConfigurationPersistence;
048    import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
049    
050    import java.io.Serializable;
051    
052    import java.util.List;
053    
054    import javax.sql.DataSource;
055    
056    /**
057     * Provides the base implementation for the export import configuration local service.
058     *
059     * <p>
060     * 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.ExportImportConfigurationLocalServiceImpl}.
061     * </p>
062     *
063     * @author Brian Wing Shun Chan
064     * @see com.liferay.portlet.exportimport.service.impl.ExportImportConfigurationLocalServiceImpl
065     * @see com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalServiceUtil
066     * @generated
067     */
068    @ProviderType
069    public abstract class ExportImportConfigurationLocalServiceBaseImpl
070            extends BaseLocalServiceImpl
071            implements ExportImportConfigurationLocalService, IdentifiableOSGiService {
072            /*
073             * NOTE FOR DEVELOPERS:
074             *
075             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalServiceUtil} to access the export import configuration local service.
076             */
077    
078            /**
079             * Adds the export import configuration to the database. Also notifies the appropriate model listeners.
080             *
081             * @param exportImportConfiguration the export import configuration
082             * @return the export import configuration that was added
083             */
084            @Indexable(type = IndexableType.REINDEX)
085            @Override
086            public ExportImportConfiguration addExportImportConfiguration(
087                    ExportImportConfiguration exportImportConfiguration) {
088                    exportImportConfiguration.setNew(true);
089    
090                    return exportImportConfigurationPersistence.update(exportImportConfiguration);
091            }
092    
093            /**
094             * Creates a new export import configuration with the primary key. Does not add the export import configuration to the database.
095             *
096             * @param exportImportConfigurationId the primary key for the new export import configuration
097             * @return the new export import configuration
098             */
099            @Override
100            public ExportImportConfiguration createExportImportConfiguration(
101                    long exportImportConfigurationId) {
102                    return exportImportConfigurationPersistence.create(exportImportConfigurationId);
103            }
104    
105            /**
106             * Deletes the export import configuration with the primary key from the database. Also notifies the appropriate model listeners.
107             *
108             * @param exportImportConfigurationId the primary key of the export import configuration
109             * @return the export import configuration that was removed
110             * @throws PortalException if a export import configuration with the primary key could not be found
111             */
112            @Indexable(type = IndexableType.DELETE)
113            @Override
114            public ExportImportConfiguration deleteExportImportConfiguration(
115                    long exportImportConfigurationId) throws PortalException {
116                    return exportImportConfigurationPersistence.remove(exportImportConfigurationId);
117            }
118    
119            /**
120             * Deletes the export import configuration from the database. Also notifies the appropriate model listeners.
121             *
122             * @param exportImportConfiguration the export import configuration
123             * @return the export import configuration that was removed
124             */
125            @Indexable(type = IndexableType.DELETE)
126            @Override
127            public ExportImportConfiguration deleteExportImportConfiguration(
128                    ExportImportConfiguration exportImportConfiguration) {
129                    return exportImportConfigurationPersistence.remove(exportImportConfiguration);
130            }
131    
132            @Override
133            public DynamicQuery dynamicQuery() {
134                    Class<?> clazz = getClass();
135    
136                    return DynamicQueryFactoryUtil.forClass(ExportImportConfiguration.class,
137                            clazz.getClassLoader());
138            }
139    
140            /**
141             * Performs a dynamic query on the database and returns the matching rows.
142             *
143             * @param dynamicQuery the dynamic query
144             * @return the matching rows
145             */
146            @Override
147            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
148                    return exportImportConfigurationPersistence.findWithDynamicQuery(dynamicQuery);
149            }
150    
151            /**
152             * Performs a dynamic query on the database and returns a range of the matching rows.
153             *
154             * <p>
155             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.exportimport.model.impl.ExportImportConfigurationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
156             * </p>
157             *
158             * @param dynamicQuery the dynamic query
159             * @param start the lower bound of the range of model instances
160             * @param end the upper bound of the range of model instances (not inclusive)
161             * @return the range of matching rows
162             */
163            @Override
164            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
165                    int end) {
166                    return exportImportConfigurationPersistence.findWithDynamicQuery(dynamicQuery,
167                            start, end);
168            }
169    
170            /**
171             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
172             *
173             * <p>
174             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.exportimport.model.impl.ExportImportConfigurationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
175             * </p>
176             *
177             * @param dynamicQuery the dynamic query
178             * @param start the lower bound of the range of model instances
179             * @param end the upper bound of the range of model instances (not inclusive)
180             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
181             * @return the ordered range of matching rows
182             */
183            @Override
184            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
185                    int end, OrderByComparator<T> orderByComparator) {
186                    return exportImportConfigurationPersistence.findWithDynamicQuery(dynamicQuery,
187                            start, end, orderByComparator);
188            }
189    
190            /**
191             * Returns the number of rows matching the dynamic query.
192             *
193             * @param dynamicQuery the dynamic query
194             * @return the number of rows matching the dynamic query
195             */
196            @Override
197            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
198                    return exportImportConfigurationPersistence.countWithDynamicQuery(dynamicQuery);
199            }
200    
201            /**
202             * Returns the number of rows matching the dynamic query.
203             *
204             * @param dynamicQuery the dynamic query
205             * @param projection the projection to apply to the query
206             * @return the number of rows matching the dynamic query
207             */
208            @Override
209            public long dynamicQueryCount(DynamicQuery dynamicQuery,
210                    Projection projection) {
211                    return exportImportConfigurationPersistence.countWithDynamicQuery(dynamicQuery,
212                            projection);
213            }
214    
215            @Override
216            public ExportImportConfiguration fetchExportImportConfiguration(
217                    long exportImportConfigurationId) {
218                    return exportImportConfigurationPersistence.fetchByPrimaryKey(exportImportConfigurationId);
219            }
220    
221            /**
222             * Returns the export import configuration with the primary key.
223             *
224             * @param exportImportConfigurationId the primary key of the export import configuration
225             * @return the export import configuration
226             * @throws PortalException if a export import configuration with the primary key could not be found
227             */
228            @Override
229            public ExportImportConfiguration getExportImportConfiguration(
230                    long exportImportConfigurationId) throws PortalException {
231                    return exportImportConfigurationPersistence.findByPrimaryKey(exportImportConfigurationId);
232            }
233    
234            @Override
235            public ActionableDynamicQuery getActionableDynamicQuery() {
236                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
237    
238                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalServiceUtil.getService());
239                    actionableDynamicQuery.setClassLoader(getClassLoader());
240                    actionableDynamicQuery.setModelClass(ExportImportConfiguration.class);
241    
242                    actionableDynamicQuery.setPrimaryKeyPropertyName(
243                            "exportImportConfigurationId");
244    
245                    return actionableDynamicQuery;
246            }
247    
248            @Override
249            public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
250                    IndexableActionableDynamicQuery indexableActionableDynamicQuery = new IndexableActionableDynamicQuery();
251    
252                    indexableActionableDynamicQuery.setBaseLocalService(com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalServiceUtil.getService());
253                    indexableActionableDynamicQuery.setClassLoader(getClassLoader());
254                    indexableActionableDynamicQuery.setModelClass(ExportImportConfiguration.class);
255    
256                    indexableActionableDynamicQuery.setPrimaryKeyPropertyName(
257                            "exportImportConfigurationId");
258    
259                    return indexableActionableDynamicQuery;
260            }
261    
262            protected void initActionableDynamicQuery(
263                    ActionableDynamicQuery actionableDynamicQuery) {
264                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalServiceUtil.getService());
265                    actionableDynamicQuery.setClassLoader(getClassLoader());
266                    actionableDynamicQuery.setModelClass(ExportImportConfiguration.class);
267    
268                    actionableDynamicQuery.setPrimaryKeyPropertyName(
269                            "exportImportConfigurationId");
270            }
271    
272            /**
273             * @throws PortalException
274             */
275            @Override
276            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
277                    throws PortalException {
278                    return exportImportConfigurationLocalService.deleteExportImportConfiguration((ExportImportConfiguration)persistedModel);
279            }
280    
281            @Override
282            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
283                    throws PortalException {
284                    return exportImportConfigurationPersistence.findByPrimaryKey(primaryKeyObj);
285            }
286    
287            /**
288             * Returns a range of all the export import configurations.
289             *
290             * <p>
291             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.exportimport.model.impl.ExportImportConfigurationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
292             * </p>
293             *
294             * @param start the lower bound of the range of export import configurations
295             * @param end the upper bound of the range of export import configurations (not inclusive)
296             * @return the range of export import configurations
297             */
298            @Override
299            public List<ExportImportConfiguration> getExportImportConfigurations(
300                    int start, int end) {
301                    return exportImportConfigurationPersistence.findAll(start, end);
302            }
303    
304            /**
305             * Returns the number of export import configurations.
306             *
307             * @return the number of export import configurations
308             */
309            @Override
310            public int getExportImportConfigurationsCount() {
311                    return exportImportConfigurationPersistence.countAll();
312            }
313    
314            /**
315             * Updates the export import configuration in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
316             *
317             * @param exportImportConfiguration the export import configuration
318             * @return the export import configuration that was updated
319             */
320            @Indexable(type = IndexableType.REINDEX)
321            @Override
322            public ExportImportConfiguration updateExportImportConfiguration(
323                    ExportImportConfiguration exportImportConfiguration) {
324                    return exportImportConfigurationPersistence.update(exportImportConfiguration);
325            }
326    
327            /**
328             * Returns the export import local service.
329             *
330             * @return the export import local service
331             */
332            public com.liferay.portlet.exportimport.service.ExportImportLocalService getExportImportLocalService() {
333                    return exportImportLocalService;
334            }
335    
336            /**
337             * Sets the export import local service.
338             *
339             * @param exportImportLocalService the export import local service
340             */
341            public void setExportImportLocalService(
342                    com.liferay.portlet.exportimport.service.ExportImportLocalService exportImportLocalService) {
343                    this.exportImportLocalService = exportImportLocalService;
344            }
345    
346            /**
347             * Returns the export import configuration local service.
348             *
349             * @return the export import configuration local service
350             */
351            public ExportImportConfigurationLocalService getExportImportConfigurationLocalService() {
352                    return exportImportConfigurationLocalService;
353            }
354    
355            /**
356             * Sets the export import configuration local service.
357             *
358             * @param exportImportConfigurationLocalService the export import configuration local service
359             */
360            public void setExportImportConfigurationLocalService(
361                    ExportImportConfigurationLocalService exportImportConfigurationLocalService) {
362                    this.exportImportConfigurationLocalService = exportImportConfigurationLocalService;
363            }
364    
365            /**
366             * Returns the export import configuration persistence.
367             *
368             * @return the export import configuration persistence
369             */
370            public ExportImportConfigurationPersistence getExportImportConfigurationPersistence() {
371                    return exportImportConfigurationPersistence;
372            }
373    
374            /**
375             * Sets the export import configuration persistence.
376             *
377             * @param exportImportConfigurationPersistence the export import configuration persistence
378             */
379            public void setExportImportConfigurationPersistence(
380                    ExportImportConfigurationPersistence exportImportConfigurationPersistence) {
381                    this.exportImportConfigurationPersistence = exportImportConfigurationPersistence;
382            }
383    
384            /**
385             * Returns the export import configuration finder.
386             *
387             * @return the export import configuration finder
388             */
389            public ExportImportConfigurationFinder getExportImportConfigurationFinder() {
390                    return exportImportConfigurationFinder;
391            }
392    
393            /**
394             * Sets the export import configuration finder.
395             *
396             * @param exportImportConfigurationFinder the export import configuration finder
397             */
398            public void setExportImportConfigurationFinder(
399                    ExportImportConfigurationFinder exportImportConfigurationFinder) {
400                    this.exportImportConfigurationFinder = exportImportConfigurationFinder;
401            }
402    
403            /**
404             * Returns the staging local service.
405             *
406             * @return the staging local service
407             */
408            public com.liferay.portlet.exportimport.service.StagingLocalService getStagingLocalService() {
409                    return stagingLocalService;
410            }
411    
412            /**
413             * Sets the staging local service.
414             *
415             * @param stagingLocalService the staging local service
416             */
417            public void setStagingLocalService(
418                    com.liferay.portlet.exportimport.service.StagingLocalService stagingLocalService) {
419                    this.stagingLocalService = stagingLocalService;
420            }
421    
422            /**
423             * Returns the counter local service.
424             *
425             * @return the counter local service
426             */
427            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
428                    return counterLocalService;
429            }
430    
431            /**
432             * Sets the counter local service.
433             *
434             * @param counterLocalService the counter local service
435             */
436            public void setCounterLocalService(
437                    com.liferay.counter.service.CounterLocalService counterLocalService) {
438                    this.counterLocalService = counterLocalService;
439            }
440    
441            /**
442             * Returns the class name local service.
443             *
444             * @return the class name local service
445             */
446            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
447                    return classNameLocalService;
448            }
449    
450            /**
451             * Sets the class name local service.
452             *
453             * @param classNameLocalService the class name local service
454             */
455            public void setClassNameLocalService(
456                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
457                    this.classNameLocalService = classNameLocalService;
458            }
459    
460            /**
461             * Returns the class name persistence.
462             *
463             * @return the class name persistence
464             */
465            public ClassNamePersistence getClassNamePersistence() {
466                    return classNamePersistence;
467            }
468    
469            /**
470             * Sets the class name persistence.
471             *
472             * @param classNamePersistence the class name persistence
473             */
474            public void setClassNamePersistence(
475                    ClassNamePersistence classNamePersistence) {
476                    this.classNamePersistence = classNamePersistence;
477            }
478    
479            /**
480             * Returns the resource local service.
481             *
482             * @return the resource local service
483             */
484            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
485                    return resourceLocalService;
486            }
487    
488            /**
489             * Sets the resource local service.
490             *
491             * @param resourceLocalService the resource local service
492             */
493            public void setResourceLocalService(
494                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
495                    this.resourceLocalService = resourceLocalService;
496            }
497    
498            /**
499             * Returns the user local service.
500             *
501             * @return the user local service
502             */
503            public com.liferay.portal.service.UserLocalService getUserLocalService() {
504                    return userLocalService;
505            }
506    
507            /**
508             * Sets the user local service.
509             *
510             * @param userLocalService the user local service
511             */
512            public void setUserLocalService(
513                    com.liferay.portal.service.UserLocalService userLocalService) {
514                    this.userLocalService = userLocalService;
515            }
516    
517            /**
518             * Returns the user persistence.
519             *
520             * @return the user persistence
521             */
522            public UserPersistence getUserPersistence() {
523                    return userPersistence;
524            }
525    
526            /**
527             * Sets the user persistence.
528             *
529             * @param userPersistence the user persistence
530             */
531            public void setUserPersistence(UserPersistence userPersistence) {
532                    this.userPersistence = userPersistence;
533            }
534    
535            /**
536             * Returns the user finder.
537             *
538             * @return the user finder
539             */
540            public UserFinder getUserFinder() {
541                    return userFinder;
542            }
543    
544            /**
545             * Sets the user finder.
546             *
547             * @param userFinder the user finder
548             */
549            public void setUserFinder(UserFinder userFinder) {
550                    this.userFinder = userFinder;
551            }
552    
553            /**
554             * Returns the trash entry local service.
555             *
556             * @return the trash entry local service
557             */
558            public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
559                    return trashEntryLocalService;
560            }
561    
562            /**
563             * Sets the trash entry local service.
564             *
565             * @param trashEntryLocalService the trash entry local service
566             */
567            public void setTrashEntryLocalService(
568                    com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
569                    this.trashEntryLocalService = trashEntryLocalService;
570            }
571    
572            /**
573             * Returns the trash entry persistence.
574             *
575             * @return the trash entry persistence
576             */
577            public TrashEntryPersistence getTrashEntryPersistence() {
578                    return trashEntryPersistence;
579            }
580    
581            /**
582             * Sets the trash entry persistence.
583             *
584             * @param trashEntryPersistence the trash entry persistence
585             */
586            public void setTrashEntryPersistence(
587                    TrashEntryPersistence trashEntryPersistence) {
588                    this.trashEntryPersistence = trashEntryPersistence;
589            }
590    
591            public void afterPropertiesSet() {
592                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.exportimport.model.ExportImportConfiguration",
593                            exportImportConfigurationLocalService);
594            }
595    
596            public void destroy() {
597                    persistedModelLocalServiceRegistry.unregister(
598                            "com.liferay.portlet.exportimport.model.ExportImportConfiguration");
599            }
600    
601            /**
602             * Returns the OSGi service identifier.
603             *
604             * @return the OSGi service identifier
605             */
606            @Override
607            public String getOSGiServiceIdentifier() {
608                    return ExportImportConfigurationLocalService.class.getName();
609            }
610    
611            protected Class<?> getModelClass() {
612                    return ExportImportConfiguration.class;
613            }
614    
615            protected String getModelClassName() {
616                    return ExportImportConfiguration.class.getName();
617            }
618    
619            /**
620             * Performs a SQL query.
621             *
622             * @param sql the sql query
623             */
624            protected void runSQL(String sql) {
625                    try {
626                            DataSource dataSource = exportImportConfigurationPersistence.getDataSource();
627    
628                            DB db = DBManagerUtil.getDB();
629    
630                            sql = db.buildSQL(sql);
631                            sql = PortalUtil.transformSQL(sql);
632    
633                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
634                                            sql, new int[0]);
635    
636                            sqlUpdate.update();
637                    }
638                    catch (Exception e) {
639                            throw new SystemException(e);
640                    }
641            }
642    
643            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportLocalService.class)
644            protected com.liferay.portlet.exportimport.service.ExportImportLocalService exportImportLocalService;
645            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService.class)
646            protected ExportImportConfigurationLocalService exportImportConfigurationLocalService;
647            @BeanReference(type = ExportImportConfigurationPersistence.class)
648            protected ExportImportConfigurationPersistence exportImportConfigurationPersistence;
649            @BeanReference(type = ExportImportConfigurationFinder.class)
650            protected ExportImportConfigurationFinder exportImportConfigurationFinder;
651            @BeanReference(type = com.liferay.portlet.exportimport.service.StagingLocalService.class)
652            protected com.liferay.portlet.exportimport.service.StagingLocalService stagingLocalService;
653            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
654            protected com.liferay.counter.service.CounterLocalService counterLocalService;
655            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
656            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
657            @BeanReference(type = ClassNamePersistence.class)
658            protected ClassNamePersistence classNamePersistence;
659            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
660            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
661            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
662            protected com.liferay.portal.service.UserLocalService userLocalService;
663            @BeanReference(type = UserPersistence.class)
664            protected UserPersistence userPersistence;
665            @BeanReference(type = UserFinder.class)
666            protected UserFinder userFinder;
667            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
668            protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
669            @BeanReference(type = TrashEntryPersistence.class)
670            protected TrashEntryPersistence trashEntryPersistence;
671            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
672            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
673    }