001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class MembershipRequestLocalServiceUtil {
034
039
040
047 public static com.liferay.portal.model.MembershipRequest addMembershipRequest(
048 com.liferay.portal.model.MembershipRequest membershipRequest)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addMembershipRequest(membershipRequest);
051 }
052
053
059 public static com.liferay.portal.model.MembershipRequest createMembershipRequest(
060 long membershipRequestId) {
061 return getService().createMembershipRequest(membershipRequestId);
062 }
063
064
072 public static com.liferay.portal.model.MembershipRequest deleteMembershipRequest(
073 long membershipRequestId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteMembershipRequest(membershipRequestId);
077 }
078
079
086 public static com.liferay.portal.model.MembershipRequest deleteMembershipRequest(
087 com.liferay.portal.model.MembershipRequest membershipRequest)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteMembershipRequest(membershipRequest);
090 }
091
092 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093 return getService().dynamicQuery();
094 }
095
096
103 @SuppressWarnings("rawtypes")
104 public static java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().dynamicQuery(dynamicQuery);
108 }
109
110
123 @SuppressWarnings("rawtypes")
124 public static java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().dynamicQuery(dynamicQuery, start, end);
128 }
129
130
144 @SuppressWarnings("rawtypes")
145 public static java.util.List dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152 }
153
154
161 public static long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().dynamicQueryCount(dynamicQuery);
165 }
166
167 public static com.liferay.portal.model.MembershipRequest fetchMembershipRequest(
168 long membershipRequestId)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().fetchMembershipRequest(membershipRequestId);
171 }
172
173
181 public static com.liferay.portal.model.MembershipRequest getMembershipRequest(
182 long membershipRequestId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getMembershipRequest(membershipRequestId);
186 }
187
188 public static com.liferay.portal.model.PersistedModel getPersistedModel(
189 java.io.Serializable primaryKeyObj)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException {
192 return getService().getPersistedModel(primaryKeyObj);
193 }
194
195
207 public static java.util.List<com.liferay.portal.model.MembershipRequest> getMembershipRequests(
208 int start, int end)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getService().getMembershipRequests(start, end);
211 }
212
213
219 public static int getMembershipRequestsCount()
220 throws com.liferay.portal.kernel.exception.SystemException {
221 return getService().getMembershipRequestsCount();
222 }
223
224
231 public static com.liferay.portal.model.MembershipRequest updateMembershipRequest(
232 com.liferay.portal.model.MembershipRequest membershipRequest)
233 throws com.liferay.portal.kernel.exception.SystemException {
234 return getService().updateMembershipRequest(membershipRequest);
235 }
236
237
245 public static com.liferay.portal.model.MembershipRequest updateMembershipRequest(
246 com.liferay.portal.model.MembershipRequest membershipRequest,
247 boolean merge)
248 throws com.liferay.portal.kernel.exception.SystemException {
249 return getService().updateMembershipRequest(membershipRequest, merge);
250 }
251
252
257 public static java.lang.String getBeanIdentifier() {
258 return getService().getBeanIdentifier();
259 }
260
261
266 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
267 getService().setBeanIdentifier(beanIdentifier);
268 }
269
270 public static com.liferay.portal.model.MembershipRequest addMembershipRequest(
271 long userId, long groupId, java.lang.String comments,
272 com.liferay.portal.service.ServiceContext serviceContext)
273 throws com.liferay.portal.kernel.exception.PortalException,
274 com.liferay.portal.kernel.exception.SystemException {
275 return getService()
276 .addMembershipRequest(userId, groupId, comments,
277 serviceContext);
278 }
279
280 public static void deleteMembershipRequests(long groupId)
281 throws com.liferay.portal.kernel.exception.SystemException {
282 getService().deleteMembershipRequests(groupId);
283 }
284
285 public static void deleteMembershipRequests(long groupId, int statusId)
286 throws com.liferay.portal.kernel.exception.SystemException {
287 getService().deleteMembershipRequests(groupId, statusId);
288 }
289
290 public static void deleteMembershipRequestsByUserId(long userId)
291 throws com.liferay.portal.kernel.exception.SystemException {
292 getService().deleteMembershipRequestsByUserId(userId);
293 }
294
295 public static java.util.List<com.liferay.portal.model.MembershipRequest> getMembershipRequests(
296 long userId, long groupId, int statusId)
297 throws com.liferay.portal.kernel.exception.SystemException {
298 return getService().getMembershipRequests(userId, groupId, statusId);
299 }
300
301 public static boolean hasMembershipRequest(long userId, long groupId,
302 int statusId)
303 throws com.liferay.portal.kernel.exception.SystemException {
304 return getService().hasMembershipRequest(userId, groupId, statusId);
305 }
306
307 public static java.util.List<com.liferay.portal.model.MembershipRequest> search(
308 long groupId, int status, int start, int end)
309 throws com.liferay.portal.kernel.exception.SystemException {
310 return getService().search(groupId, status, start, end);
311 }
312
313 public static int searchCount(long groupId, int status)
314 throws com.liferay.portal.kernel.exception.SystemException {
315 return getService().searchCount(groupId, status);
316 }
317
318 public static void updateStatus(long replierUserId,
319 long membershipRequestId, java.lang.String replyComments, int statusId,
320 boolean addUserToGroup,
321 com.liferay.portal.service.ServiceContext serviceContext)
322 throws com.liferay.portal.kernel.exception.PortalException,
323 com.liferay.portal.kernel.exception.SystemException {
324 getService()
325 .updateStatus(replierUserId, membershipRequestId, replyComments,
326 statusId, addUserToGroup, serviceContext);
327 }
328
329 public static MembershipRequestLocalService getService() {
330 if (_service == null) {
331 _service = (MembershipRequestLocalService)PortalBeanLocatorUtil.locate(MembershipRequestLocalService.class.getName());
332
333 ReferenceRegistry.registerReference(MembershipRequestLocalServiceUtil.class,
334 "_service");
335 }
336
337 return _service;
338 }
339
340
343 public void setService(MembershipRequestLocalService service) {
344 }
345
346 private static MembershipRequestLocalService _service;
347 }