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