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. 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 the message boards ban matching the UUID and group.
187            *
188            * @param uuid the message boards ban's UUID
189            * @param groupId the primary key of the group
190            * @return the matching message boards ban
191            * @throws PortalException if a matching message boards ban could not be found
192            * @throws SystemException if a system exception occurred
193            */
194            public com.liferay.portlet.messageboards.model.MBBan getMBBanByUuidAndGroupId(
195                    java.lang.String uuid, long groupId)
196                    throws com.liferay.portal.kernel.exception.PortalException,
197                            com.liferay.portal.kernel.exception.SystemException {
198                    return _mbBanLocalService.getMBBanByUuidAndGroupId(uuid, groupId);
199            }
200    
201            /**
202            * Returns a range of all the message boards bans.
203            *
204            * <p>
205            * 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.
206            * </p>
207            *
208            * @param start the lower bound of the range of message boards bans
209            * @param end the upper bound of the range of message boards bans (not inclusive)
210            * @return the range of message boards bans
211            * @throws SystemException if a system exception occurred
212            */
213            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> getMBBans(
214                    int start, int end)
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _mbBanLocalService.getMBBans(start, end);
217            }
218    
219            /**
220            * Returns the number of message boards bans.
221            *
222            * @return the number of message boards bans
223            * @throws SystemException if a system exception occurred
224            */
225            public int getMBBansCount()
226                    throws com.liferay.portal.kernel.exception.SystemException {
227                    return _mbBanLocalService.getMBBansCount();
228            }
229    
230            /**
231            * Updates the message boards ban in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
232            *
233            * @param mbBan the message boards ban
234            * @return the message boards ban that was updated
235            * @throws SystemException if a system exception occurred
236            */
237            public com.liferay.portlet.messageboards.model.MBBan updateMBBan(
238                    com.liferay.portlet.messageboards.model.MBBan mbBan)
239                    throws com.liferay.portal.kernel.exception.SystemException {
240                    return _mbBanLocalService.updateMBBan(mbBan);
241            }
242    
243            /**
244            * Returns the Spring bean ID for this bean.
245            *
246            * @return the Spring bean ID for this bean
247            */
248            public java.lang.String getBeanIdentifier() {
249                    return _mbBanLocalService.getBeanIdentifier();
250            }
251    
252            /**
253            * Sets the Spring bean ID for this bean.
254            *
255            * @param beanIdentifier the Spring bean ID for this bean
256            */
257            public void setBeanIdentifier(java.lang.String beanIdentifier) {
258                    _mbBanLocalService.setBeanIdentifier(beanIdentifier);
259            }
260    
261            public com.liferay.portlet.messageboards.model.MBBan addBan(long userId,
262                    long banUserId, com.liferay.portal.service.ServiceContext serviceContext)
263                    throws com.liferay.portal.kernel.exception.PortalException,
264                            com.liferay.portal.kernel.exception.SystemException {
265                    return _mbBanLocalService.addBan(userId, banUserId, serviceContext);
266            }
267    
268            public void checkBan(long groupId, long banUserId)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    _mbBanLocalService.checkBan(groupId, banUserId);
272            }
273    
274            public void deleteBan(long banId)
275                    throws com.liferay.portal.kernel.exception.PortalException,
276                            com.liferay.portal.kernel.exception.SystemException {
277                    _mbBanLocalService.deleteBan(banId);
278            }
279    
280            public void deleteBan(long banUserId,
281                    com.liferay.portal.service.ServiceContext serviceContext)
282                    throws com.liferay.portal.kernel.exception.SystemException {
283                    _mbBanLocalService.deleteBan(banUserId, serviceContext);
284            }
285    
286            public void deleteBan(com.liferay.portlet.messageboards.model.MBBan ban)
287                    throws com.liferay.portal.kernel.exception.SystemException {
288                    _mbBanLocalService.deleteBan(ban);
289            }
290    
291            public void deleteBansByBanUserId(long banUserId)
292                    throws com.liferay.portal.kernel.exception.SystemException {
293                    _mbBanLocalService.deleteBansByBanUserId(banUserId);
294            }
295    
296            public void deleteBansByGroupId(long groupId)
297                    throws com.liferay.portal.kernel.exception.SystemException {
298                    _mbBanLocalService.deleteBansByGroupId(groupId);
299            }
300    
301            public void expireBans()
302                    throws com.liferay.portal.kernel.exception.SystemException {
303                    _mbBanLocalService.expireBans();
304            }
305    
306            public java.util.List<com.liferay.portlet.messageboards.model.MBBan> getBans(
307                    long groupId, int start, int end)
308                    throws com.liferay.portal.kernel.exception.SystemException {
309                    return _mbBanLocalService.getBans(groupId, start, end);
310            }
311    
312            public int getBansCount(long groupId)
313                    throws com.liferay.portal.kernel.exception.SystemException {
314                    return _mbBanLocalService.getBansCount(groupId);
315            }
316    
317            public boolean hasBan(long groupId, long banUserId)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    return _mbBanLocalService.hasBan(groupId, banUserId);
320            }
321    
322            /**
323             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
324             */
325            public MBBanLocalService getWrappedMBBanLocalService() {
326                    return _mbBanLocalService;
327            }
328    
329            /**
330             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
331             */
332            public void setWrappedMBBanLocalService(MBBanLocalService mbBanLocalService) {
333                    _mbBanLocalService = mbBanLocalService;
334            }
335    
336            public MBBanLocalService getWrappedService() {
337                    return _mbBanLocalService;
338            }
339    
340            public void setWrappedService(MBBanLocalService mbBanLocalService) {
341                    _mbBanLocalService = mbBanLocalService;
342            }
343    
344            private MBBanLocalService _mbBanLocalService;
345    }