001
014
015 package com.liferay.portal.kernel.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class MembershipRequestServiceUtil {
038
043 public static com.liferay.portal.kernel.model.MembershipRequest addMembershipRequest(
044 long groupId, java.lang.String comments, ServiceContext serviceContext)
045 throws com.liferay.portal.kernel.exception.PortalException {
046 return getService()
047 .addMembershipRequest(groupId, comments, serviceContext);
048 }
049
050 public static com.liferay.portal.kernel.model.MembershipRequest getMembershipRequest(
051 long membershipRequestId)
052 throws com.liferay.portal.kernel.exception.PortalException {
053 return getService().getMembershipRequest(membershipRequestId);
054 }
055
056
061 public static java.lang.String getOSGiServiceIdentifier() {
062 return getService().getOSGiServiceIdentifier();
063 }
064
065 public static void deleteMembershipRequests(long groupId, long statusId)
066 throws com.liferay.portal.kernel.exception.PortalException {
067 getService().deleteMembershipRequests(groupId, statusId);
068 }
069
070 public static void updateStatus(long membershipRequestId,
071 java.lang.String reviewComments, long statusId,
072 ServiceContext serviceContext)
073 throws com.liferay.portal.kernel.exception.PortalException {
074 getService()
075 .updateStatus(membershipRequestId, reviewComments, statusId,
076 serviceContext);
077 }
078
079 public static MembershipRequestService getService() {
080 if (_service == null) {
081 _service = (MembershipRequestService)PortalBeanLocatorUtil.locate(MembershipRequestService.class.getName());
082
083 ReferenceRegistry.registerReference(MembershipRequestServiceUtil.class,
084 "_service");
085 }
086
087 return _service;
088 }
089
090 private static MembershipRequestService _service;
091 }