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