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