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 MBMailingListLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       MBMailingListLocalService
024     * @generated
025     */
026    public class MBMailingListLocalServiceWrapper
027            implements MBMailingListLocalService {
028            public MBMailingListLocalServiceWrapper(
029                    MBMailingListLocalService mbMailingListLocalService) {
030                    _mbMailingListLocalService = mbMailingListLocalService;
031            }
032    
033            /**
034            * Adds the message boards mailing list to the database. Also notifies the appropriate model listeners.
035            *
036            * @param mbMailingList the message boards mailing list to add
037            * @return the message boards mailing list that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portlet.messageboards.model.MBMailingList addMBMailingList(
041                    com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _mbMailingListLocalService.addMBMailingList(mbMailingList);
044            }
045    
046            /**
047            * Creates a new message boards mailing list with the primary key. Does not add the message boards mailing list to the database.
048            *
049            * @param mailingListId the primary key for the new message boards mailing list
050            * @return the new message boards mailing list
051            */
052            public com.liferay.portlet.messageboards.model.MBMailingList createMBMailingList(
053                    long mailingListId) {
054                    return _mbMailingListLocalService.createMBMailingList(mailingListId);
055            }
056    
057            /**
058            * Deletes the message boards mailing list with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param mailingListId the primary key of the message boards mailing list to delete
061            * @throws PortalException if a message boards mailing list with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteMBMailingList(long mailingListId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _mbMailingListLocalService.deleteMBMailingList(mailingListId);
068            }
069    
070            /**
071            * Deletes the message boards mailing list from the database. Also notifies the appropriate model listeners.
072            *
073            * @param mbMailingList the message boards mailing list to delete
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteMBMailingList(
077                    com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    _mbMailingListLocalService.deleteMBMailingList(mbMailingList);
080            }
081    
082            /**
083            * Performs a dynamic query on the database and returns the matching rows.
084            *
085            * @param dynamicQuery the dynamic query to search with
086            * @return the matching rows
087            * @throws SystemException if a system exception occurred
088            */
089            @SuppressWarnings("rawtypes")
090            public java.util.List dynamicQuery(
091                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return _mbMailingListLocalService.dynamicQuery(dynamicQuery);
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns a range of the matching rows.
098            *
099            * <p>
100            * 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.
101            * </p>
102            *
103            * @param dynamicQuery the dynamic query to search with
104            * @param start the lower bound of the range of model instances to return
105            * @param end the upper bound of the range of model instances to return (not inclusive)
106            * @return the range of matching rows
107            * @throws SystemException if a system exception occurred
108            */
109            @SuppressWarnings("rawtypes")
110            public java.util.List dynamicQuery(
111                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112                    int end) throws com.liferay.portal.kernel.exception.SystemException {
113                    return _mbMailingListLocalService.dynamicQuery(dynamicQuery, start, end);
114            }
115    
116            /**
117            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
118            *
119            * <p>
120            * 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.
121            * </p>
122            *
123            * @param dynamicQuery the dynamic query to search with
124            * @param start the lower bound of the range of model instances to return
125            * @param end the upper bound of the range of model instances to return (not inclusive)
126            * @param orderByComparator the comparator to order the results by
127            * @return the ordered range of matching rows
128            * @throws SystemException if a system exception occurred
129            */
130            @SuppressWarnings("rawtypes")
131            public java.util.List dynamicQuery(
132                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133                    int end,
134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    return _mbMailingListLocalService.dynamicQuery(dynamicQuery, start,
137                            end, orderByComparator);
138            }
139    
140            /**
141            * Counts the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query to search with
144            * @return the number of rows that match the dynamic query
145            * @throws SystemException if a system exception occurred
146            */
147            public long dynamicQueryCount(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return _mbMailingListLocalService.dynamicQueryCount(dynamicQuery);
151            }
152    
153            /**
154            * Gets the message boards mailing list with the primary key.
155            *
156            * @param mailingListId the primary key of the message boards mailing list to get
157            * @return the message boards mailing list
158            * @throws PortalException if a message boards mailing list with the primary key could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.messageboards.model.MBMailingList getMBMailingList(
162                    long mailingListId)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException {
165                    return _mbMailingListLocalService.getMBMailingList(mailingListId);
166            }
167    
168            /**
169            * Gets the message boards mailing list with the UUID and group id.
170            *
171            * @param uuid the UUID of message boards mailing list to get
172            * @param groupId the group id of the message boards mailing list to get
173            * @return the message boards mailing list
174            * @throws PortalException if a message boards mailing list with the UUID and group id could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.messageboards.model.MBMailingList getMBMailingListByUuidAndGroupId(
178                    java.lang.String uuid, long groupId)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _mbMailingListLocalService.getMBMailingListByUuidAndGroupId(uuid,
182                            groupId);
183            }
184    
185            /**
186            * Gets a range of all the message boards mailing lists.
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 mailing lists to return
193            * @param end the upper bound of the range of message boards mailing lists to return (not inclusive)
194            * @return the range of message boards mailing lists
195            * @throws SystemException if a system exception occurred
196            */
197            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> getMBMailingLists(
198                    int start, int end)
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return _mbMailingListLocalService.getMBMailingLists(start, end);
201            }
202    
203            /**
204            * Gets the number of message boards mailing lists.
205            *
206            * @return the number of message boards mailing lists
207            * @throws SystemException if a system exception occurred
208            */
209            public int getMBMailingListsCount()
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return _mbMailingListLocalService.getMBMailingListsCount();
212            }
213    
214            /**
215            * Updates the message boards mailing list in the database. Also notifies the appropriate model listeners.
216            *
217            * @param mbMailingList the message boards mailing list to update
218            * @return the message boards mailing list that was updated
219            * @throws SystemException if a system exception occurred
220            */
221            public com.liferay.portlet.messageboards.model.MBMailingList updateMBMailingList(
222                    com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return _mbMailingListLocalService.updateMBMailingList(mbMailingList);
225            }
226    
227            /**
228            * Updates the message boards mailing list in the database. Also notifies the appropriate model listeners.
229            *
230            * @param mbMailingList the message boards mailing list to update
231            * @param merge whether to merge the message boards mailing list 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 mailing list that was updated
233            * @throws SystemException if a system exception occurred
234            */
235            public com.liferay.portlet.messageboards.model.MBMailingList updateMBMailingList(
236                    com.liferay.portlet.messageboards.model.MBMailingList mbMailingList,
237                    boolean merge)
238                    throws com.liferay.portal.kernel.exception.SystemException {
239                    return _mbMailingListLocalService.updateMBMailingList(mbMailingList,
240                            merge);
241            }
242    
243            public com.liferay.portlet.messageboards.model.MBMailingList addMailingList(
244                    long userId, long groupId, long categoryId,
245                    java.lang.String emailAddress, java.lang.String inProtocol,
246                    java.lang.String inServerName, int inServerPort, boolean inUseSSL,
247                    java.lang.String inUserName, java.lang.String inPassword,
248                    int inReadInterval, java.lang.String outEmailAddress,
249                    boolean outCustom, java.lang.String outServerName, int outServerPort,
250                    boolean outUseSSL, java.lang.String outUserName,
251                    java.lang.String outPassword, boolean active,
252                    com.liferay.portal.service.ServiceContext serviceContext)
253                    throws com.liferay.portal.kernel.exception.PortalException,
254                            com.liferay.portal.kernel.exception.SystemException {
255                    return _mbMailingListLocalService.addMailingList(userId, groupId,
256                            categoryId, emailAddress, inProtocol, inServerName, inServerPort,
257                            inUseSSL, inUserName, inPassword, inReadInterval, outEmailAddress,
258                            outCustom, outServerName, outServerPort, outUseSSL, outUserName,
259                            outPassword, active, serviceContext);
260            }
261    
262            public void deleteCategoryMailingList(long groupId, long categoryId)
263                    throws com.liferay.portal.kernel.exception.PortalException,
264                            com.liferay.portal.kernel.exception.SystemException {
265                    _mbMailingListLocalService.deleteCategoryMailingList(groupId, categoryId);
266            }
267    
268            public void deleteMailingList(long mailingListId)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    _mbMailingListLocalService.deleteMailingList(mailingListId);
272            }
273    
274            public void deleteMailingList(
275                    com.liferay.portlet.messageboards.model.MBMailingList mailingList)
276                    throws com.liferay.portal.kernel.exception.PortalException,
277                            com.liferay.portal.kernel.exception.SystemException {
278                    _mbMailingListLocalService.deleteMailingList(mailingList);
279            }
280    
281            public com.liferay.portlet.messageboards.model.MBMailingList getCategoryMailingList(
282                    long groupId, long categoryId)
283                    throws com.liferay.portal.kernel.exception.PortalException,
284                            com.liferay.portal.kernel.exception.SystemException {
285                    return _mbMailingListLocalService.getCategoryMailingList(groupId,
286                            categoryId);
287            }
288    
289            public com.liferay.portlet.messageboards.model.MBMailingList updateMailingList(
290                    long mailingListId, java.lang.String emailAddress,
291                    java.lang.String inProtocol, java.lang.String inServerName,
292                    int inServerPort, boolean inUseSSL, java.lang.String inUserName,
293                    java.lang.String inPassword, int inReadInterval,
294                    java.lang.String outEmailAddress, boolean outCustom,
295                    java.lang.String outServerName, int outServerPort, boolean outUseSSL,
296                    java.lang.String outUserName, java.lang.String outPassword,
297                    boolean active, com.liferay.portal.service.ServiceContext serviceContext)
298                    throws com.liferay.portal.kernel.exception.PortalException,
299                            com.liferay.portal.kernel.exception.SystemException {
300                    return _mbMailingListLocalService.updateMailingList(mailingListId,
301                            emailAddress, inProtocol, inServerName, inServerPort, inUseSSL,
302                            inUserName, inPassword, inReadInterval, outEmailAddress, outCustom,
303                            outServerName, outServerPort, outUseSSL, outUserName, outPassword,
304                            active, serviceContext);
305            }
306    
307            public MBMailingListLocalService getWrappedMBMailingListLocalService() {
308                    return _mbMailingListLocalService;
309            }
310    
311            private MBMailingListLocalService _mbMailingListLocalService;
312    }