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