2 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
4 * This library is free software; you can redistribute it and/or modify it under
5 * the terms of the GNU Lesser General Public License as published by the Free
6 * Software Foundation; either version 2.1 of the License, or (at your option)
9 * This library is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
15 package com.liferay.portal.service;
17 import com.liferay.portal.kernel.exception.PortalException;
18 import com.liferay.portal.kernel.exception.SystemException;
19 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
20 import com.liferay.portal.kernel.transaction.Isolation;
21 import com.liferay.portal.kernel.transaction.Propagation;
22 import com.liferay.portal.kernel.transaction.Transactional;
25 * The interface for the membership request remote service.
28 * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
31 * @author Brian Wing Shun Chan
32 * @see MembershipRequestServiceUtil
33 * @see com.liferay.portal.service.base.MembershipRequestServiceBaseImpl
34 * @see com.liferay.portal.service.impl.MembershipRequestServiceImpl
38 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
39 PortalException.class, SystemException.class})
40 public interface MembershipRequestService extends BaseService {
42 * NOTE FOR DEVELOPERS:
44 * Never modify or reference this interface directly. Always use {@link MembershipRequestServiceUtil} to access the membership request remote service. Add custom service methods to {@link com.liferay.portal.service.impl.MembershipRequestServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
48 * Returns the Spring bean ID for this bean.
50 * @return the Spring bean ID for this bean
52 public java.lang.String getBeanIdentifier();
55 * Sets the Spring bean ID for this bean.
57 * @param beanIdentifier the Spring bean ID for this bean
59 public void setBeanIdentifier(java.lang.String beanIdentifier);
61 public com.liferay.portal.model.MembershipRequest addMembershipRequest(
62 long groupId, java.lang.String comments,
63 com.liferay.portal.service.ServiceContext serviceContext)
64 throws com.liferay.portal.kernel.exception.PortalException,
65 com.liferay.portal.kernel.exception.SystemException;
67 public void deleteMembershipRequests(long groupId, int statusId)
68 throws com.liferay.portal.kernel.exception.PortalException,
69 com.liferay.portal.kernel.exception.SystemException;
71 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
72 public com.liferay.portal.model.MembershipRequest getMembershipRequest(
73 long membershipRequestId)
74 throws com.liferay.portal.kernel.exception.PortalException,
75 com.liferay.portal.kernel.exception.SystemException;
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public java.util.List<com.liferay.portal.model.MembershipRequest> getMembershipRequestByUserId(
80 throws com.liferay.portal.kernel.exception.PortalException,
81 com.liferay.portal.kernel.exception.SystemException;
83 public void updateStatus(long membershipRequestId,
84 java.lang.String reviewComments, int statusId,
85 com.liferay.portal.service.ServiceContext serviceContext)
86 throws com.liferay.portal.kernel.exception.PortalException,
87 com.liferay.portal.kernel.exception.SystemException;