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, int 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            /**
218            * Returns the Spring bean ID for this bean.
219            *
220            * @return the Spring bean ID for this bean
221            */
222            @Override
223            public java.lang.String getBeanIdentifier() {
224                    return _membershipRequestLocalService.getBeanIdentifier();
225            }
226    
227            /**
228            * Returns the membership request with the primary key.
229            *
230            * @param membershipRequestId the primary key of the membership request
231            * @return the membership request
232            * @throws PortalException if a membership request with the primary key could not be found
233            */
234            @Override
235            public com.liferay.portal.model.MembershipRequest getMembershipRequest(
236                    long membershipRequestId)
237                    throws com.liferay.portal.kernel.exception.PortalException {
238                    return _membershipRequestLocalService.getMembershipRequest(membershipRequestId);
239            }
240    
241            /**
242            * Returns a range of all the membership requests.
243            *
244            * <p>
245            * 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.
246            * </p>
247            *
248            * @param start the lower bound of the range of membership requests
249            * @param end the upper bound of the range of membership requests (not inclusive)
250            * @return the range of membership requests
251            */
252            @Override
253            public java.util.List<com.liferay.portal.model.MembershipRequest> getMembershipRequests(
254                    int start, int end) {
255                    return _membershipRequestLocalService.getMembershipRequests(start, end);
256            }
257    
258            @Override
259            public java.util.List<com.liferay.portal.model.MembershipRequest> getMembershipRequests(
260                    long userId, long groupId, int statusId) {
261                    return _membershipRequestLocalService.getMembershipRequests(userId,
262                            groupId, statusId);
263            }
264    
265            /**
266            * Returns the number of membership requests.
267            *
268            * @return the number of membership requests
269            */
270            @Override
271            public int getMembershipRequestsCount() {
272                    return _membershipRequestLocalService.getMembershipRequestsCount();
273            }
274    
275            @Override
276            public com.liferay.portal.model.PersistedModel getPersistedModel(
277                    java.io.Serializable primaryKeyObj)
278                    throws com.liferay.portal.kernel.exception.PortalException {
279                    return _membershipRequestLocalService.getPersistedModel(primaryKeyObj);
280            }
281    
282            @Override
283            public boolean hasMembershipRequest(long userId, long groupId, int statusId) {
284                    return _membershipRequestLocalService.hasMembershipRequest(userId,
285                            groupId, statusId);
286            }
287    
288            @Override
289            public java.util.List<com.liferay.portal.model.MembershipRequest> search(
290                    long groupId, int status, int start, int end) {
291                    return _membershipRequestLocalService.search(groupId, status, start, end);
292            }
293    
294            @Override
295            public int searchCount(long groupId, int status) {
296                    return _membershipRequestLocalService.searchCount(groupId, status);
297            }
298    
299            /**
300            * Sets the Spring bean ID for this bean.
301            *
302            * @param beanIdentifier the Spring bean ID for this bean
303            */
304            @Override
305            public void setBeanIdentifier(java.lang.String beanIdentifier) {
306                    _membershipRequestLocalService.setBeanIdentifier(beanIdentifier);
307            }
308    
309            /**
310            * Updates the membership request in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
311            *
312            * @param membershipRequest the membership request
313            * @return the membership request that was updated
314            */
315            @Override
316            public com.liferay.portal.model.MembershipRequest updateMembershipRequest(
317                    com.liferay.portal.model.MembershipRequest membershipRequest) {
318                    return _membershipRequestLocalService.updateMembershipRequest(membershipRequest);
319            }
320    
321            @Override
322            public void updateStatus(long replierUserId, long membershipRequestId,
323                    java.lang.String replyComments, int statusId, boolean addUserToGroup,
324                    com.liferay.portal.service.ServiceContext serviceContext)
325                    throws com.liferay.portal.kernel.exception.PortalException {
326                    _membershipRequestLocalService.updateStatus(replierUserId,
327                            membershipRequestId, replyComments, statusId, addUserToGroup,
328                            serviceContext);
329            }
330    
331            /**
332             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
333             */
334            @Deprecated
335            public MembershipRequestLocalService getWrappedMembershipRequestLocalService() {
336                    return _membershipRequestLocalService;
337            }
338    
339            /**
340             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
341             */
342            @Deprecated
343            public void setWrappedMembershipRequestLocalService(
344                    MembershipRequestLocalService membershipRequestLocalService) {
345                    _membershipRequestLocalService = membershipRequestLocalService;
346            }
347    
348            @Override
349            public MembershipRequestLocalService getWrappedService() {
350                    return _membershipRequestLocalService;
351            }
352    
353            @Override
354            public void setWrappedService(
355                    MembershipRequestLocalService membershipRequestLocalService) {
356                    _membershipRequestLocalService = membershipRequestLocalService;
357            }
358    
359            private MembershipRequestLocalService _membershipRequestLocalService;
360    }