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;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the remote service utility for SocialActivity. This utility wraps
024     * {@link com.liferay.portlet.social.service.impl.SocialActivityServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
029     *
030     * @author Brian Wing Shun Chan
031     * @see SocialActivityService
032     * @see com.liferay.portlet.social.service.base.SocialActivityServiceBaseImpl
033     * @see com.liferay.portlet.social.service.impl.SocialActivityServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class SocialActivityServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.social.service.impl.SocialActivityServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043    
044            /**
045            * Returns a range of all the activities done on assets identified by the
046            * class name.
047            *
048            * <p>
049            * Useful when paginating results. Returns a maximum of <code>end -
050            * start</code> instances. <code>start</code> and <code>end</code> are not
051            * primary keys, they are indexes in the result set. Thus, <code>0</code>
052            * refers to the first result in the set. Setting both <code>start</code>
053            * and <code>end</code> to {@link
054            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
055            * result set.
056            * </p>
057            *
058            * @param className the target asset's class name
059            * @param start the lower bound of the range of results
060            * @param end the upper bound of the range of results (not inclusive)
061            * @return the range of matching activities
062            * @throws PortalException if a permission checker was not initialized
063            */
064            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
065                    java.lang.String className, int start, int end)
066                    throws com.liferay.portal.kernel.exception.PortalException {
067                    return getService().getActivities(className, start, end);
068            }
069    
070            /**
071            * Returns a range of all the activities done on assets identified by the
072            * class name ID.
073            *
074            * <p>
075            * Useful when paginating results. Returns a maximum of <code>end -
076            * start</code> instances. <code>start</code> and <code>end</code> are not
077            * primary keys, they are indexes in the result set. Thus, <code>0</code>
078            * refers to the first result in the set. Setting both <code>start</code>
079            * and <code>end</code> to {@link
080            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
081            * result set.
082            * </p>
083            *
084            * @param classNameId the target asset's class name ID
085            * @param start the lower bound of the range of results
086            * @param end the upper bound of the range of results (not inclusive)
087            * @return the range of matching activities
088            * @throws PortalException if a permission checker was not initialized
089            */
090            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
091                    long classNameId, int start, int end)
092                    throws com.liferay.portal.kernel.exception.PortalException {
093                    return getService().getActivities(classNameId, start, end);
094            }
095    
096            /**
097            * Returns a range of all the activities done on the asset identified by the
098            * class name and the class primary key that are mirrors of the activity
099            * identified by the mirror activity ID.
100            *
101            * <p>
102            * Useful when paginating results. Returns a maximum of <code>end -
103            * start</code> instances. <code>start</code> and <code>end</code> are not
104            * primary keys, they are indexes in the result set. Thus, <code>0</code>
105            * refers to the first result in the set. Setting both <code>start</code>
106            * and <code>end</code> to {@link
107            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
108            * result set.
109            * </p>
110            *
111            * @param mirrorActivityId the primary key of the mirror activity
112            * @param className the target asset's class name
113            * @param classPK the primary key of the target asset
114            * @param start the lower bound of the range of results
115            * @param end the upper bound of the range of results (not inclusive)
116            * @return the range of matching activities
117            * @throws PortalException if a permission checker was not initialized
118            */
119            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
120                    long mirrorActivityId, java.lang.String className, long classPK,
121                    int start, int end)
122                    throws com.liferay.portal.kernel.exception.PortalException {
123                    return getService()
124                                       .getActivities(mirrorActivityId, className, classPK, start,
125                            end);
126            }
127    
128            /**
129            * Returns a range of all the activities done on the asset identified by the
130            * class name ID and class primary key that are mirrors of the activity
131            * identified by the mirror activity ID.
132            *
133            * <p>
134            * Useful when paginating results. Returns a maximum of <code>end -
135            * start</code> instances. <code>start</code> and <code>end</code> are not
136            * primary keys, they are indexes in the result set. Thus, <code>0</code>
137            * refers to the first result in the set. Setting both <code>start</code>
138            * and <code>end</code> to {@link
139            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
140            * result set.
141            * </p>
142            *
143            * @param mirrorActivityId the primary key of the mirror activity
144            * @param classNameId the target asset's class name ID
145            * @param classPK the primary key of the target asset
146            * @param start the lower bound of the range of results
147            * @param end the upper bound of the range of results (not inclusive)
148            * @return the range of matching activities
149            * @throws PortalException if a permission checker was not initialized
150            */
151            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
152                    long mirrorActivityId, long classNameId, long classPK, int start,
153                    int end) throws com.liferay.portal.kernel.exception.PortalException {
154                    return getService()
155                                       .getActivities(mirrorActivityId, classNameId, classPK,
156                            start, end);
157            }
158    
159            /**
160            * Returns the number of activities done on assets identified by class name.
161            *
162            * @param className the target asset's class name
163            * @return the number of matching activities
164            */
165            public static int getActivitiesCount(java.lang.String className) {
166                    return getService().getActivitiesCount(className);
167            }
168    
169            /**
170            * Returns the number of activities done on assets identified by the class
171            * name ID.
172            *
173            * @param classNameId the target asset's class name ID
174            * @return the number of matching activities
175            */
176            public static int getActivitiesCount(long classNameId) {
177                    return getService().getActivitiesCount(classNameId);
178            }
179    
180            /**
181            * Returns the number of activities done on the asset identified by the
182            * class name and class primary key that are mirrors of the activity
183            * identified by the mirror activity ID.
184            *
185            * @param mirrorActivityId the primary key of the mirror activity
186            * @param className the target asset's class name
187            * @param classPK the primary key of the target asset
188            * @return the number of matching activities
189            */
190            public static int getActivitiesCount(long mirrorActivityId,
191                    java.lang.String className, long classPK) {
192                    return getService()
193                                       .getActivitiesCount(mirrorActivityId, className, classPK);
194            }
195    
196            /**
197            * Returns the number of activities done on the asset identified by the
198            * class name ID and class primary key that are mirrors of the activity
199            * identified by the mirror activity ID.
200            *
201            * @param mirrorActivityId the primary key of the mirror activity
202            * @param classNameId the target asset's class name ID
203            * @param classPK the primary key of the target asset
204            * @return the number of matching activities
205            */
206            public static int getActivitiesCount(long mirrorActivityId,
207                    long classNameId, long classPK) {
208                    return getService()
209                                       .getActivitiesCount(mirrorActivityId, classNameId, classPK);
210            }
211    
212            /**
213            * Returns the activity identified by its primary key.
214            *
215            * @param activityId the primary key of the activity
216            * @return Returns the activity
217            * @throws PortalException if the activity could not be found
218            */
219            public static com.liferay.portlet.social.model.SocialActivity getActivity(
220                    long activityId)
221                    throws com.liferay.portal.kernel.exception.PortalException {
222                    return getService().getActivity(activityId);
223            }
224    
225            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivitySetActivities(
226                    long activitySetId, int start, int end)
227                    throws com.liferay.portal.kernel.exception.PortalException {
228                    return getService().getActivitySetActivities(activitySetId, start, end);
229            }
230    
231            /**
232            * Returns the Spring bean ID for this bean.
233            *
234            * @return the Spring bean ID for this bean
235            */
236            public static java.lang.String getBeanIdentifier() {
237                    return getService().getBeanIdentifier();
238            }
239    
240            /**
241            * Returns a range of all the activities done in the group.
242            *
243            * <p>
244            * This method only finds activities without mirrors.
245            * </p>
246            *
247            * <p>
248            * Useful when paginating results. Returns a maximum of <code>end -
249            * start</code> instances. <code>start</code> and <code>end</code> are not
250            * primary keys, they are indexes in the result set. Thus, <code>0</code>
251            * refers to the first result in the set. Setting both <code>start</code>
252            * and <code>end</code> to {@link
253            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
254            * result set.
255            * </p>
256            *
257            * @param groupId the primary key of the group
258            * @param start the lower bound of the range of results
259            * @param end the upper bound of the range of results (not inclusive)
260            * @return the range of matching activities
261            * @throws PortalException if a permission checker was not initialized
262            */
263            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupActivities(
264                    long groupId, int start, int end)
265                    throws com.liferay.portal.kernel.exception.PortalException {
266                    return getService().getGroupActivities(groupId, start, end);
267            }
268    
269            /**
270            * Returns the number of activities done in the group.
271            *
272            * <p>
273            * This method only counts activities without mirrors.
274            * </p>
275            *
276            * @param groupId the primary key of the group
277            * @return the number of matching activities
278            */
279            public static int getGroupActivitiesCount(long groupId) {
280                    return getService().getGroupActivitiesCount(groupId);
281            }
282    
283            /**
284            * Returns a range of activities done by users that are members of the
285            * group.
286            *
287            * <p>
288            * This method only finds activities without mirrors.
289            * </p>
290            *
291            * <p>
292            * Useful when paginating results. Returns a maximum of <code>end -
293            * start</code> instances. <code>start</code> and <code>end</code> are not
294            * primary keys, they are indexes in the result set. Thus, <code>0</code>
295            * refers to the first result in the set. Setting both <code>start</code>
296            * and <code>end</code> to {@link
297            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
298            * result set.
299            * </p>
300            *
301            * @param groupId the primary key of the group
302            * @param start the lower bound of the range of results
303            * @param end the upper bound of the range of results (not inclusive)
304            * @return the range of matching activities
305            * @throws PortalException if a permission checker was not initialized
306            */
307            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupUsersActivities(
308                    long groupId, int start, int end)
309                    throws com.liferay.portal.kernel.exception.PortalException {
310                    return getService().getGroupUsersActivities(groupId, start, end);
311            }
312    
313            /**
314            * Returns the number of activities done by users that are members of the
315            * group.
316            *
317            * <p>
318            * This method only counts activities without mirrors.
319            * </p>
320            *
321            * @param groupId the primary key of the group
322            * @return the number of matching activities
323            */
324            public static int getGroupUsersActivitiesCount(long groupId) {
325                    return getService().getGroupUsersActivitiesCount(groupId);
326            }
327    
328            /**
329            * Returns the activity that has the mirror activity.
330            *
331            * @param mirrorActivityId the primary key of the mirror activity
332            * @return Returns the mirror activity
333            * @throws PortalException if the mirror activity could not be found
334            */
335            public static com.liferay.portlet.social.model.SocialActivity getMirrorActivity(
336                    long mirrorActivityId)
337                    throws com.liferay.portal.kernel.exception.PortalException {
338                    return getService().getMirrorActivity(mirrorActivityId);
339            }
340    
341            /**
342            * Returns a range of all the activities done in the organization. This
343            * method only finds activities without mirrors.
344            *
345            * <p>
346            * Useful when paginating results. Returns a maximum of <code>end -
347            * start</code> instances. <code>start</code> and <code>end</code> are not
348            * primary keys, they are indexes in the result set. Thus, <code>0</code>
349            * refers to the first result in the set. Setting both <code>start</code>
350            * and <code>end</code> to {@link
351            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
352            * result set.
353            * </p>
354            *
355            * @param organizationId the primary key of the organization
356            * @param start the lower bound of the range of results
357            * @param end the upper bound of the range of results (not inclusive)
358            * @return the range of matching activities
359            * @throws PortalException if a permission checker was not initialized
360            */
361            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationActivities(
362                    long organizationId, int start, int end)
363                    throws com.liferay.portal.kernel.exception.PortalException {
364                    return getService().getOrganizationActivities(organizationId, start, end);
365            }
366    
367            /**
368            * Returns the number of activities done in the organization. This method
369            * only counts activities without mirrors.
370            *
371            * @param organizationId the primary key of the organization
372            * @return the number of matching activities
373            */
374            public static int getOrganizationActivitiesCount(long organizationId) {
375                    return getService().getOrganizationActivitiesCount(organizationId);
376            }
377    
378            /**
379            * Returns a range of all the activities done by users of the organization.
380            * This method only finds activities without mirrors.
381            *
382            * <p>
383            * Useful when paginating results. Returns a maximum of <code>end -
384            * start</code> instances. <code>start</code> and <code>end</code> are not
385            * primary keys, they are indexes in the result set. Thus, <code>0</code>
386            * refers to the first result in the set. Setting both <code>start</code>
387            * and <code>end</code> to {@link
388            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
389            * result set.
390            * </p>
391            *
392            * @param organizationId the primary key of the organization
393            * @param start the lower bound of the range of results
394            * @param end the upper bound of the range of results (not inclusive)
395            * @return the range of matching activities
396            * @throws PortalException if a permission checker was not initialized
397            */
398            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationUsersActivities(
399                    long organizationId, int start, int end)
400                    throws com.liferay.portal.kernel.exception.PortalException {
401                    return getService()
402                                       .getOrganizationUsersActivities(organizationId, start, end);
403            }
404    
405            /**
406            * Returns the number of activities done by users of the organization. This
407            * method only counts activities without mirrors.
408            *
409            * @param organizationId the primary key of the organization
410            * @return the number of matching activities
411            */
412            public static int getOrganizationUsersActivitiesCount(long organizationId) {
413                    return getService().getOrganizationUsersActivitiesCount(organizationId);
414            }
415    
416            /**
417            * Returns a range of all the activities done by users in a relationship
418            * with the user identified by the user ID.
419            *
420            * <p>
421            * Useful when paginating results. Returns a maximum of <code>end -
422            * start</code> instances. <code>start</code> and <code>end</code> are not
423            * primary keys, they are indexes in the result set. Thus, <>0</code> refers
424            * to the first result in the set. Setting both <code>start</code> and
425            * <code>end</code> to {@link
426            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
427            * result set.
428            * </p>
429            *
430            * @param userId the primary key of the user
431            * @param start the lower bound of the range of results
432            * @param end the upper bound of the range of results (not inclusive)
433            * @return the range of matching activities
434            * @throws PortalException if a permission checker was not initialized
435            */
436            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
437                    long userId, int start, int end)
438                    throws com.liferay.portal.kernel.exception.PortalException {
439                    return getService().getRelationActivities(userId, start, end);
440            }
441    
442            /**
443            * Returns a range of all the activities done by users in a relationship of
444            * type <code>type</code> with the user identified by <code>userId</code>.
445            * This method only finds activities without mirrors.
446            *
447            * <p>
448            * Useful when paginating results. Returns a maximum of <code>end -
449            * start</code> instances. <code>start</code> and <code>end</code> are not
450            * primary keys, they are indexes in the result set. Thus, <code>0</code>
451            * refers to the first result in the set. Setting both <code>start</code>
452            * and <code>end</code> to {@link
453            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
454            * result set.
455            * </p>
456            *
457            * @param userId the primary key of the user
458            * @param type the relationship type
459            * @param start the lower bound of the range of results
460            * @param end the upper bound of the range of results (not inclusive)
461            * @return the range of matching activities
462            * @throws PortalException if a permission checker was not initialized
463            */
464            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
465                    long userId, int type, int start, int end)
466                    throws com.liferay.portal.kernel.exception.PortalException {
467                    return getService().getRelationActivities(userId, type, start, end);
468            }
469    
470            /**
471            * Returns the number of activities done by users in a relationship with the
472            * user identified by userId.
473            *
474            * @param userId the primary key of the user
475            * @return the number of matching activities
476            */
477            public static int getRelationActivitiesCount(long userId) {
478                    return getService().getRelationActivitiesCount(userId);
479            }
480    
481            /**
482            * Returns the number of activities done by users in a relationship of type
483            * <code>type</code> with the user identified by <code>userId</code>. This
484            * method only counts activities without mirrors.
485            *
486            * @param userId the primary key of the user
487            * @param type the relationship type
488            * @return the number of matching activities
489            */
490            public static int getRelationActivitiesCount(long userId, int type) {
491                    return getService().getRelationActivitiesCount(userId, type);
492            }
493    
494            /**
495            * Returns a range of all the activities done by the user.
496            *
497            * <p>
498            * Useful when paginating results. Returns a maximum of <code>end -
499            * start</code> instances. <code>start</code> and <code>end</code> are not
500            * primary keys, they are indexes in the result set. Thus, <code>0</code>
501            * refers to the first result in the set. Setting both <code>start</code>
502            * and <code>end</code> to {@link
503            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
504            * result set.
505            * </p>
506            *
507            * @param userId the primary key of the user
508            * @param start the lower bound of the range of results
509            * @param end the upper bound of the range of results (not inclusive)
510            * @return the range of matching activities
511            * @throws PortalException if a permission checker was not initialized
512            */
513            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserActivities(
514                    long userId, int start, int end)
515                    throws com.liferay.portal.kernel.exception.PortalException {
516                    return getService().getUserActivities(userId, start, end);
517            }
518    
519            /**
520            * Returns the number of activities done by the user.
521            *
522            * @param userId the primary key of the user
523            * @return the number of matching activities
524            */
525            public static int getUserActivitiesCount(long userId) {
526                    return getService().getUserActivitiesCount(userId);
527            }
528    
529            /**
530            * Returns a range of all the activities done in the user's groups. This
531            * method only finds activities without mirrors.
532            *
533            * <p>
534            * Useful when paginating results. Returns a maximum of <code>end -
535            * start</code> instances. <code>start</code> and <code>end</code> are not
536            * primary keys, they are indexes in the result set. Thus, <code>0</code>
537            * refers to the first result in the set. Setting both <code>start</code>
538            * and <code>end</code> to {@link
539            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
540            * result set.
541            * </p>
542            *
543            * @param userId the primary key of the user
544            * @param start the lower bound of the range of results
545            * @param end the upper bound of the range of results (not inclusive)
546            * @return the range of matching activities
547            * @throws PortalException if a permission checker was not initialized
548            */
549            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsActivities(
550                    long userId, int start, int end)
551                    throws com.liferay.portal.kernel.exception.PortalException {
552                    return getService().getUserGroupsActivities(userId, start, end);
553            }
554    
555            /**
556            * Returns the number of activities done in user's groups. This method only
557            * counts activities without mirrors.
558            *
559            * @param userId the primary key of the user
560            * @return the number of matching activities
561            */
562            public static int getUserGroupsActivitiesCount(long userId) {
563                    return getService().getUserGroupsActivitiesCount(userId);
564            }
565    
566            /**
567            * Returns a range of all the activities done in the user's groups and
568            * organizations. This method only finds activities without mirrors.
569            *
570            * <p>
571            * Useful when paginating results. Returns a maximum of <code>end -
572            * start</code> instances. <code>start</code> and <code>end</code> are not
573            * primary keys, they are indexes in the result set. Thus, <code>0</code>
574            * refers to the first result in the set. Setting both <code>start</code>
575            * and <code>end</code> to {@link
576            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
577            * result set.
578            * </p>
579            *
580            * @param userId the primary key of the user
581            * @param start the lower bound of the range of results
582            * @param end the upper bound of the range of results (not inclusive)
583            * @return the range of matching activities
584            * @throws PortalException if a permission checker was not initialized
585            */
586            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsAndOrganizationsActivities(
587                    long userId, int start, int end)
588                    throws com.liferay.portal.kernel.exception.PortalException {
589                    return getService()
590                                       .getUserGroupsAndOrganizationsActivities(userId, start, end);
591            }
592    
593            /**
594            * Returns the number of activities done in user's groups and organizations.
595            * This method only counts activities without mirrors.
596            *
597            * @param userId the primary key of the user
598            * @return the number of matching activities
599            */
600            public static int getUserGroupsAndOrganizationsActivitiesCount(long userId) {
601                    return getService().getUserGroupsAndOrganizationsActivitiesCount(userId);
602            }
603    
604            /**
605            * Returns a range of all activities done in the user's organizations. This
606            * method only finds activities without mirrors.
607            *
608            * <p>
609            * Useful when paginating results. Returns a maximum of <code>end -
610            * start</code> instances. <code>start</code> and <code>end</code> are not
611            * primary keys, they are indexes in the result set. Thus, <code>0</code>
612            * refers to the first result in the set. Setting both <code>start</code>
613            * and <code>end</code> to {@link
614            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
615            * result set.
616            * </p>
617            *
618            * @param userId the primary key of the user
619            * @param start the lower bound of the range of results
620            * @param end the upper bound of the range of results (not inclusive)
621            * @return the range of matching activities
622            * @throws PortalException if a permission checker was not initialized
623            */
624            public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserOrganizationsActivities(
625                    long userId, int start, int end)
626                    throws com.liferay.portal.kernel.exception.PortalException {
627                    return getService().getUserOrganizationsActivities(userId, start, end);
628            }
629    
630            /**
631            * Returns the number of activities done in the user's organizations. This
632            * method only counts activities without mirrors.
633            *
634            * @param userId the primary key of the user
635            * @return the number of matching activities
636            */
637            public static int getUserOrganizationsActivitiesCount(long userId) {
638                    return getService().getUserOrganizationsActivitiesCount(userId);
639            }
640    
641            /**
642            * Sets the Spring bean ID for this bean.
643            *
644            * @param beanIdentifier the Spring bean ID for this bean
645            */
646            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
647                    getService().setBeanIdentifier(beanIdentifier);
648            }
649    
650            public static SocialActivityService getService() {
651                    if (_service == null) {
652                            _service = (SocialActivityService)PortalBeanLocatorUtil.locate(SocialActivityService.class.getName());
653    
654                            ReferenceRegistry.registerReference(SocialActivityServiceUtil.class,
655                                    "_service");
656                    }
657    
658                    return _service;
659            }
660    
661            /**
662             * @deprecated As of 6.2.0
663             */
664            @Deprecated
665            public void setService(SocialActivityService service) {
666            }
667    
668            private static SocialActivityService _service;
669    }