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