001    /**
002     * Copyright (c) 2000-2012 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     * <p>
021     * This class is a wrapper for {@link MBBanLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       MBBanLocalService
026     * @generated
027     */
028    public class MBBanLocalServiceWrapper implements MBBanLocalService,
029            ServiceWrapper<MBBanLocalService> {
030            public MBBanLocalServiceWrapper(MBBanLocalService mbBanLocalService) {
031                    _mbBanLocalService = mbBanLocalService;
032            }
033    
034            /**
035            * Adds the message boards ban to the database. Also notifies the appropriate model listeners.
036            *
037            * @param mbBan the message boards ban
038            * @return the message boards ban that was added
039            * @throws SystemException if a system exception occurred
040            */
041            public com.liferay.portlet.messageboards.model.MBBan addMBBan(
042                    com.liferay.portlet.messageboards.model.MBBan mbBan)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return _mbBanLocalService.addMBBan(mbBan);
045            }
046    
047            /**
048            * Creates a new message boards ban with the primary key. Does not add the message boards ban to the database.
049            *
050            * @param banId the primary key for the new message boards ban
051            * @return the new message boards ban
052            */
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            * @throws PortalException if a message boards ban with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteMBBan(long banId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _mbBanLocalService.deleteMBBan(banId);
068            }
069    
070            /**
071            * Deletes the message boards ban from the database. Also notifies the appropriate model listeners.
072            *
073            * @param mbBan the message boards ban
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteMBBan(com.liferay.portlet.messageboards.model.MBBan mbBan)
077                    throws com.liferay.portal.kernel.exception.SystemException {
078                    _mbBanLocalService.deleteMBBan(mbBan);
079            }
080    
081            /**
082            * Performs a dynamic query on the database and returns the matching rows.
083            *
084            * @param dynamicQuery the dynamic query
085            * @return the matching rows
086            * @throws SystemException if a system exception occurred
087            */
088            @SuppressWarnings("rawtypes")
089            public java.util.List dynamicQuery(
090                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
091                    throws com.liferay.portal.kernel.exception.SystemException {
092                    return _mbBanLocalService.dynamicQuery(dynamicQuery);
093            }
094    
095            /**
096            * Performs a dynamic query on the database and returns a range of the matching rows.
097            *
098            * <p>
099            * 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.
100            * </p>
101            *
102            * @param dynamicQuery the dynamic query
103            * @param start the lower bound of the range of model instances
104            * @param end the upper bound of the range of model instances (not inclusive)
105            * @return the range of matching rows
106            * @throws SystemException if a system exception occurred
107            */
108            @SuppressWarnings("rawtypes")
109            public java.util.List dynamicQuery(
110                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
111                    int end) throws com.liferay.portal.kernel.exception.SystemException {
112                    return _mbBanLocalService.dynamicQuery(dynamicQuery, start, end);
113            }
114    
115            /**
116            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
117            *
118            * <p>
119            * 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.
120            * </p>
121            *
122            * @param dynamicQuery the dynamic query
123            * @param start the lower bound of the range of model instances
124            * @param end the upper bound of the range of model instances (not inclusive)
125            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
126            * @return the ordered range of matching rows
127            * @throws SystemException if a system exception occurred
128            */
129            @SuppressWarnings("rawtypes")
130            public java.util.List dynamicQuery(
131                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
132                    int end,
133                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    return _mbBanLocalService.dynamicQuery(dynamicQuery, start, end,
136                            orderByComparator);
137            }
138    
139            /**
140            * Returns the number of rows that match the dynamic query.
141            *
142            * @param dynamicQuery the dynamic query
143            * @return the number of rows that match the dynamic query
144            * @throws SystemException if a system exception occurred
145            */
146            public long dynamicQueryCount(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return _mbBanLocalService.dynamicQueryCount(dynamicQuery);
150            }
151    
152            public com.liferay.portlet.messageboards.model.MBBan fetchMBBan(long banId)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return _mbBanLocalService.fetchMBBan(banId);
155            }
156    
157            /**
158            * Returns the message boards ban with the primary key.
159            *
160            * @param banId the primary key of the message boards ban
161            * @return the message boards ban
162            * @throws PortalException if a message boards ban with the primary key could not be found
163            * @throws SystemException if a system exception occurred
164            */
165            public com.liferay.portlet.messageboards.model.MBBan getMBBan(long banId)
166                    throws com.liferay.portal.kernel.exception.PortalException,
167                            com.liferay.portal.kernel.exception.SystemException {
168                    return _mbBanLocalService.getMBBan(banId);
169            }
170    
171            public com.liferay.portal.model.PersistedModel getPersistedModel(
172                    java.io.Serializable primaryKeyObj)
173                    throws com.liferay.portal.kernel.exception.PortalException,
174                            com.liferay.portal.kernel.exception.SystemException {
175                    return _mbBanLocalService.getPersistedModel(primaryKeyObj);
176            }
177    
178            /**
179            * Returns a range of all the message boards bans.
180            *
181            * <p>
182            * 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.
183            * </p>
184            *
185            * @param start the lower bound of the range of message boards bans
186            * @param end the upper bound of the range of message boards bans (not inclusive)
187            * @return the range of message boards bans
188            * @throws SystemException if a system exception occurred
189            */
190            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> getMBBans(
191                    int start, int end)
192                    throws com.liferay.portal.kernel.exception.SystemException {
193                    return _mbBanLocalService.getMBBans(start, end);
194            }
195    
196            /**
197            * Returns the number of message boards bans.
198            *
199            * @return the number of message boards bans
200            * @throws SystemException if a system exception occurred
201            */
202            public int getMBBansCount()
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return _mbBanLocalService.getMBBansCount();
205            }
206    
207            /**
208            * Updates the message boards ban in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
209            *
210            * @param mbBan the message boards ban
211            * @return the message boards ban that was updated
212            * @throws SystemException if a system exception occurred
213            */
214            public com.liferay.portlet.messageboards.model.MBBan updateMBBan(
215                    com.liferay.portlet.messageboards.model.MBBan mbBan)
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return _mbBanLocalService.updateMBBan(mbBan);
218            }
219    
220            /**
221            * Updates the message boards ban in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
222            *
223            * @param mbBan the message boards ban
224            * @param merge whether to merge the message boards ban with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
225            * @return the message boards ban that was updated
226            * @throws SystemException if a system exception occurred
227            */
228            public com.liferay.portlet.messageboards.model.MBBan updateMBBan(
229                    com.liferay.portlet.messageboards.model.MBBan mbBan, boolean merge)
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    return _mbBanLocalService.updateMBBan(mbBan, merge);
232            }
233    
234            /**
235            * Returns the Spring bean ID for this bean.
236            *
237            * @return the Spring bean ID for this bean
238            */
239            public java.lang.String getBeanIdentifier() {
240                    return _mbBanLocalService.getBeanIdentifier();
241            }
242    
243            /**
244            * Sets the Spring bean ID for this bean.
245            *
246            * @param beanIdentifier the Spring bean ID for this bean
247            */
248            public void setBeanIdentifier(java.lang.String beanIdentifier) {
249                    _mbBanLocalService.setBeanIdentifier(beanIdentifier);
250            }
251    
252            public com.liferay.portlet.messageboards.model.MBBan addBan(long userId,
253                    long banUserId, com.liferay.portal.service.ServiceContext serviceContext)
254                    throws com.liferay.portal.kernel.exception.PortalException,
255                            com.liferay.portal.kernel.exception.SystemException {
256                    return _mbBanLocalService.addBan(userId, banUserId, serviceContext);
257            }
258    
259            public void checkBan(long groupId, long banUserId)
260                    throws com.liferay.portal.kernel.exception.PortalException,
261                            com.liferay.portal.kernel.exception.SystemException {
262                    _mbBanLocalService.checkBan(groupId, banUserId);
263            }
264    
265            public void deleteBan(long banId)
266                    throws com.liferay.portal.kernel.exception.PortalException,
267                            com.liferay.portal.kernel.exception.SystemException {
268                    _mbBanLocalService.deleteBan(banId);
269            }
270    
271            public void deleteBan(long banUserId,
272                    com.liferay.portal.service.ServiceContext serviceContext)
273                    throws com.liferay.portal.kernel.exception.SystemException {
274                    _mbBanLocalService.deleteBan(banUserId, serviceContext);
275            }
276    
277            public void deleteBan(com.liferay.portlet.messageboards.model.MBBan ban)
278                    throws com.liferay.portal.kernel.exception.SystemException {
279                    _mbBanLocalService.deleteBan(ban);
280            }
281    
282            public void deleteBansByBanUserId(long banUserId)
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    _mbBanLocalService.deleteBansByBanUserId(banUserId);
285            }
286    
287            public void deleteBansByGroupId(long groupId)
288                    throws com.liferay.portal.kernel.exception.SystemException {
289                    _mbBanLocalService.deleteBansByGroupId(groupId);
290            }
291    
292            public void expireBans()
293                    throws com.liferay.portal.kernel.exception.SystemException {
294                    _mbBanLocalService.expireBans();
295            }
296    
297            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> getBans(
298                    long groupId, int start, int end)
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    return _mbBanLocalService.getBans(groupId, start, end);
301            }
302    
303            public int getBansCount(long groupId)
304                    throws com.liferay.portal.kernel.exception.SystemException {
305                    return _mbBanLocalService.getBansCount(groupId);
306            }
307    
308            public boolean hasBan(long groupId, long banUserId)
309                    throws com.liferay.portal.kernel.exception.SystemException {
310                    return _mbBanLocalService.hasBan(groupId, banUserId);
311            }
312    
313            /**
314             * @deprecated Renamed to {@link #getWrappedService}
315             */
316            public MBBanLocalService getWrappedMBBanLocalService() {
317                    return _mbBanLocalService;
318            }
319    
320            /**
321             * @deprecated Renamed to {@link #setWrappedService}
322             */
323            public void setWrappedMBBanLocalService(MBBanLocalService mbBanLocalService) {
324                    _mbBanLocalService = mbBanLocalService;
325            }
326    
327            public MBBanLocalService getWrappedService() {
328                    return _mbBanLocalService;
329            }
330    
331            public void setWrappedService(MBBanLocalService mbBanLocalService) {
332                    _mbBanLocalService = mbBanLocalService;
333            }
334    
335            private MBBanLocalService _mbBanLocalService;
336    }