001    /**
002     * Copyright (c) 2000-2010 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    /**
018     * <p>
019     * This class is a wrapper for {@link MBBanLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       MBBanLocalService
024     * @generated
025     */
026    public class MBBanLocalServiceWrapper implements MBBanLocalService {
027            public MBBanLocalServiceWrapper(MBBanLocalService mbBanLocalService) {
028                    _mbBanLocalService = mbBanLocalService;
029            }
030    
031            /**
032            * Adds the message boards ban to the database. Also notifies the appropriate model listeners.
033            *
034            * @param mbBan the message boards ban to add
035            * @return the message boards ban that was added
036            * @throws SystemException if a system exception occurred
037            */
038            public com.liferay.portlet.messageboards.model.MBBan addMBBan(
039                    com.liferay.portlet.messageboards.model.MBBan mbBan)
040                    throws com.liferay.portal.kernel.exception.SystemException {
041                    return _mbBanLocalService.addMBBan(mbBan);
042            }
043    
044            /**
045            * Creates a new message boards ban with the primary key. Does not add the message boards ban to the database.
046            *
047            * @param banId the primary key for the new message boards ban
048            * @return the new message boards ban
049            */
050            public com.liferay.portlet.messageboards.model.MBBan createMBBan(long banId) {
051                    return _mbBanLocalService.createMBBan(banId);
052            }
053    
054            /**
055            * Deletes the message boards ban with the primary key from the database. Also notifies the appropriate model listeners.
056            *
057            * @param banId the primary key of the message boards ban to delete
058            * @throws PortalException if a message boards ban with the primary key could not be found
059            * @throws SystemException if a system exception occurred
060            */
061            public void deleteMBBan(long banId)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    _mbBanLocalService.deleteMBBan(banId);
065            }
066    
067            /**
068            * Deletes the message boards ban from the database. Also notifies the appropriate model listeners.
069            *
070            * @param mbBan the message boards ban to delete
071            * @throws SystemException if a system exception occurred
072            */
073            public void deleteMBBan(com.liferay.portlet.messageboards.model.MBBan mbBan)
074                    throws com.liferay.portal.kernel.exception.SystemException {
075                    _mbBanLocalService.deleteMBBan(mbBan);
076            }
077    
078            /**
079            * Performs a dynamic query on the database and returns the matching rows.
080            *
081            * @param dynamicQuery the dynamic query to search with
082            * @return the matching rows
083            * @throws SystemException if a system exception occurred
084            */
085            @SuppressWarnings("rawtypes")
086            public java.util.List dynamicQuery(
087                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
088                    throws com.liferay.portal.kernel.exception.SystemException {
089                    return _mbBanLocalService.dynamicQuery(dynamicQuery);
090            }
091    
092            /**
093            * Performs a dynamic query on the database and returns a range of the matching rows.
094            *
095            * <p>
096            * 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.
097            * </p>
098            *
099            * @param dynamicQuery the dynamic query to search with
100            * @param start the lower bound of the range of model instances to return
101            * @param end the upper bound of the range of model instances to return (not inclusive)
102            * @return the range of matching rows
103            * @throws SystemException if a system exception occurred
104            */
105            @SuppressWarnings("rawtypes")
106            public java.util.List dynamicQuery(
107                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
108                    int end) throws com.liferay.portal.kernel.exception.SystemException {
109                    return _mbBanLocalService.dynamicQuery(dynamicQuery, start, end);
110            }
111    
112            /**
113            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
114            *
115            * <p>
116            * 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.
117            * </p>
118            *
119            * @param dynamicQuery the dynamic query to search with
120            * @param start the lower bound of the range of model instances to return
121            * @param end the upper bound of the range of model instances to return (not inclusive)
122            * @param orderByComparator the comparator to order the results by
123            * @return the ordered range of matching rows
124            * @throws SystemException if a system exception occurred
125            */
126            @SuppressWarnings("rawtypes")
127            public java.util.List dynamicQuery(
128                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129                    int end,
130                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
131                    throws com.liferay.portal.kernel.exception.SystemException {
132                    return _mbBanLocalService.dynamicQuery(dynamicQuery, start, end,
133                            orderByComparator);
134            }
135    
136            /**
137            * Counts the number of rows that match the dynamic query.
138            *
139            * @param dynamicQuery the dynamic query to search with
140            * @return the number of rows that match the dynamic query
141            * @throws SystemException if a system exception occurred
142            */
143            public long dynamicQueryCount(
144                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    return _mbBanLocalService.dynamicQueryCount(dynamicQuery);
147            }
148    
149            /**
150            * Gets the message boards ban with the primary key.
151            *
152            * @param banId the primary key of the message boards ban to get
153            * @return the message boards ban
154            * @throws PortalException if a message boards ban with the primary key could not be found
155            * @throws SystemException if a system exception occurred
156            */
157            public com.liferay.portlet.messageboards.model.MBBan getMBBan(long banId)
158                    throws com.liferay.portal.kernel.exception.PortalException,
159                            com.liferay.portal.kernel.exception.SystemException {
160                    return _mbBanLocalService.getMBBan(banId);
161            }
162    
163            /**
164            * Gets a range of all the message boards bans.
165            *
166            * <p>
167            * 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.
168            * </p>
169            *
170            * @param start the lower bound of the range of message boards bans to return
171            * @param end the upper bound of the range of message boards bans to return (not inclusive)
172            * @return the range of message boards bans
173            * @throws SystemException if a system exception occurred
174            */
175            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> getMBBans(
176                    int start, int end)
177                    throws com.liferay.portal.kernel.exception.SystemException {
178                    return _mbBanLocalService.getMBBans(start, end);
179            }
180    
181            /**
182            * Gets the number of message boards bans.
183            *
184            * @return the number of message boards bans
185            * @throws SystemException if a system exception occurred
186            */
187            public int getMBBansCount()
188                    throws com.liferay.portal.kernel.exception.SystemException {
189                    return _mbBanLocalService.getMBBansCount();
190            }
191    
192            /**
193            * Updates the message boards ban in the database. Also notifies the appropriate model listeners.
194            *
195            * @param mbBan the message boards ban to update
196            * @return the message boards ban that was updated
197            * @throws SystemException if a system exception occurred
198            */
199            public com.liferay.portlet.messageboards.model.MBBan updateMBBan(
200                    com.liferay.portlet.messageboards.model.MBBan mbBan)
201                    throws com.liferay.portal.kernel.exception.SystemException {
202                    return _mbBanLocalService.updateMBBan(mbBan);
203            }
204    
205            /**
206            * Updates the message boards ban in the database. Also notifies the appropriate model listeners.
207            *
208            * @param mbBan the message boards ban to update
209            * @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.
210            * @return the message boards ban that was updated
211            * @throws SystemException if a system exception occurred
212            */
213            public com.liferay.portlet.messageboards.model.MBBan updateMBBan(
214                    com.liferay.portlet.messageboards.model.MBBan mbBan, boolean merge)
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _mbBanLocalService.updateMBBan(mbBan, merge);
217            }
218    
219            public com.liferay.portlet.messageboards.model.MBBan addBan(long userId,
220                    long banUserId, com.liferay.portal.service.ServiceContext serviceContext)
221                    throws com.liferay.portal.kernel.exception.PortalException,
222                            com.liferay.portal.kernel.exception.SystemException {
223                    return _mbBanLocalService.addBan(userId, banUserId, serviceContext);
224            }
225    
226            public void checkBan(long groupId, long banUserId)
227                    throws com.liferay.portal.kernel.exception.PortalException,
228                            com.liferay.portal.kernel.exception.SystemException {
229                    _mbBanLocalService.checkBan(groupId, banUserId);
230            }
231    
232            public void deleteBan(long banUserId,
233                    com.liferay.portal.service.ServiceContext serviceContext)
234                    throws com.liferay.portal.kernel.exception.SystemException {
235                    _mbBanLocalService.deleteBan(banUserId, serviceContext);
236            }
237    
238            public void deleteBansByBanUserId(long banUserId)
239                    throws com.liferay.portal.kernel.exception.SystemException {
240                    _mbBanLocalService.deleteBansByBanUserId(banUserId);
241            }
242    
243            public void deleteBansByGroupId(long groupId)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    _mbBanLocalService.deleteBansByGroupId(groupId);
246            }
247    
248            public void expireBans()
249                    throws com.liferay.portal.kernel.exception.SystemException {
250                    _mbBanLocalService.expireBans();
251            }
252    
253            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> getBans(
254                    long groupId, int start, int end)
255                    throws com.liferay.portal.kernel.exception.SystemException {
256                    return _mbBanLocalService.getBans(groupId, start, end);
257            }
258    
259            public int getBansCount(long groupId)
260                    throws com.liferay.portal.kernel.exception.SystemException {
261                    return _mbBanLocalService.getBansCount(groupId);
262            }
263    
264            public boolean hasBan(long groupId, long banUserId)
265                    throws com.liferay.portal.kernel.exception.SystemException {
266                    return _mbBanLocalService.hasBan(groupId, banUserId);
267            }
268    
269            public MBBanLocalService getWrappedMBBanLocalService() {
270                    return _mbBanLocalService;
271            }
272    
273            private MBBanLocalService _mbBanLocalService;
274    }