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