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