001    /**
002     * Copyright (c) 2000-2010 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    /**
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 to add
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 to delete
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 to delete
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 to search with
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 to search with
104            * @param start the lower bound of the range of model instances to return
105            * @param end the upper bound of the range of model instances to return (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 to search with
124            * @param start the lower bound of the range of model instances to return
125            * @param end the upper bound of the range of model instances to return (not inclusive)
126            * @param orderByComparator the comparator to order the results by
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            * Counts the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query to search with
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            * Gets the social request with the primary key.
155            *
156            * @param requestId the primary key of the social request to get
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            /**
169            * Gets the social request with the UUID and group id.
170            *
171            * @param uuid the UUID of social request to get
172            * @param groupId the group id of the social request to get
173            * @return the social request
174            * @throws PortalException if a social request with the UUID and group id could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.social.model.SocialRequest getSocialRequestByUuidAndGroupId(
178                    java.lang.String uuid, long groupId)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _socialRequestLocalService.getSocialRequestByUuidAndGroupId(uuid,
182                            groupId);
183            }
184    
185            /**
186            * Gets a range of all the social requests.
187            *
188            * <p>
189            * 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.
190            * </p>
191            *
192            * @param start the lower bound of the range of social requests to return
193            * @param end the upper bound of the range of social requests to return (not inclusive)
194            * @return the range of social requests
195            * @throws SystemException if a system exception occurred
196            */
197            public java.util.List<com.liferay.portlet.social.model.SocialRequest> getSocialRequests(
198                    int start, int end)
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return _socialRequestLocalService.getSocialRequests(start, end);
201            }
202    
203            /**
204            * Gets the number of social requests.
205            *
206            * @return the number of social requests
207            * @throws SystemException if a system exception occurred
208            */
209            public int getSocialRequestsCount()
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return _socialRequestLocalService.getSocialRequestsCount();
212            }
213    
214            /**
215            * Updates the social request in the database. Also notifies the appropriate model listeners.
216            *
217            * @param socialRequest the social request to update
218            * @return the social request that was updated
219            * @throws SystemException if a system exception occurred
220            */
221            public com.liferay.portlet.social.model.SocialRequest updateSocialRequest(
222                    com.liferay.portlet.social.model.SocialRequest socialRequest)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return _socialRequestLocalService.updateSocialRequest(socialRequest);
225            }
226    
227            /**
228            * Updates the social request in the database. Also notifies the appropriate model listeners.
229            *
230            * @param socialRequest the social request to update
231            * @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.
232            * @return the social request that was updated
233            * @throws SystemException if a system exception occurred
234            */
235            public com.liferay.portlet.social.model.SocialRequest updateSocialRequest(
236                    com.liferay.portlet.social.model.SocialRequest socialRequest,
237                    boolean merge)
238                    throws com.liferay.portal.kernel.exception.SystemException {
239                    return _socialRequestLocalService.updateSocialRequest(socialRequest,
240                            merge);
241            }
242    
243            public com.liferay.portlet.social.model.SocialRequest addRequest(
244                    long userId, long groupId, java.lang.String className, long classPK,
245                    int type, java.lang.String extraData, long receiverUserId)
246                    throws com.liferay.portal.kernel.exception.PortalException,
247                            com.liferay.portal.kernel.exception.SystemException {
248                    return _socialRequestLocalService.addRequest(userId, groupId,
249                            className, classPK, type, extraData, receiverUserId);
250            }
251    
252            public void deleteReceiverUserRequests(long receiverUserId)
253                    throws com.liferay.portal.kernel.exception.SystemException {
254                    _socialRequestLocalService.deleteReceiverUserRequests(receiverUserId);
255            }
256    
257            public void deleteRequest(long requestId)
258                    throws com.liferay.portal.kernel.exception.PortalException,
259                            com.liferay.portal.kernel.exception.SystemException {
260                    _socialRequestLocalService.deleteRequest(requestId);
261            }
262    
263            public void deleteUserRequests(long userId)
264                    throws com.liferay.portal.kernel.exception.SystemException {
265                    _socialRequestLocalService.deleteUserRequests(userId);
266            }
267    
268            public java.util.List<com.liferay.portlet.social.model.SocialRequest> getReceiverUserRequests(
269                    long receiverUserId, int start, int end)
270                    throws com.liferay.portal.kernel.exception.SystemException {
271                    return _socialRequestLocalService.getReceiverUserRequests(receiverUserId,
272                            start, end);
273            }
274    
275            public java.util.List<com.liferay.portlet.social.model.SocialRequest> getReceiverUserRequests(
276                    long receiverUserId, int status, int start, int end)
277                    throws com.liferay.portal.kernel.exception.SystemException {
278                    return _socialRequestLocalService.getReceiverUserRequests(receiverUserId,
279                            status, start, end);
280            }
281    
282            public int getReceiverUserRequestsCount(long receiverUserId)
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    return _socialRequestLocalService.getReceiverUserRequestsCount(receiverUserId);
285            }
286    
287            public int getReceiverUserRequestsCount(long receiverUserId, int status)
288                    throws com.liferay.portal.kernel.exception.SystemException {
289                    return _socialRequestLocalService.getReceiverUserRequestsCount(receiverUserId,
290                            status);
291            }
292    
293            public java.util.List<com.liferay.portlet.social.model.SocialRequest> getUserRequests(
294                    long userId, int start, int end)
295                    throws com.liferay.portal.kernel.exception.SystemException {
296                    return _socialRequestLocalService.getUserRequests(userId, start, end);
297            }
298    
299            public java.util.List<com.liferay.portlet.social.model.SocialRequest> getUserRequests(
300                    long userId, int status, int start, int end)
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    return _socialRequestLocalService.getUserRequests(userId, status,
303                            start, end);
304            }
305    
306            public int getUserRequestsCount(long userId)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    return _socialRequestLocalService.getUserRequestsCount(userId);
309            }
310    
311            public int getUserRequestsCount(long userId, int status)
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    return _socialRequestLocalService.getUserRequestsCount(userId, status);
314            }
315    
316            public boolean hasRequest(long userId, java.lang.String className,
317                    long classPK, int type, int status)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    return _socialRequestLocalService.hasRequest(userId, className,
320                            classPK, type, status);
321            }
322    
323            public boolean hasRequest(long userId, java.lang.String className,
324                    long classPK, int type, long receiverUserId, int status)
325                    throws com.liferay.portal.kernel.exception.SystemException {
326                    return _socialRequestLocalService.hasRequest(userId, className,
327                            classPK, type, receiverUserId, status);
328            }
329    
330            public com.liferay.portlet.social.model.SocialRequest updateRequest(
331                    long requestId, int status,
332                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
333                    throws com.liferay.portal.kernel.exception.PortalException,
334                            com.liferay.portal.kernel.exception.SystemException {
335                    return _socialRequestLocalService.updateRequest(requestId, status,
336                            themeDisplay);
337            }
338    
339            public SocialRequestLocalService getWrappedSocialRequestLocalService() {
340                    return _socialRequestLocalService;
341            }
342    
343            private SocialRequestLocalService _socialRequestLocalService;
344    }