001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.social.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link SocialRequestLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       SocialRequestLocalService
024     * @generated
025     */
026    public class SocialRequestLocalServiceWrapper
027            implements SocialRequestLocalService {
028            public SocialRequestLocalServiceWrapper(
029                    SocialRequestLocalService socialRequestLocalService) {
030                    _socialRequestLocalService = socialRequestLocalService;
031            }
032    
033            /**
034            * Adds the social request to the database. Also notifies the appropriate model listeners.
035            *
036            * @param socialRequest the social request
037            * @return the social request that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portlet.social.model.SocialRequest addSocialRequest(
041                    com.liferay.portlet.social.model.SocialRequest socialRequest)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _socialRequestLocalService.addSocialRequest(socialRequest);
044            }
045    
046            /**
047            * Creates a new social request with the primary key. Does not add the social request to the database.
048            *
049            * @param requestId the primary key for the new social request
050            * @return the new social request
051            */
052            public com.liferay.portlet.social.model.SocialRequest createSocialRequest(
053                    long requestId) {
054                    return _socialRequestLocalService.createSocialRequest(requestId);
055            }
056    
057            /**
058            * Deletes the social request with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param requestId the primary key of the social request
061            * @throws PortalException if a social request with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteSocialRequest(long requestId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _socialRequestLocalService.deleteSocialRequest(requestId);
068            }
069    
070            /**
071            * Deletes the social request from the database. Also notifies the appropriate model listeners.
072            *
073            * @param socialRequest the social request
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteSocialRequest(
077                    com.liferay.portlet.social.model.SocialRequest socialRequest)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    _socialRequestLocalService.deleteSocialRequest(socialRequest);
080            }
081    
082            /**
083            * Performs a dynamic query on the database and returns the matching rows.
084            *
085            * @param dynamicQuery the dynamic query
086            * @return the matching rows
087            * @throws SystemException if a system exception occurred
088            */
089            @SuppressWarnings("rawtypes")
090            public java.util.List dynamicQuery(
091                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return _socialRequestLocalService.dynamicQuery(dynamicQuery);
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns a range of the matching rows.
098            *
099            * <p>
100            * 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.
101            * </p>
102            *
103            * @param dynamicQuery the dynamic query
104            * @param start the lower bound of the range of model instances
105            * @param end the upper bound of the range of model instances (not inclusive)
106            * @return the range of matching rows
107            * @throws SystemException if a system exception occurred
108            */
109            @SuppressWarnings("rawtypes")
110            public java.util.List dynamicQuery(
111                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112                    int end) throws com.liferay.portal.kernel.exception.SystemException {
113                    return _socialRequestLocalService.dynamicQuery(dynamicQuery, start, end);
114            }
115    
116            /**
117            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
118            *
119            * <p>
120            * 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.
121            * </p>
122            *
123            * @param dynamicQuery the dynamic query
124            * @param start the lower bound of the range of model instances
125            * @param end the upper bound of the range of model instances (not inclusive)
126            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
127            * @return the ordered range of matching rows
128            * @throws SystemException if a system exception occurred
129            */
130            @SuppressWarnings("rawtypes")
131            public java.util.List dynamicQuery(
132                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133                    int end,
134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    return _socialRequestLocalService.dynamicQuery(dynamicQuery, start,
137                            end, orderByComparator);
138            }
139    
140            /**
141            * Returns the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query
144            * @return the number of rows that match the dynamic query
145            * @throws SystemException if a system exception occurred
146            */
147            public long dynamicQueryCount(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return _socialRequestLocalService.dynamicQueryCount(dynamicQuery);
151            }
152    
153            /**
154            * Returns the social request with the primary key.
155            *
156            * @param requestId the primary key of the social request
157            * @return the social request
158            * @throws PortalException if a social request with the primary key could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.social.model.SocialRequest getSocialRequest(
162                    long requestId)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException {
165                    return _socialRequestLocalService.getSocialRequest(requestId);
166            }
167    
168            public com.liferay.portal.model.PersistedModel getPersistedModel(
169                    java.io.Serializable primaryKeyObj)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return _socialRequestLocalService.getPersistedModel(primaryKeyObj);
173            }
174    
175            /**
176            * Returns the social request with the UUID in the group.
177            *
178            * @param uuid the UUID of social request
179            * @param groupId the group id of the social request
180            * @return the social request
181            * @throws PortalException if a social request with the UUID in the group could not be found
182            * @throws SystemException if a system exception occurred
183            */
184            public com.liferay.portlet.social.model.SocialRequest getSocialRequestByUuidAndGroupId(
185                    java.lang.String uuid, long groupId)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    return _socialRequestLocalService.getSocialRequestByUuidAndGroupId(uuid,
189                            groupId);
190            }
191    
192            /**
193            * Returns a range of all the social requests.
194            *
195            * <p>
196            * 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.
197            * </p>
198            *
199            * @param start the lower bound of the range of social requests
200            * @param end the upper bound of the range of social requests (not inclusive)
201            * @return the range of social requests
202            * @throws SystemException if a system exception occurred
203            */
204            public java.util.List<com.liferay.portlet.social.model.SocialRequest> getSocialRequests(
205                    int start, int end)
206                    throws com.liferay.portal.kernel.exception.SystemException {
207                    return _socialRequestLocalService.getSocialRequests(start, end);
208            }
209    
210            /**
211            * Returns the number of social requests.
212            *
213            * @return the number of social requests
214            * @throws SystemException if a system exception occurred
215            */
216            public int getSocialRequestsCount()
217                    throws com.liferay.portal.kernel.exception.SystemException {
218                    return _socialRequestLocalService.getSocialRequestsCount();
219            }
220    
221            /**
222            * Updates the social request in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
223            *
224            * @param socialRequest the social request
225            * @return the social request that was updated
226            * @throws SystemException if a system exception occurred
227            */
228            public com.liferay.portlet.social.model.SocialRequest updateSocialRequest(
229                    com.liferay.portlet.social.model.SocialRequest socialRequest)
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    return _socialRequestLocalService.updateSocialRequest(socialRequest);
232            }
233    
234            /**
235            * Updates the social request in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
236            *
237            * @param socialRequest the social request
238            * @param merge whether to merge the social request with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
239            * @return the social request that was updated
240            * @throws SystemException if a system exception occurred
241            */
242            public com.liferay.portlet.social.model.SocialRequest updateSocialRequest(
243                    com.liferay.portlet.social.model.SocialRequest socialRequest,
244                    boolean merge)
245                    throws com.liferay.portal.kernel.exception.SystemException {
246                    return _socialRequestLocalService.updateSocialRequest(socialRequest,
247                            merge);
248            }
249    
250            /**
251            * Returns the Spring bean ID for this bean.
252            *
253            * @return the Spring bean ID for this bean
254            */
255            public java.lang.String getBeanIdentifier() {
256                    return _socialRequestLocalService.getBeanIdentifier();
257            }
258    
259            /**
260            * Sets the Spring bean ID for this bean.
261            *
262            * @param beanIdentifier the Spring bean ID for this bean
263            */
264            public void setBeanIdentifier(java.lang.String beanIdentifier) {
265                    _socialRequestLocalService.setBeanIdentifier(beanIdentifier);
266            }
267    
268            public com.liferay.portlet.social.model.SocialRequest addRequest(
269                    long userId, long groupId, java.lang.String className, long classPK,
270                    int type, java.lang.String extraData, long receiverUserId)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    return _socialRequestLocalService.addRequest(userId, groupId,
274                            className, classPK, type, extraData, receiverUserId);
275            }
276    
277            public void deleteReceiverUserRequests(long receiverUserId)
278                    throws com.liferay.portal.kernel.exception.SystemException {
279                    _socialRequestLocalService.deleteReceiverUserRequests(receiverUserId);
280            }
281    
282            public void deleteRequest(long requestId)
283                    throws com.liferay.portal.kernel.exception.PortalException,
284                            com.liferay.portal.kernel.exception.SystemException {
285                    _socialRequestLocalService.deleteRequest(requestId);
286            }
287    
288            public void deleteRequest(
289                    com.liferay.portlet.social.model.SocialRequest request)
290                    throws com.liferay.portal.kernel.exception.SystemException {
291                    _socialRequestLocalService.deleteRequest(request);
292            }
293    
294            public void deleteUserRequests(long userId)
295                    throws com.liferay.portal.kernel.exception.SystemException {
296                    _socialRequestLocalService.deleteUserRequests(userId);
297            }
298    
299            public java.util.List<com.liferay.portlet.social.model.SocialRequest> getReceiverUserRequests(
300                    long receiverUserId, int start, int end)
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    return _socialRequestLocalService.getReceiverUserRequests(receiverUserId,
303                            start, end);
304            }
305    
306            public java.util.List<com.liferay.portlet.social.model.SocialRequest> getReceiverUserRequests(
307                    long receiverUserId, int status, int start, int end)
308                    throws com.liferay.portal.kernel.exception.SystemException {
309                    return _socialRequestLocalService.getReceiverUserRequests(receiverUserId,
310                            status, start, end);
311            }
312    
313            public int getReceiverUserRequestsCount(long receiverUserId)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    return _socialRequestLocalService.getReceiverUserRequestsCount(receiverUserId);
316            }
317    
318            public int getReceiverUserRequestsCount(long receiverUserId, int status)
319                    throws com.liferay.portal.kernel.exception.SystemException {
320                    return _socialRequestLocalService.getReceiverUserRequestsCount(receiverUserId,
321                            status);
322            }
323    
324            public java.util.List<com.liferay.portlet.social.model.SocialRequest> getUserRequests(
325                    long userId, int start, int end)
326                    throws com.liferay.portal.kernel.exception.SystemException {
327                    return _socialRequestLocalService.getUserRequests(userId, start, end);
328            }
329    
330            public java.util.List<com.liferay.portlet.social.model.SocialRequest> getUserRequests(
331                    long userId, int status, int start, int end)
332                    throws com.liferay.portal.kernel.exception.SystemException {
333                    return _socialRequestLocalService.getUserRequests(userId, status,
334                            start, end);
335            }
336    
337            public int getUserRequestsCount(long userId)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return _socialRequestLocalService.getUserRequestsCount(userId);
340            }
341    
342            public int getUserRequestsCount(long userId, int status)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return _socialRequestLocalService.getUserRequestsCount(userId, status);
345            }
346    
347            public boolean hasRequest(long userId, java.lang.String className,
348                    long classPK, int type, int status)
349                    throws com.liferay.portal.kernel.exception.SystemException {
350                    return _socialRequestLocalService.hasRequest(userId, className,
351                            classPK, type, status);
352            }
353    
354            public boolean hasRequest(long userId, java.lang.String className,
355                    long classPK, int type, long receiverUserId, int status)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return _socialRequestLocalService.hasRequest(userId, className,
358                            classPK, type, receiverUserId, status);
359            }
360    
361            public com.liferay.portlet.social.model.SocialRequest updateRequest(
362                    long requestId, int status,
363                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
364                    throws com.liferay.portal.kernel.exception.PortalException,
365                            com.liferay.portal.kernel.exception.SystemException {
366                    return _socialRequestLocalService.updateRequest(requestId, status,
367                            themeDisplay);
368            }
369    
370            public SocialRequestLocalService getWrappedSocialRequestLocalService() {
371                    return _socialRequestLocalService;
372            }
373    
374            public void setWrappedSocialRequestLocalService(
375                    SocialRequestLocalService socialRequestLocalService) {
376                    _socialRequestLocalService = socialRequestLocalService;
377            }
378    
379            private SocialRequestLocalService _socialRequestLocalService;
380    }