001    /**
002     * Copyright (c) 2000-present 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.portal.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link MembershipRequestLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see MembershipRequestLocalService
024     * @generated
025     */
026    @ProviderType
027    public class MembershipRequestLocalServiceWrapper
028            implements MembershipRequestLocalService,
029                    ServiceWrapper<MembershipRequestLocalService> {
030            public MembershipRequestLocalServiceWrapper(
031                    MembershipRequestLocalService membershipRequestLocalService) {
032                    _membershipRequestLocalService = membershipRequestLocalService;
033            }
034    
035            /**
036            * Adds the membership request to the database. Also notifies the appropriate model listeners.
037            *
038            * @param membershipRequest the membership request
039            * @return the membership request that was added
040            */
041            @Override
042            public com.liferay.portal.model.MembershipRequest addMembershipRequest(
043                    com.liferay.portal.model.MembershipRequest membershipRequest) {
044                    return _membershipRequestLocalService.addMembershipRequest(membershipRequest);
045            }
046    
047            @Override
048            public com.liferay.portal.model.MembershipRequest addMembershipRequest(
049                    long userId, long groupId, java.lang.String comments,
050                    com.liferay.portal.service.ServiceContext serviceContext)
051                    throws com.liferay.portal.kernel.exception.PortalException {
052                    return _membershipRequestLocalService.addMembershipRequest(userId,
053                            groupId, comments, serviceContext);
054            }
055    
056            /**
057            * Creates a new membership request with the primary key. Does not add the membership request to the database.
058            *
059            * @param membershipRequestId the primary key for the new membership request
060            * @return the new membership request
061            */
062            @Override
063            public com.liferay.portal.model.MembershipRequest createMembershipRequest(
064                    long membershipRequestId) {
065                    return _membershipRequestLocalService.createMembershipRequest(membershipRequestId);
066            }
067    
068            /**
069            * Deletes the membership request from the database. Also notifies the appropriate model listeners.
070            *
071            * @param membershipRequest the membership request
072            * @return the membership request that was removed
073            */
074            @Override
075            public com.liferay.portal.model.MembershipRequest deleteMembershipRequest(
076                    com.liferay.portal.model.MembershipRequest membershipRequest) {
077                    return _membershipRequestLocalService.deleteMembershipRequest(membershipRequest);
078            }
079    
080            /**
081            * Deletes the membership request with the primary key from the database. Also notifies the appropriate model listeners.
082            *
083            * @param membershipRequestId the primary key of the membership request
084            * @return the membership request that was removed
085            * @throws PortalException if a membership request with the primary key could not be found
086            */
087            @Override
088            public com.liferay.portal.model.MembershipRequest deleteMembershipRequest(
089                    long membershipRequestId)
090                    throws com.liferay.portal.kernel.exception.PortalException {
091                    return _membershipRequestLocalService.deleteMembershipRequest(membershipRequestId);
092            }
093    
094            @Override
095            public void deleteMembershipRequests(long groupId) {
096                    _membershipRequestLocalService.deleteMembershipRequests(groupId);
097            }
098    
099            @Override
100            public void deleteMembershipRequests(long groupId, long statusId) {
101                    _membershipRequestLocalService.deleteMembershipRequests(groupId,
102                            statusId);
103            }
104    
105            @Override
106            public void deleteMembershipRequestsByUserId(long userId) {
107                    _membershipRequestLocalService.deleteMembershipRequestsByUserId(userId);
108            }
109    
110            /**
111            * @throws PortalException
112            */
113            @Override
114            public com.liferay.portal.model.PersistedModel deletePersistedModel(
115                    com.liferay.portal.model.PersistedModel persistedModel)
116                    throws com.liferay.portal.kernel.exception.PortalException {
117                    return _membershipRequestLocalService.deletePersistedModel(persistedModel);
118            }
119    
120            @Override
121            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
122                    return _membershipRequestLocalService.dynamicQuery();
123            }
124    
125            /**
126            * Performs a dynamic query on the database and returns the matching rows.
127            *
128            * @param dynamicQuery the dynamic query
129            * @return the matching rows
130            */
131            @Override
132            public <T> java.util.List<T> dynamicQuery(
133                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
134                    return _membershipRequestLocalService.dynamicQuery(dynamicQuery);
135            }
136    
137            /**
138            * Performs a dynamic query on the database and returns a range of the matching rows.
139            *
140            * <p>
141            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.MembershipRequestModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
142            * </p>
143            *
144            * @param dynamicQuery the dynamic query
145            * @param start the lower bound of the range of model instances
146            * @param end the upper bound of the range of model instances (not inclusive)
147            * @return the range of matching rows
148            */
149            @Override
150            public <T> java.util.List<T> dynamicQuery(
151                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
152                    int end) {
153                    return _membershipRequestLocalService.dynamicQuery(dynamicQuery, start,
154                            end);
155            }
156    
157            /**
158            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
159            *
160            * <p>
161            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.MembershipRequestModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
162            * </p>
163            *
164            * @param dynamicQuery the dynamic query
165            * @param start the lower bound of the range of model instances
166            * @param end the upper bound of the range of model instances (not inclusive)
167            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
168            * @return the ordered range of matching rows
169            */
170            @Override
171            public <T> java.util.List<T> dynamicQuery(
172                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
173                    int end,
174                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
175                    return _membershipRequestLocalService.dynamicQuery(dynamicQuery, start,
176                            end, orderByComparator);
177            }
178    
179            /**
180            * Returns the number of rows matching the dynamic query.
181            *
182            * @param dynamicQuery the dynamic query
183            * @return the number of rows matching the dynamic query
184            */
185            @Override
186            public long dynamicQueryCount(
187                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
188                    return _membershipRequestLocalService.dynamicQueryCount(dynamicQuery);
189            }
190    
191            /**
192            * Returns the number of rows matching the dynamic query.
193            *
194            * @param dynamicQuery the dynamic query
195            * @param projection the projection to apply to the query
196            * @return the number of rows matching the dynamic query
197            */
198            @Override
199            public long dynamicQueryCount(
200                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
201                    com.liferay.portal.kernel.dao.orm.Projection projection) {
202                    return _membershipRequestLocalService.dynamicQueryCount(dynamicQuery,
203                            projection);
204            }
205    
206            @Override
207            public com.liferay.portal.model.MembershipRequest fetchMembershipRequest(
208                    long membershipRequestId) {
209                    return _membershipRequestLocalService.fetchMembershipRequest(membershipRequestId);
210            }
211    
212            @Override
213            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
214                    return _membershipRequestLocalService.getActionableDynamicQuery();
215            }
216    
217            @Override
218            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
219                    return _membershipRequestLocalService.getIndexableActionableDynamicQuery();
220            }
221    
222            /**
223            * Returns the membership request with the primary key.
224            *
225            * @param membershipRequestId the primary key of the membership request
226            * @return the membership request
227            * @throws PortalException if a membership request with the primary key could not be found
228            */
229            @Override
230            public com.liferay.portal.model.MembershipRequest getMembershipRequest(
231                    long membershipRequestId)
232                    throws com.liferay.portal.kernel.exception.PortalException {
233                    return _membershipRequestLocalService.getMembershipRequest(membershipRequestId);
234            }
235    
236            /**
237            * Returns a range of all the membership requests.
238            *
239            * <p>
240            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.MembershipRequestModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
241            * </p>
242            *
243            * @param start the lower bound of the range of membership requests
244            * @param end the upper bound of the range of membership requests (not inclusive)
245            * @return the range of membership requests
246            */
247            @Override
248            public java.util.List<com.liferay.portal.model.MembershipRequest> getMembershipRequests(
249                    int start, int end) {
250                    return _membershipRequestLocalService.getMembershipRequests(start, end);
251            }
252    
253            @Override
254            public java.util.List<com.liferay.portal.model.MembershipRequest> getMembershipRequests(
255                    long userId, long groupId, long statusId) {
256                    return _membershipRequestLocalService.getMembershipRequests(userId,
257                            groupId, statusId);
258            }
259    
260            /**
261            * Returns the number of membership requests.
262            *
263            * @return the number of membership requests
264            */
265            @Override
266            public int getMembershipRequestsCount() {
267                    return _membershipRequestLocalService.getMembershipRequestsCount();
268            }
269    
270            /**
271            * Returns the OSGi service identifier.
272            *
273            * @return the OSGi service identifier
274            */
275            @Override
276            public java.lang.String getOSGiServiceIdentifier() {
277                    return _membershipRequestLocalService.getOSGiServiceIdentifier();
278            }
279    
280            @Override
281            public com.liferay.portal.model.PersistedModel getPersistedModel(
282                    java.io.Serializable primaryKeyObj)
283                    throws com.liferay.portal.kernel.exception.PortalException {
284                    return _membershipRequestLocalService.getPersistedModel(primaryKeyObj);
285            }
286    
287            @Override
288            public boolean hasMembershipRequest(long userId, long groupId, long statusId) {
289                    return _membershipRequestLocalService.hasMembershipRequest(userId,
290                            groupId, statusId);
291            }
292    
293            @Override
294            public java.util.List<com.liferay.portal.model.MembershipRequest> search(
295                    long groupId, int status, int start, int end) {
296                    return _membershipRequestLocalService.search(groupId, status, start, end);
297            }
298    
299            @Override
300            public int searchCount(long groupId, int status) {
301                    return _membershipRequestLocalService.searchCount(groupId, status);
302            }
303    
304            /**
305            * Updates the membership request in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
306            *
307            * @param membershipRequest the membership request
308            * @return the membership request that was updated
309            */
310            @Override
311            public com.liferay.portal.model.MembershipRequest updateMembershipRequest(
312                    com.liferay.portal.model.MembershipRequest membershipRequest) {
313                    return _membershipRequestLocalService.updateMembershipRequest(membershipRequest);
314            }
315    
316            @Override
317            public void updateStatus(long replierUserId, long membershipRequestId,
318                    java.lang.String replyComments, long statusId, boolean addUserToGroup,
319                    com.liferay.portal.service.ServiceContext serviceContext)
320                    throws com.liferay.portal.kernel.exception.PortalException {
321                    _membershipRequestLocalService.updateStatus(replierUserId,
322                            membershipRequestId, replyComments, statusId, addUserToGroup,
323                            serviceContext);
324            }
325    
326            @Override
327            public MembershipRequestLocalService getWrappedService() {
328                    return _membershipRequestLocalService;
329            }
330    
331            @Override
332            public void setWrappedService(
333                    MembershipRequestLocalService membershipRequestLocalService) {
334                    _membershipRequestLocalService = membershipRequestLocalService;
335            }
336    
337            private MembershipRequestLocalService _membershipRequestLocalService;
338    }