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