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            * @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. 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.
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. 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.
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. 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.
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            * Returns the Spring bean ID for this bean.
229            *
230            * @return the Spring bean ID for this bean
231            */
232            public java.lang.String getBeanIdentifier() {
233                    return _mbBanLocalService.getBeanIdentifier();
234            }
235    
236            /**
237            * Sets the Spring bean ID for this bean.
238            *
239            * @param beanIdentifier the Spring bean ID for this bean
240            */
241            public void setBeanIdentifier(java.lang.String beanIdentifier) {
242                    _mbBanLocalService.setBeanIdentifier(beanIdentifier);
243            }
244    
245            public com.liferay.portlet.messageboards.model.MBBan addBan(long userId,
246                    long banUserId, com.liferay.portal.service.ServiceContext serviceContext)
247                    throws com.liferay.portal.kernel.exception.PortalException,
248                            com.liferay.portal.kernel.exception.SystemException {
249                    return _mbBanLocalService.addBan(userId, banUserId, serviceContext);
250            }
251    
252            public void checkBan(long groupId, long banUserId)
253                    throws com.liferay.portal.kernel.exception.PortalException,
254                            com.liferay.portal.kernel.exception.SystemException {
255                    _mbBanLocalService.checkBan(groupId, banUserId);
256            }
257    
258            public void deleteBan(long banId)
259                    throws com.liferay.portal.kernel.exception.PortalException,
260                            com.liferay.portal.kernel.exception.SystemException {
261                    _mbBanLocalService.deleteBan(banId);
262            }
263    
264            public void deleteBan(long banUserId,
265                    com.liferay.portal.service.ServiceContext serviceContext)
266                    throws com.liferay.portal.kernel.exception.SystemException {
267                    _mbBanLocalService.deleteBan(banUserId, serviceContext);
268            }
269    
270            public void deleteBan(com.liferay.portlet.messageboards.model.MBBan ban)
271                    throws com.liferay.portal.kernel.exception.SystemException {
272                    _mbBanLocalService.deleteBan(ban);
273            }
274    
275            public void deleteBansByBanUserId(long banUserId)
276                    throws com.liferay.portal.kernel.exception.SystemException {
277                    _mbBanLocalService.deleteBansByBanUserId(banUserId);
278            }
279    
280            public void deleteBansByGroupId(long groupId)
281                    throws com.liferay.portal.kernel.exception.SystemException {
282                    _mbBanLocalService.deleteBansByGroupId(groupId);
283            }
284    
285            public void expireBans()
286                    throws com.liferay.portal.kernel.exception.SystemException {
287                    _mbBanLocalService.expireBans();
288            }
289    
290            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> getBans(
291                    long groupId, int start, int end)
292                    throws com.liferay.portal.kernel.exception.SystemException {
293                    return _mbBanLocalService.getBans(groupId, start, end);
294            }
295    
296            public int getBansCount(long groupId)
297                    throws com.liferay.portal.kernel.exception.SystemException {
298                    return _mbBanLocalService.getBansCount(groupId);
299            }
300    
301            public boolean hasBan(long groupId, long banUserId)
302                    throws com.liferay.portal.kernel.exception.SystemException {
303                    return _mbBanLocalService.hasBan(groupId, banUserId);
304            }
305    
306            /**
307             * @deprecated Renamed to {@link #getWrappedService}
308             */
309            public MBBanLocalService getWrappedMBBanLocalService() {
310                    return _mbBanLocalService;
311            }
312    
313            /**
314             * @deprecated Renamed to {@link #setWrappedService}
315             */
316            public void setWrappedMBBanLocalService(MBBanLocalService mbBanLocalService) {
317                    _mbBanLocalService = mbBanLocalService;
318            }
319    
320            public MBBanLocalService getWrappedService() {
321                    return _mbBanLocalService;
322            }
323    
324            public void setWrappedService(MBBanLocalService mbBanLocalService) {
325                    _mbBanLocalService = mbBanLocalService;
326            }
327    
328            private MBBanLocalService _mbBanLocalService;
329    }