1
14
15 package com.liferay.portlet.social.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class SocialRequestLocalServiceUtil {
42 public static com.liferay.portlet.social.model.SocialRequest addSocialRequest(
43 com.liferay.portlet.social.model.SocialRequest socialRequest)
44 throws com.liferay.portal.SystemException {
45 return getService().addSocialRequest(socialRequest);
46 }
47
48 public static com.liferay.portlet.social.model.SocialRequest createSocialRequest(
49 long requestId) {
50 return getService().createSocialRequest(requestId);
51 }
52
53 public static void deleteSocialRequest(long requestId)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 getService().deleteSocialRequest(requestId);
57 }
58
59 public static void deleteSocialRequest(
60 com.liferay.portlet.social.model.SocialRequest socialRequest)
61 throws com.liferay.portal.SystemException {
62 getService().deleteSocialRequest(socialRequest);
63 }
64
65 @SuppressWarnings("rawtypes")
66 public static java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 @SuppressWarnings("rawtypes")
73 public static java.util.List dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException {
76 return getService().dynamicQuery(dynamicQuery, start, end);
77 }
78
79 @SuppressWarnings("rawtypes")
80 public static java.util.List dynamicQuery(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82 int end,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.SystemException {
85 return getService()
86 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87 }
88
89 public static int dynamicQueryCount(
90 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91 throws com.liferay.portal.SystemException {
92 return getService().dynamicQueryCount(dynamicQuery);
93 }
94
95 public static com.liferay.portlet.social.model.SocialRequest getSocialRequest(
96 long requestId)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService().getSocialRequest(requestId);
100 }
101
102 public static com.liferay.portlet.social.model.SocialRequest getSocialRequestByUuidAndGroupId(
103 java.lang.String uuid, long groupId)
104 throws com.liferay.portal.PortalException,
105 com.liferay.portal.SystemException {
106 return getService().getSocialRequestByUuidAndGroupId(uuid, groupId);
107 }
108
109 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> getSocialRequests(
110 int start, int end) throws com.liferay.portal.SystemException {
111 return getService().getSocialRequests(start, end);
112 }
113
114 public static int getSocialRequestsCount()
115 throws com.liferay.portal.SystemException {
116 return getService().getSocialRequestsCount();
117 }
118
119 public static com.liferay.portlet.social.model.SocialRequest updateSocialRequest(
120 com.liferay.portlet.social.model.SocialRequest socialRequest)
121 throws com.liferay.portal.SystemException {
122 return getService().updateSocialRequest(socialRequest);
123 }
124
125 public static com.liferay.portlet.social.model.SocialRequest updateSocialRequest(
126 com.liferay.portlet.social.model.SocialRequest socialRequest,
127 boolean merge) throws com.liferay.portal.SystemException {
128 return getService().updateSocialRequest(socialRequest, merge);
129 }
130
131 public static com.liferay.portlet.social.model.SocialRequest addRequest(
132 long userId, long groupId, java.lang.String className, long classPK,
133 int type, java.lang.String extraData, long receiverUserId)
134 throws com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException {
136 return getService()
137 .addRequest(userId, groupId, className, classPK, type,
138 extraData, receiverUserId);
139 }
140
141 public static void deleteReceiverUserRequests(long receiverUserId)
142 throws com.liferay.portal.SystemException {
143 getService().deleteReceiverUserRequests(receiverUserId);
144 }
145
146 public static void deleteRequest(long requestId)
147 throws com.liferay.portal.PortalException,
148 com.liferay.portal.SystemException {
149 getService().deleteRequest(requestId);
150 }
151
152 public static void deleteUserRequests(long userId)
153 throws com.liferay.portal.SystemException {
154 getService().deleteUserRequests(userId);
155 }
156
157 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> getReceiverUserRequests(
158 long receiverUserId, int start, int end)
159 throws com.liferay.portal.SystemException {
160 return getService().getReceiverUserRequests(receiverUserId, start, end);
161 }
162
163 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> getReceiverUserRequests(
164 long receiverUserId, int status, int start, int end)
165 throws com.liferay.portal.SystemException {
166 return getService()
167 .getReceiverUserRequests(receiverUserId, status, start, end);
168 }
169
170 public static int getReceiverUserRequestsCount(long receiverUserId)
171 throws com.liferay.portal.SystemException {
172 return getService().getReceiverUserRequestsCount(receiverUserId);
173 }
174
175 public static int getReceiverUserRequestsCount(long receiverUserId,
176 int status) throws com.liferay.portal.SystemException {
177 return getService().getReceiverUserRequestsCount(receiverUserId, status);
178 }
179
180 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> getUserRequests(
181 long userId, int start, int end)
182 throws com.liferay.portal.SystemException {
183 return getService().getUserRequests(userId, start, end);
184 }
185
186 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> getUserRequests(
187 long userId, int status, int start, int end)
188 throws com.liferay.portal.SystemException {
189 return getService().getUserRequests(userId, status, start, end);
190 }
191
192 public static int getUserRequestsCount(long userId)
193 throws com.liferay.portal.SystemException {
194 return getService().getUserRequestsCount(userId);
195 }
196
197 public static int getUserRequestsCount(long userId, int status)
198 throws com.liferay.portal.SystemException {
199 return getService().getUserRequestsCount(userId, status);
200 }
201
202 public static boolean hasRequest(long userId, java.lang.String className,
203 long classPK, int type, int status)
204 throws com.liferay.portal.SystemException {
205 return getService().hasRequest(userId, className, classPK, type, status);
206 }
207
208 public static boolean hasRequest(long userId, java.lang.String className,
209 long classPK, int type, long receiverUserId, int status)
210 throws com.liferay.portal.SystemException {
211 return getService()
212 .hasRequest(userId, className, classPK, type,
213 receiverUserId, status);
214 }
215
216 public static com.liferay.portlet.social.model.SocialRequest updateRequest(
217 long requestId, int status,
218 com.liferay.portal.theme.ThemeDisplay themeDisplay)
219 throws com.liferay.portal.PortalException,
220 com.liferay.portal.SystemException {
221 return getService().updateRequest(requestId, status, themeDisplay);
222 }
223
224 public static SocialRequestLocalService getService() {
225 if (_service == null) {
226 _service = (SocialRequestLocalService)PortalBeanLocatorUtil.locate(SocialRequestLocalService.class.getName());
227
228 ReferenceRegistry.registerReference(SocialRequestLocalServiceUtil.class,
229 "_service");
230 MethodCache.remove(SocialRequestLocalService.class);
231 }
232
233 return _service;
234 }
235
236 public void setService(SocialRequestLocalService service) {
237 MethodCache.remove(SocialRequestLocalService.class);
238
239 _service = service;
240
241 ReferenceRegistry.registerReference(SocialRequestLocalServiceUtil.class,
242 "_service");
243 MethodCache.remove(SocialRequestLocalService.class);
244 }
245
246 private static SocialRequestLocalService _service;
247 }