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