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