001    /**
002     * Copyright (c) 2000-2013 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 com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * Provides a wrapper for {@link SocialRequestLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see SocialRequestLocalService
024     * @generated
025     */
026    public class SocialRequestLocalServiceWrapper
027            implements SocialRequestLocalService,
028                    ServiceWrapper<SocialRequestLocalService> {
029            public SocialRequestLocalServiceWrapper(
030                    SocialRequestLocalService socialRequestLocalService) {
031                    _socialRequestLocalService = socialRequestLocalService;
032            }
033    
034            /**
035            * Adds the social request to the database. Also notifies the appropriate model listeners.
036            *
037            * @param socialRequest the social request
038            * @return the social request that was added
039            * @throws SystemException if a system exception occurred
040            */
041            @Override
042            public com.liferay.portlet.social.model.SocialRequest addSocialRequest(
043                    com.liferay.portlet.social.model.SocialRequest socialRequest)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _socialRequestLocalService.addSocialRequest(socialRequest);
046            }
047    
048            /**
049            * Creates a new social request with the primary key. Does not add the social request to the database.
050            *
051            * @param requestId the primary key for the new social request
052            * @return the new social request
053            */
054            @Override
055            public com.liferay.portlet.social.model.SocialRequest createSocialRequest(
056                    long requestId) {
057                    return _socialRequestLocalService.createSocialRequest(requestId);
058            }
059    
060            /**
061            * Deletes the social request with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param requestId the primary key of the social request
064            * @return the social request that was removed
065            * @throws PortalException if a social request with the primary key could not be found
066            * @throws SystemException if a system exception occurred
067            */
068            @Override
069            public com.liferay.portlet.social.model.SocialRequest deleteSocialRequest(
070                    long requestId)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException {
073                    return _socialRequestLocalService.deleteSocialRequest(requestId);
074            }
075    
076            /**
077            * Deletes the social request from the database. Also notifies the appropriate model listeners.
078            *
079            * @param socialRequest the social request
080            * @return the social request that was removed
081            * @throws SystemException if a system exception occurred
082            */
083            @Override
084            public com.liferay.portlet.social.model.SocialRequest deleteSocialRequest(
085                    com.liferay.portlet.social.model.SocialRequest socialRequest)
086                    throws com.liferay.portal.kernel.exception.SystemException {
087                    return _socialRequestLocalService.deleteSocialRequest(socialRequest);
088            }
089    
090            @Override
091            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
092                    return _socialRequestLocalService.dynamicQuery();
093            }
094    
095            /**
096            * Performs a dynamic query on the database and returns the matching rows.
097            *
098            * @param dynamicQuery the dynamic query
099            * @return the matching rows
100            * @throws SystemException if a system exception occurred
101            */
102            @Override
103            @SuppressWarnings("rawtypes")
104            public java.util.List dynamicQuery(
105                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106                    throws com.liferay.portal.kernel.exception.SystemException {
107                    return _socialRequestLocalService.dynamicQuery(dynamicQuery);
108            }
109    
110            /**
111            * Performs a dynamic query on the database and returns a range of the matching rows.
112            *
113            * <p>
114            * 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.SocialRequestModelImpl}. 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.
115            * </p>
116            *
117            * @param dynamicQuery the dynamic query
118            * @param start the lower bound of the range of model instances
119            * @param end the upper bound of the range of model instances (not inclusive)
120            * @return the range of matching rows
121            * @throws SystemException if a system exception occurred
122            */
123            @Override
124            @SuppressWarnings("rawtypes")
125            public java.util.List dynamicQuery(
126                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127                    int end) throws com.liferay.portal.kernel.exception.SystemException {
128                    return _socialRequestLocalService.dynamicQuery(dynamicQuery, start, end);
129            }
130    
131            /**
132            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
133            *
134            * <p>
135            * 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.SocialRequestModelImpl}. 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.
136            * </p>
137            *
138            * @param dynamicQuery the dynamic query
139            * @param start the lower bound of the range of model instances
140            * @param end the upper bound of the range of model instances (not inclusive)
141            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
142            * @return the ordered range of matching rows
143            * @throws SystemException if a system exception occurred
144            */
145            @Override
146            @SuppressWarnings("rawtypes")
147            public java.util.List dynamicQuery(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
149                    int end,
150                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151                    throws com.liferay.portal.kernel.exception.SystemException {
152                    return _socialRequestLocalService.dynamicQuery(dynamicQuery, start,
153                            end, orderByComparator);
154            }
155    
156            /**
157            * Returns the number of rows that match the dynamic query.
158            *
159            * @param dynamicQuery the dynamic query
160            * @return the number of rows that match the dynamic query
161            * @throws SystemException if a system exception occurred
162            */
163            @Override
164            public long dynamicQueryCount(
165                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
166                    throws com.liferay.portal.kernel.exception.SystemException {
167                    return _socialRequestLocalService.dynamicQueryCount(dynamicQuery);
168            }
169    
170            /**
171            * Returns the number of rows that match the dynamic query.
172            *
173            * @param dynamicQuery the dynamic query
174            * @param projection the projection to apply to the query
175            * @return the number of rows that match the dynamic query
176            * @throws SystemException if a system exception occurred
177            */
178            @Override
179            public long dynamicQueryCount(
180                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181                    com.liferay.portal.kernel.dao.orm.Projection projection)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return _socialRequestLocalService.dynamicQueryCount(dynamicQuery,
184                            projection);
185            }
186    
187            @Override
188            public com.liferay.portlet.social.model.SocialRequest fetchSocialRequest(
189                    long requestId)
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return _socialRequestLocalService.fetchSocialRequest(requestId);
192            }
193    
194            /**
195            * Returns the social request with the matching UUID and company.
196            *
197            * @param uuid the social request's UUID
198            * @param companyId the primary key of the company
199            * @return the matching social request, or <code>null</code> if a matching social request could not be found
200            * @throws SystemException if a system exception occurred
201            */
202            @Override
203            public com.liferay.portlet.social.model.SocialRequest fetchSocialRequestByUuidAndCompanyId(
204                    java.lang.String uuid, long companyId)
205                    throws com.liferay.portal.kernel.exception.SystemException {
206                    return _socialRequestLocalService.fetchSocialRequestByUuidAndCompanyId(uuid,
207                            companyId);
208            }
209    
210            /**
211            * Returns the social request matching the UUID and group.
212            *
213            * @param uuid the social request's UUID
214            * @param groupId the primary key of the group
215            * @return the matching social request, or <code>null</code> if a matching social request could not be found
216            * @throws SystemException if a system exception occurred
217            */
218            @Override
219            public com.liferay.portlet.social.model.SocialRequest fetchSocialRequestByUuidAndGroupId(
220                    java.lang.String uuid, long groupId)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _socialRequestLocalService.fetchSocialRequestByUuidAndGroupId(uuid,
223                            groupId);
224            }
225    
226            /**
227            * Returns the social request with the primary key.
228            *
229            * @param requestId the primary key of the social request
230            * @return the social request
231            * @throws PortalException if a social request with the primary key could not be found
232            * @throws SystemException if a system exception occurred
233            */
234            @Override
235            public com.liferay.portlet.social.model.SocialRequest getSocialRequest(
236                    long requestId)
237                    throws com.liferay.portal.kernel.exception.PortalException,
238                            com.liferay.portal.kernel.exception.SystemException {
239                    return _socialRequestLocalService.getSocialRequest(requestId);
240            }
241    
242            @Override
243            public com.liferay.portal.model.PersistedModel getPersistedModel(
244                    java.io.Serializable primaryKeyObj)
245                    throws com.liferay.portal.kernel.exception.PortalException,
246                            com.liferay.portal.kernel.exception.SystemException {
247                    return _socialRequestLocalService.getPersistedModel(primaryKeyObj);
248            }
249    
250            /**
251            * Returns the social request with the matching UUID and company.
252            *
253            * @param uuid the social request's UUID
254            * @param companyId the primary key of the company
255            * @return the matching social request
256            * @throws PortalException if a matching social request could not be found
257            * @throws SystemException if a system exception occurred
258            */
259            @Override
260            public com.liferay.portlet.social.model.SocialRequest getSocialRequestByUuidAndCompanyId(
261                    java.lang.String uuid, long companyId)
262                    throws com.liferay.portal.kernel.exception.PortalException,
263                            com.liferay.portal.kernel.exception.SystemException {
264                    return _socialRequestLocalService.getSocialRequestByUuidAndCompanyId(uuid,
265                            companyId);
266            }
267    
268            /**
269            * Returns the social request matching the UUID and group.
270            *
271            * @param uuid the social request's UUID
272            * @param groupId the primary key of the group
273            * @return the matching social request
274            * @throws PortalException if a matching social request could not be found
275            * @throws SystemException if a system exception occurred
276            */
277            @Override
278            public com.liferay.portlet.social.model.SocialRequest getSocialRequestByUuidAndGroupId(
279                    java.lang.String uuid, long groupId)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    return _socialRequestLocalService.getSocialRequestByUuidAndGroupId(uuid,
283                            groupId);
284            }
285    
286            /**
287            * Returns a range of all the social requests.
288            *
289            * <p>
290            * 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.SocialRequestModelImpl}. 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.
291            * </p>
292            *
293            * @param start the lower bound of the range of social requests
294            * @param end the upper bound of the range of social requests (not inclusive)
295            * @return the range of social requests
296            * @throws SystemException if a system exception occurred
297            */
298            @Override
299            public java.util.List<com.liferay.portlet.social.model.SocialRequest> getSocialRequests(
300                    int start, int end)
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    return _socialRequestLocalService.getSocialRequests(start, end);
303            }
304    
305            /**
306            * Returns the number of social requests.
307            *
308            * @return the number of social requests
309            * @throws SystemException if a system exception occurred
310            */
311            @Override
312            public int getSocialRequestsCount()
313                    throws com.liferay.portal.kernel.exception.SystemException {
314                    return _socialRequestLocalService.getSocialRequestsCount();
315            }
316    
317            /**
318            * Updates the social request in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
319            *
320            * @param socialRequest the social request
321            * @return the social request that was updated
322            * @throws SystemException if a system exception occurred
323            */
324            @Override
325            public com.liferay.portlet.social.model.SocialRequest updateSocialRequest(
326                    com.liferay.portlet.social.model.SocialRequest socialRequest)
327                    throws com.liferay.portal.kernel.exception.SystemException {
328                    return _socialRequestLocalService.updateSocialRequest(socialRequest);
329            }
330    
331            /**
332            * Returns the Spring bean ID for this bean.
333            *
334            * @return the Spring bean ID for this bean
335            */
336            @Override
337            public java.lang.String getBeanIdentifier() {
338                    return _socialRequestLocalService.getBeanIdentifier();
339            }
340    
341            /**
342            * Sets the Spring bean ID for this bean.
343            *
344            * @param beanIdentifier the Spring bean ID for this bean
345            */
346            @Override
347            public void setBeanIdentifier(java.lang.String beanIdentifier) {
348                    _socialRequestLocalService.setBeanIdentifier(beanIdentifier);
349            }
350    
351            /**
352            * Adds a social request to the database.
353            *
354            * <p>
355            * In order to add a social request, both the requesting user and the
356            * receiving user must be from the same company and neither of them can be
357            * the default user.
358            * </p>
359            *
360            * @param userId the primary key of the requesting user
361            * @param groupId the primary key of the group
362            * @param className the class name of the asset that is the subject of the
363            request
364            * @param classPK the primary key of the asset that is the subject of the
365            request
366            * @param type the request's type
367            * @param extraData the extra data regarding the request
368            * @param receiverUserId the primary key of the user receiving the request
369            * @return the social request
370            * @throws PortalException if the users could not be found, if the users
371            were not from the same company, or if either of the users was the
372            default user
373            * @throws SystemException if a system exception occurred
374            */
375            @Override
376            public com.liferay.portlet.social.model.SocialRequest addRequest(
377                    long userId, long groupId, java.lang.String className, long classPK,
378                    int type, java.lang.String extraData, long receiverUserId)
379                    throws com.liferay.portal.kernel.exception.PortalException,
380                            com.liferay.portal.kernel.exception.SystemException {
381                    return _socialRequestLocalService.addRequest(userId, groupId,
382                            className, classPK, type, extraData, receiverUserId);
383            }
384    
385            /**
386            * Removes all the social requests for the receiving user.
387            *
388            * @param receiverUserId the primary key of the receiving user
389            * @throws SystemException if a system exception occurred
390            */
391            @Override
392            public void deleteReceiverUserRequests(long receiverUserId)
393                    throws com.liferay.portal.kernel.exception.SystemException {
394                    _socialRequestLocalService.deleteReceiverUserRequests(receiverUserId);
395            }
396    
397            /**
398            * Removes the social request identified by its primary key from the
399            * database.
400            *
401            * @param requestId the primary key of the social request
402            * @throws PortalException if the social request could not be found
403            * @throws SystemException if a system exception occurred
404            */
405            @Override
406            public void deleteRequest(long requestId)
407                    throws com.liferay.portal.kernel.exception.PortalException,
408                            com.liferay.portal.kernel.exception.SystemException {
409                    _socialRequestLocalService.deleteRequest(requestId);
410            }
411    
412            /**
413            * Removes the social request from the database.
414            *
415            * @param request the social request to be removed
416            * @throws SystemException if a system exception occurred
417            */
418            @Override
419            public void deleteRequest(
420                    com.liferay.portlet.social.model.SocialRequest request)
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    _socialRequestLocalService.deleteRequest(request);
423            }
424    
425            /**
426            * Removes all the social requests for the requesting user.
427            *
428            * @param userId the primary key of the requesting user
429            * @throws SystemException if a system exception occurred
430            */
431            @Override
432            public void deleteUserRequests(long userId)
433                    throws com.liferay.portal.kernel.exception.SystemException {
434                    _socialRequestLocalService.deleteUserRequests(userId);
435            }
436    
437            /**
438            * Returns a range of all the social requests for the receiving user.
439            *
440            * <p>
441            * Useful when paginating results. Returns a maximum of <code>end -
442            * start</code> instances. <code>start</code> and <code>end</code> are not
443            * primary keys, they are indexes in the result set. Thus, <code>0</code>
444            * refers to the first result in the set. Setting both <code>start</code>
445            * and <code>end</code> to {@link
446            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
447            * result set.
448            * </p>
449            *
450            * @param receiverUserId the primary key of the receiving user
451            * @param start the lower bound of the range of results
452            * @param end the upper bound of the range of results (not inclusive)
453            * @return the range of matching social requests
454            * @throws SystemException if a system exception occurred
455            */
456            @Override
457            public java.util.List<com.liferay.portlet.social.model.SocialRequest> getReceiverUserRequests(
458                    long receiverUserId, int start, int end)
459                    throws com.liferay.portal.kernel.exception.SystemException {
460                    return _socialRequestLocalService.getReceiverUserRequests(receiverUserId,
461                            start, end);
462            }
463    
464            /**
465            * Returns a range of all the social requests with the given status for the
466            * receiving user.
467            *
468            * <p>
469            * Useful when paginating results. Returns a maximum of <code>end -
470            * start</code> instances. <code>start</code> and <code>end</code> are not
471            * primary keys, they are indexes in the result set. Thus, <code>0</code>
472            * refers to the first result in the set. Setting both <code>start</code>
473            * and <code>end</code> to {@link
474            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
475            * result set.
476            * </p>
477            *
478            * @param receiverUserId the primary key of the receiving user
479            * @param status the social request's status
480            * @param start the lower bound of the range of results
481            * @param end the upper bound of the range of results (not inclusive)
482            * @return the range of matching social requests
483            * @throws SystemException if a system exception occurred
484            */
485            @Override
486            public java.util.List<com.liferay.portlet.social.model.SocialRequest> getReceiverUserRequests(
487                    long receiverUserId, int status, int start, int end)
488                    throws com.liferay.portal.kernel.exception.SystemException {
489                    return _socialRequestLocalService.getReceiverUserRequests(receiverUserId,
490                            status, start, end);
491            }
492    
493            /**
494            * Returns the number of social requests for the receiving user.
495            *
496            * @param receiverUserId the primary key of the receiving user
497            * @return the number of matching social requests
498            * @throws SystemException if a system exception occurred
499            */
500            @Override
501            public int getReceiverUserRequestsCount(long receiverUserId)
502                    throws com.liferay.portal.kernel.exception.SystemException {
503                    return _socialRequestLocalService.getReceiverUserRequestsCount(receiverUserId);
504            }
505    
506            /**
507            * Returns the number of social requests with the given status for the
508            * receiving user.
509            *
510            * @param receiverUserId the primary key of the receiving user
511            * @param status the social request's status
512            * @return the number of matching social requests
513            * @throws SystemException if a system exception occurred
514            */
515            @Override
516            public int getReceiverUserRequestsCount(long receiverUserId, int status)
517                    throws com.liferay.portal.kernel.exception.SystemException {
518                    return _socialRequestLocalService.getReceiverUserRequestsCount(receiverUserId,
519                            status);
520            }
521    
522            /**
523            * Returns a range of all the social requests for the requesting user.
524            *
525            * <p>
526            * Useful when paginating results. Returns a maximum of <code>end -
527            * start</code> instances. <code>start</code> and <code>end</code> are not
528            * primary keys, they are indexes in the result set. Thus, <code>0</code>
529            * refers to the first result in the set. Setting both <code>start</code>
530            * and <code>end</code> to {@link
531            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
532            * result set.
533            * </p>
534            *
535            * @param userId the primary key of the requesting user
536            * @param start the lower bound of the range of results
537            * @param end the upper bound of the range of results (not inclusive)
538            * @return the range of matching social requests
539            * @throws SystemException if a system exception occurred
540            */
541            @Override
542            public java.util.List<com.liferay.portlet.social.model.SocialRequest> getUserRequests(
543                    long userId, int start, int end)
544                    throws com.liferay.portal.kernel.exception.SystemException {
545                    return _socialRequestLocalService.getUserRequests(userId, start, end);
546            }
547    
548            /**
549            * Returns a range of all the social requests with the given status for the
550            * requesting user.
551            *
552            * <p>
553            * Useful when paginating results. Returns a maximum of <code>end -
554            * start</code> instances. <code>start</code> and <code>end</code> are not
555            * primary keys, they are indexes in the result set. Thus, <code>0</code>
556            * refers to the first result in the set. Setting both <code>start</code>
557            * and <code>end</code> to {@link
558            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
559            * result set.
560            * </p>
561            *
562            * @param userId the primary key of the requesting user
563            * @param status the social request's status
564            * @param start the lower bound of the range of results
565            * @param end the upper bound of the range of results (not inclusive)
566            * @return the range of matching social requests
567            * @throws SystemException if a system exception occurred
568            */
569            @Override
570            public java.util.List<com.liferay.portlet.social.model.SocialRequest> getUserRequests(
571                    long userId, int status, int start, int end)
572                    throws com.liferay.portal.kernel.exception.SystemException {
573                    return _socialRequestLocalService.getUserRequests(userId, status,
574                            start, end);
575            }
576    
577            /**
578            * Returns the number of social requests for the requesting user.
579            *
580            * @param userId the primary key of the requesting user
581            * @return the number of matching social requests
582            * @throws SystemException if a system exception occurred
583            */
584            @Override
585            public int getUserRequestsCount(long userId)
586                    throws com.liferay.portal.kernel.exception.SystemException {
587                    return _socialRequestLocalService.getUserRequestsCount(userId);
588            }
589    
590            /**
591            * Returns the number of social requests with the given status for the
592            * requesting user.
593            *
594            * @param userId the primary key of the requesting user
595            * @param status the social request's status
596            * @return the number of matching social request
597            * @throws SystemException if a system exception occurred
598            */
599            @Override
600            public int getUserRequestsCount(long userId, int status)
601                    throws com.liferay.portal.kernel.exception.SystemException {
602                    return _socialRequestLocalService.getUserRequestsCount(userId, status);
603            }
604    
605            /**
606            * Returns <code>true</code> if a matching social requests exists in the
607            * database.
608            *
609            * @param userId the primary key of the requesting user
610            * @param className the class name of the asset that is the subject of the
611            request
612            * @param classPK the primary key of the asset that is the subject of the
613            request
614            * @param type the request's type
615            * @param status the social request's status
616            * @return <code>true</code> if the request exists; <code>false</code>
617            otherwise
618            * @throws SystemException if a system exception occurred
619            */
620            @Override
621            public boolean hasRequest(long userId, java.lang.String className,
622                    long classPK, int type, int status)
623                    throws com.liferay.portal.kernel.exception.SystemException {
624                    return _socialRequestLocalService.hasRequest(userId, className,
625                            classPK, type, status);
626            }
627    
628            /**
629            * Returns <code>true</code> if a matching social request exists in the
630            * database.
631            *
632            * @param userId the primary key of the requesting user
633            * @param className the class name of the asset that is the subject of the
634            request
635            * @param classPK the primary key of the asset that is the subject of the
636            request
637            * @param type the request's type
638            * @param receiverUserId the primary key of the receiving user
639            * @param status the social request's status
640            * @return <code>true</code> if the social request exists;
641            <code>false</code> otherwise
642            * @throws SystemException if a system exception occurred
643            */
644            @Override
645            public boolean hasRequest(long userId, java.lang.String className,
646                    long classPK, int type, long receiverUserId, int status)
647                    throws com.liferay.portal.kernel.exception.SystemException {
648                    return _socialRequestLocalService.hasRequest(userId, className,
649                            classPK, type, receiverUserId, status);
650            }
651    
652            /**
653            * Updates the social request replacing its status.
654            *
655            * <p>
656            * If the status is updated to {@link
657            * com.liferay.portlet.social.model.SocialRequestConstants#STATUS_CONFIRM}
658            * then {@link
659            * com.liferay.portlet.social.service.SocialRequestInterpreterLocalService#processConfirmation(
660            * SocialRequest, ThemeDisplay)} is called. If the status is updated to
661            * {@link
662            * com.liferay.portlet.social.model.SocialRequestConstants#STATUS_IGNORE}
663            * then {@link
664            * com.liferay.portlet.social.service.SocialRequestInterpreterLocalService#processRejection(
665            * SocialRequest, ThemeDisplay)} is called.
666            * </p>
667            *
668            * @param requestId the primary key of the social request
669            * @param status the new status
670            * @param themeDisplay the theme display
671            * @return the updated social request
672            * @throws PortalException if the social request could not be found
673            * @throws SystemException if a system exception occurred
674            */
675            @Override
676            public com.liferay.portlet.social.model.SocialRequest updateRequest(
677                    long requestId, int status,
678                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
679                    throws com.liferay.portal.kernel.exception.PortalException,
680                            com.liferay.portal.kernel.exception.SystemException {
681                    return _socialRequestLocalService.updateRequest(requestId, status,
682                            themeDisplay);
683            }
684    
685            /**
686             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
687             */
688            public SocialRequestLocalService getWrappedSocialRequestLocalService() {
689                    return _socialRequestLocalService;
690            }
691    
692            /**
693             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
694             */
695            public void setWrappedSocialRequestLocalService(
696                    SocialRequestLocalService socialRequestLocalService) {
697                    _socialRequestLocalService = socialRequestLocalService;
698            }
699    
700            @Override
701            public SocialRequestLocalService getWrappedService() {
702                    return _socialRequestLocalService;
703            }
704    
705            @Override
706            public void setWrappedService(
707                    SocialRequestLocalService socialRequestLocalService) {
708                    _socialRequestLocalService = socialRequestLocalService;
709            }
710    
711            private SocialRequestLocalService _socialRequestLocalService;
712    }