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