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