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