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    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * <p>
021     * This class provides static methods for the
022     * {@link SocialRequestLocalService} bean. The static methods of
023     * this class calls the same methods of the bean instance. It's convenient to be
024     * able to just write one line to call a method on a bean instead of writing a
025     * lookup call and a method call.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       SocialRequestLocalService
030     * @generated
031     */
032    public class SocialRequestLocalServiceUtil {
033            public static com.liferay.portlet.social.model.SocialRequest addSocialRequest(
034                    com.liferay.portlet.social.model.SocialRequest socialRequest)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return getService().addSocialRequest(socialRequest);
037            }
038    
039            public static com.liferay.portlet.social.model.SocialRequest createSocialRequest(
040                    long requestId) {
041                    return getService().createSocialRequest(requestId);
042            }
043    
044            public static void deleteSocialRequest(long requestId)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    getService().deleteSocialRequest(requestId);
048            }
049    
050            public static void deleteSocialRequest(
051                    com.liferay.portlet.social.model.SocialRequest socialRequest)
052                    throws com.liferay.portal.kernel.exception.SystemException {
053                    getService().deleteSocialRequest(socialRequest);
054            }
055    
056            @SuppressWarnings("unchecked")
057            public static java.util.List dynamicQuery(
058                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return getService().dynamicQuery(dynamicQuery);
061            }
062    
063            @SuppressWarnings("unchecked")
064            public static java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException {
067                    return getService().dynamicQuery(dynamicQuery, start, end);
068            }
069    
070            @SuppressWarnings("unchecked")
071            public static java.util.List dynamicQuery(
072                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073                    int end,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    return getService()
077                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078            }
079    
080            public static long dynamicQueryCount(
081                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return getService().dynamicQueryCount(dynamicQuery);
084            }
085    
086            public static com.liferay.portlet.social.model.SocialRequest getSocialRequest(
087                    long requestId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return getService().getSocialRequest(requestId);
091            }
092    
093            public static com.liferay.portlet.social.model.SocialRequest getSocialRequestByUuidAndGroupId(
094                    java.lang.String uuid, long groupId)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException {
097                    return getService().getSocialRequestByUuidAndGroupId(uuid, groupId);
098            }
099    
100            public static java.util.List<com.liferay.portlet.social.model.SocialRequest> getSocialRequests(
101                    int start, int end)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return getService().getSocialRequests(start, end);
104            }
105    
106            public static int getSocialRequestsCount()
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return getService().getSocialRequestsCount();
109            }
110    
111            public static com.liferay.portlet.social.model.SocialRequest updateSocialRequest(
112                    com.liferay.portlet.social.model.SocialRequest socialRequest)
113                    throws com.liferay.portal.kernel.exception.SystemException {
114                    return getService().updateSocialRequest(socialRequest);
115            }
116    
117            public static com.liferay.portlet.social.model.SocialRequest updateSocialRequest(
118                    com.liferay.portlet.social.model.SocialRequest socialRequest,
119                    boolean merge)
120                    throws com.liferay.portal.kernel.exception.SystemException {
121                    return getService().updateSocialRequest(socialRequest, merge);
122            }
123    
124            public static com.liferay.portlet.social.model.SocialRequest addRequest(
125                    long userId, long groupId, java.lang.String className, long classPK,
126                    int type, java.lang.String extraData, long receiverUserId)
127                    throws com.liferay.portal.kernel.exception.PortalException,
128                            com.liferay.portal.kernel.exception.SystemException {
129                    return getService()
130                                       .addRequest(userId, groupId, className, classPK, type,
131                            extraData, receiverUserId);
132            }
133    
134            public static void deleteReceiverUserRequests(long receiverUserId)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    getService().deleteReceiverUserRequests(receiverUserId);
137            }
138    
139            public static void deleteRequest(long requestId)
140                    throws com.liferay.portal.kernel.exception.PortalException,
141                            com.liferay.portal.kernel.exception.SystemException {
142                    getService().deleteRequest(requestId);
143            }
144    
145            public static void deleteUserRequests(long userId)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    getService().deleteUserRequests(userId);
148            }
149    
150            public static java.util.List<com.liferay.portlet.social.model.SocialRequest> getReceiverUserRequests(
151                    long receiverUserId, int start, int end)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return getService().getReceiverUserRequests(receiverUserId, start, end);
154            }
155    
156            public static java.util.List<com.liferay.portlet.social.model.SocialRequest> getReceiverUserRequests(
157                    long receiverUserId, int status, int start, int end)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return getService()
160                                       .getReceiverUserRequests(receiverUserId, status, start, end);
161            }
162    
163            public static int getReceiverUserRequestsCount(long receiverUserId)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return getService().getReceiverUserRequestsCount(receiverUserId);
166            }
167    
168            public static int getReceiverUserRequestsCount(long receiverUserId,
169                    int status) throws com.liferay.portal.kernel.exception.SystemException {
170                    return getService().getReceiverUserRequestsCount(receiverUserId, status);
171            }
172    
173            public static java.util.List<com.liferay.portlet.social.model.SocialRequest> getUserRequests(
174                    long userId, int start, int end)
175                    throws com.liferay.portal.kernel.exception.SystemException {
176                    return getService().getUserRequests(userId, start, end);
177            }
178    
179            public static java.util.List<com.liferay.portlet.social.model.SocialRequest> getUserRequests(
180                    long userId, int status, int start, int end)
181                    throws com.liferay.portal.kernel.exception.SystemException {
182                    return getService().getUserRequests(userId, status, start, end);
183            }
184    
185            public static int getUserRequestsCount(long userId)
186                    throws com.liferay.portal.kernel.exception.SystemException {
187                    return getService().getUserRequestsCount(userId);
188            }
189    
190            public static int getUserRequestsCount(long userId, int status)
191                    throws com.liferay.portal.kernel.exception.SystemException {
192                    return getService().getUserRequestsCount(userId, status);
193            }
194    
195            public static boolean hasRequest(long userId, java.lang.String className,
196                    long classPK, int type, int status)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return getService().hasRequest(userId, className, classPK, type, status);
199            }
200    
201            public static boolean hasRequest(long userId, java.lang.String className,
202                    long classPK, int type, long receiverUserId, int status)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return getService()
205                                       .hasRequest(userId, className, classPK, type,
206                            receiverUserId, status);
207            }
208    
209            public static com.liferay.portlet.social.model.SocialRequest updateRequest(
210                    long requestId, int status,
211                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
212                    throws com.liferay.portal.kernel.exception.PortalException,
213                            com.liferay.portal.kernel.exception.SystemException {
214                    return getService().updateRequest(requestId, status, themeDisplay);
215            }
216    
217            public static SocialRequestLocalService getService() {
218                    if (_service == null) {
219                            _service = (SocialRequestLocalService)PortalBeanLocatorUtil.locate(SocialRequestLocalService.class.getName());
220                    }
221    
222                    return _service;
223            }
224    
225            public void setService(SocialRequestLocalService service) {
226                    _service = service;
227            }
228    
229            private static SocialRequestLocalService _service;
230    }