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.portlet.messageboards.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link MBBanLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see MBBanLocalService
026     * @generated
027     */
028    @ProviderType
029    public class MBBanLocalServiceWrapper implements MBBanLocalService,
030            ServiceWrapper<MBBanLocalService> {
031            public MBBanLocalServiceWrapper(MBBanLocalService mbBanLocalService) {
032                    _mbBanLocalService = mbBanLocalService;
033            }
034    
035            @Override
036            public com.liferay.portlet.messageboards.model.MBBan addBan(long userId,
037                    long banUserId, com.liferay.portal.service.ServiceContext serviceContext)
038                    throws com.liferay.portal.kernel.exception.PortalException {
039                    return _mbBanLocalService.addBan(userId, banUserId, serviceContext);
040            }
041    
042            /**
043            * Adds the message boards ban to the database. Also notifies the appropriate model listeners.
044            *
045            * @param mbBan the message boards ban
046            * @return the message boards ban that was added
047            */
048            @Override
049            public com.liferay.portlet.messageboards.model.MBBan addMBBan(
050                    com.liferay.portlet.messageboards.model.MBBan mbBan) {
051                    return _mbBanLocalService.addMBBan(mbBan);
052            }
053    
054            @Override
055            public void checkBan(long groupId, long banUserId)
056                    throws com.liferay.portal.kernel.exception.PortalException {
057                    _mbBanLocalService.checkBan(groupId, banUserId);
058            }
059    
060            /**
061            * Creates a new message boards ban with the primary key. Does not add the message boards ban to the database.
062            *
063            * @param banId the primary key for the new message boards ban
064            * @return the new message boards ban
065            */
066            @Override
067            public com.liferay.portlet.messageboards.model.MBBan createMBBan(long banId) {
068                    return _mbBanLocalService.createMBBan(banId);
069            }
070    
071            @Override
072            public void deleteBan(com.liferay.portlet.messageboards.model.MBBan ban) {
073                    _mbBanLocalService.deleteBan(ban);
074            }
075    
076            @Override
077            public void deleteBan(long banId)
078                    throws com.liferay.portal.kernel.exception.PortalException {
079                    _mbBanLocalService.deleteBan(banId);
080            }
081    
082            @Override
083            public void deleteBan(long banUserId,
084                    com.liferay.portal.service.ServiceContext serviceContext) {
085                    _mbBanLocalService.deleteBan(banUserId, serviceContext);
086            }
087    
088            @Override
089            public void deleteBansByBanUserId(long banUserId) {
090                    _mbBanLocalService.deleteBansByBanUserId(banUserId);
091            }
092    
093            @Override
094            public void deleteBansByGroupId(long groupId) {
095                    _mbBanLocalService.deleteBansByGroupId(groupId);
096            }
097    
098            /**
099            * Deletes the message boards ban with the primary key from the database. Also notifies the appropriate model listeners.
100            *
101            * @param banId the primary key of the message boards ban
102            * @return the message boards ban that was removed
103            * @throws PortalException if a message boards ban with the primary key could not be found
104            */
105            @Override
106            public com.liferay.portlet.messageboards.model.MBBan deleteMBBan(long banId)
107                    throws com.liferay.portal.kernel.exception.PortalException {
108                    return _mbBanLocalService.deleteMBBan(banId);
109            }
110    
111            /**
112            * Deletes the message boards ban from the database. Also notifies the appropriate model listeners.
113            *
114            * @param mbBan the message boards ban
115            * @return the message boards ban that was removed
116            */
117            @Override
118            public com.liferay.portlet.messageboards.model.MBBan deleteMBBan(
119                    com.liferay.portlet.messageboards.model.MBBan mbBan) {
120                    return _mbBanLocalService.deleteMBBan(mbBan);
121            }
122    
123            /**
124            * @throws PortalException
125            */
126            @Override
127            public com.liferay.portal.model.PersistedModel deletePersistedModel(
128                    com.liferay.portal.model.PersistedModel persistedModel)
129                    throws com.liferay.portal.kernel.exception.PortalException {
130                    return _mbBanLocalService.deletePersistedModel(persistedModel);
131            }
132    
133            @Override
134            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
135                    return _mbBanLocalService.dynamicQuery();
136            }
137    
138            /**
139            * Performs a dynamic query on the database and returns the matching rows.
140            *
141            * @param dynamicQuery the dynamic query
142            * @return the matching rows
143            */
144            @Override
145            public <T> java.util.List<T> dynamicQuery(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
147                    return _mbBanLocalService.dynamicQuery(dynamicQuery);
148            }
149    
150            /**
151            * Performs a dynamic query on the database and returns a range of the matching rows.
152            *
153            * <p>
154            * 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.portlet.messageboards.model.impl.MBBanModelImpl}. 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.
155            * </p>
156            *
157            * @param dynamicQuery the dynamic query
158            * @param start the lower bound of the range of model instances
159            * @param end the upper bound of the range of model instances (not inclusive)
160            * @return the range of matching rows
161            */
162            @Override
163            public <T> java.util.List<T> dynamicQuery(
164                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
165                    int end) {
166                    return _mbBanLocalService.dynamicQuery(dynamicQuery, start, end);
167            }
168    
169            /**
170            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
171            *
172            * <p>
173            * 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.portlet.messageboards.model.impl.MBBanModelImpl}. 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.
174            * </p>
175            *
176            * @param dynamicQuery the dynamic query
177            * @param start the lower bound of the range of model instances
178            * @param end the upper bound of the range of model instances (not inclusive)
179            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
180            * @return the ordered range of matching rows
181            */
182            @Override
183            public <T> java.util.List<T> dynamicQuery(
184                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
185                    int end,
186                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
187                    return _mbBanLocalService.dynamicQuery(dynamicQuery, start, end,
188                            orderByComparator);
189            }
190    
191            /**
192            * Returns the number of rows matching the dynamic query.
193            *
194            * @param dynamicQuery the dynamic query
195            * @return the number of rows matching the dynamic query
196            */
197            @Override
198            public long dynamicQueryCount(
199                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
200                    return _mbBanLocalService.dynamicQueryCount(dynamicQuery);
201            }
202    
203            /**
204            * Returns the number of rows matching the dynamic query.
205            *
206            * @param dynamicQuery the dynamic query
207            * @param projection the projection to apply to the query
208            * @return the number of rows matching the dynamic query
209            */
210            @Override
211            public long dynamicQueryCount(
212                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
213                    com.liferay.portal.kernel.dao.orm.Projection projection) {
214                    return _mbBanLocalService.dynamicQueryCount(dynamicQuery, projection);
215            }
216    
217            @Override
218            public void expireBans() {
219                    _mbBanLocalService.expireBans();
220            }
221    
222            @Override
223            public com.liferay.portlet.messageboards.model.MBBan fetchMBBan(long banId) {
224                    return _mbBanLocalService.fetchMBBan(banId);
225            }
226    
227            /**
228            * Returns the message boards ban matching the UUID and group.
229            *
230            * @param uuid the message boards ban's UUID
231            * @param groupId the primary key of the group
232            * @return the matching message boards ban, or <code>null</code> if a matching message boards ban could not be found
233            */
234            @Override
235            public com.liferay.portlet.messageboards.model.MBBan fetchMBBanByUuidAndGroupId(
236                    java.lang.String uuid, long groupId) {
237                    return _mbBanLocalService.fetchMBBanByUuidAndGroupId(uuid, groupId);
238            }
239    
240            @Override
241            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
242                    return _mbBanLocalService.getActionableDynamicQuery();
243            }
244    
245            @Override
246            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> getBans(
247                    long groupId, int start, int end) {
248                    return _mbBanLocalService.getBans(groupId, start, end);
249            }
250    
251            @Override
252            public int getBansCount(long groupId) {
253                    return _mbBanLocalService.getBansCount(groupId);
254            }
255    
256            @Override
257            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
258                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
259                    return _mbBanLocalService.getExportActionableDynamicQuery(portletDataContext);
260            }
261    
262            @Override
263            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
264                    return _mbBanLocalService.getIndexableActionableDynamicQuery();
265            }
266    
267            /**
268            * Returns the message boards ban with the primary key.
269            *
270            * @param banId the primary key of the message boards ban
271            * @return the message boards ban
272            * @throws PortalException if a message boards ban with the primary key could not be found
273            */
274            @Override
275            public com.liferay.portlet.messageboards.model.MBBan getMBBan(long banId)
276                    throws com.liferay.portal.kernel.exception.PortalException {
277                    return _mbBanLocalService.getMBBan(banId);
278            }
279    
280            /**
281            * Returns the message boards ban matching the UUID and group.
282            *
283            * @param uuid the message boards ban's UUID
284            * @param groupId the primary key of the group
285            * @return the matching message boards ban
286            * @throws PortalException if a matching message boards ban could not be found
287            */
288            @Override
289            public com.liferay.portlet.messageboards.model.MBBan getMBBanByUuidAndGroupId(
290                    java.lang.String uuid, long groupId)
291                    throws com.liferay.portal.kernel.exception.PortalException {
292                    return _mbBanLocalService.getMBBanByUuidAndGroupId(uuid, groupId);
293            }
294    
295            /**
296            * Returns a range of all the message boards bans.
297            *
298            * <p>
299            * 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.portlet.messageboards.model.impl.MBBanModelImpl}. 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.
300            * </p>
301            *
302            * @param start the lower bound of the range of message boards bans
303            * @param end the upper bound of the range of message boards bans (not inclusive)
304            * @return the range of message boards bans
305            */
306            @Override
307            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> getMBBans(
308                    int start, int end) {
309                    return _mbBanLocalService.getMBBans(start, end);
310            }
311    
312            /**
313            * Returns all the message boards bans matching the UUID and company.
314            *
315            * @param uuid the UUID of the message boards bans
316            * @param companyId the primary key of the company
317            * @return the matching message boards bans, or an empty list if no matches were found
318            */
319            @Override
320            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> getMBBansByUuidAndCompanyId(
321                    java.lang.String uuid, long companyId) {
322                    return _mbBanLocalService.getMBBansByUuidAndCompanyId(uuid, companyId);
323            }
324    
325            /**
326            * Returns a range of message boards bans matching the UUID and company.
327            *
328            * @param uuid the UUID of the message boards bans
329            * @param companyId the primary key of the company
330            * @param start the lower bound of the range of message boards bans
331            * @param end the upper bound of the range of message boards bans (not inclusive)
332            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
333            * @return the range of matching message boards bans, or an empty list if no matches were found
334            */
335            @Override
336            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> getMBBansByUuidAndCompanyId(
337                    java.lang.String uuid, long companyId, int start, int end,
338                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBBan> orderByComparator) {
339                    return _mbBanLocalService.getMBBansByUuidAndCompanyId(uuid, companyId,
340                            start, end, orderByComparator);
341            }
342    
343            /**
344            * Returns the number of message boards bans.
345            *
346            * @return the number of message boards bans
347            */
348            @Override
349            public int getMBBansCount() {
350                    return _mbBanLocalService.getMBBansCount();
351            }
352    
353            /**
354            * Returns the OSGi service identifier.
355            *
356            * @return the OSGi service identifier
357            */
358            @Override
359            public java.lang.String getOSGiServiceIdentifier() {
360                    return _mbBanLocalService.getOSGiServiceIdentifier();
361            }
362    
363            @Override
364            public com.liferay.portal.model.PersistedModel getPersistedModel(
365                    java.io.Serializable primaryKeyObj)
366                    throws com.liferay.portal.kernel.exception.PortalException {
367                    return _mbBanLocalService.getPersistedModel(primaryKeyObj);
368            }
369    
370            @Override
371            public boolean hasBan(long groupId, long banUserId) {
372                    return _mbBanLocalService.hasBan(groupId, banUserId);
373            }
374    
375            /**
376            * Updates the message boards ban in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
377            *
378            * @param mbBan the message boards ban
379            * @return the message boards ban that was updated
380            */
381            @Override
382            public com.liferay.portlet.messageboards.model.MBBan updateMBBan(
383                    com.liferay.portlet.messageboards.model.MBBan mbBan) {
384                    return _mbBanLocalService.updateMBBan(mbBan);
385            }
386    
387            @Override
388            public MBBanLocalService getWrappedService() {
389                    return _mbBanLocalService;
390            }
391    
392            @Override
393            public void setWrappedService(MBBanLocalService mbBanLocalService) {
394                    _mbBanLocalService = mbBanLocalService;
395            }
396    
397            private MBBanLocalService _mbBanLocalService;
398    }