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