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