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            /**
218            * Returns the membership request with the primary key.
219            *
220            * @param membershipRequestId the primary key of the membership request
221            * @return the membership request
222            * @throws PortalException if a membership request with the primary key could not be found
223            */
224            @Override
225            public com.liferay.portal.model.MembershipRequest getMembershipRequest(
226                    long membershipRequestId)
227                    throws com.liferay.portal.kernel.exception.PortalException {
228                    return _membershipRequestLocalService.getMembershipRequest(membershipRequestId);
229            }
230    
231            /**
232            * Returns a range of all the membership requests.
233            *
234            * <p>
235            * 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.
236            * </p>
237            *
238            * @param start the lower bound of the range of membership requests
239            * @param end the upper bound of the range of membership requests (not inclusive)
240            * @return the range of membership requests
241            */
242            @Override
243            public java.util.List<com.liferay.portal.model.MembershipRequest> getMembershipRequests(
244                    int start, int end) {
245                    return _membershipRequestLocalService.getMembershipRequests(start, end);
246            }
247    
248            @Override
249            public java.util.List<com.liferay.portal.model.MembershipRequest> getMembershipRequests(
250                    long userId, long groupId, long statusId) {
251                    return _membershipRequestLocalService.getMembershipRequests(userId,
252                            groupId, statusId);
253            }
254    
255            /**
256            * Returns the number of membership requests.
257            *
258            * @return the number of membership requests
259            */
260            @Override
261            public int getMembershipRequestsCount() {
262                    return _membershipRequestLocalService.getMembershipRequestsCount();
263            }
264    
265            /**
266            * Returns the OSGi service identifier.
267            *
268            * @return the OSGi service identifier
269            */
270            @Override
271            public java.lang.String getOSGiServiceIdentifier() {
272                    return _membershipRequestLocalService.getOSGiServiceIdentifier();
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, long 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            * Updates the membership request in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
301            *
302            * @param membershipRequest the membership request
303            * @return the membership request that was updated
304            */
305            @Override
306            public com.liferay.portal.model.MembershipRequest updateMembershipRequest(
307                    com.liferay.portal.model.MembershipRequest membershipRequest) {
308                    return _membershipRequestLocalService.updateMembershipRequest(membershipRequest);
309            }
310    
311            @Override
312            public void updateStatus(long replierUserId, long membershipRequestId,
313                    java.lang.String replyComments, long statusId, boolean addUserToGroup,
314                    com.liferay.portal.service.ServiceContext serviceContext)
315                    throws com.liferay.portal.kernel.exception.PortalException {
316                    _membershipRequestLocalService.updateStatus(replierUserId,
317                            membershipRequestId, replyComments, statusId, addUserToGroup,
318                            serviceContext);
319            }
320    
321            /**
322             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
323             */
324            @Deprecated
325            public MembershipRequestLocalService getWrappedMembershipRequestLocalService() {
326                    return _membershipRequestLocalService;
327            }
328    
329            /**
330             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
331             */
332            @Deprecated
333            public void setWrappedMembershipRequestLocalService(
334                    MembershipRequestLocalService membershipRequestLocalService) {
335                    _membershipRequestLocalService = membershipRequestLocalService;
336            }
337    
338            @Override
339            public MembershipRequestLocalService getWrappedService() {
340                    return _membershipRequestLocalService;
341            }
342    
343            @Override
344            public void setWrappedService(
345                    MembershipRequestLocalService membershipRequestLocalService) {
346                    _membershipRequestLocalService = membershipRequestLocalService;
347            }
348    
349            private MembershipRequestLocalService _membershipRequestLocalService;
350    }