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 fetchCategoryMailingList(
222                    long groupId, long categoryId) {
223                    return _mbMailingListLocalService.fetchCategoryMailingList(groupId,
224                            categoryId);
225            }
226    
227            @Override
228            public com.liferay.portlet.messageboards.model.MBMailingList fetchMBMailingList(
229                    long mailingListId) {
230                    return _mbMailingListLocalService.fetchMBMailingList(mailingListId);
231            }
232    
233            /**
234            * Returns the message boards mailing list matching the UUID and group.
235            *
236            * @param uuid the message boards mailing list's UUID
237            * @param groupId the primary key of the group
238            * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
239            */
240            @Override
241            public com.liferay.portlet.messageboards.model.MBMailingList fetchMBMailingListByUuidAndGroupId(
242                    java.lang.String uuid, long groupId) {
243                    return _mbMailingListLocalService.fetchMBMailingListByUuidAndGroupId(uuid,
244                            groupId);
245            }
246    
247            @Override
248            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
249                    return _mbMailingListLocalService.getActionableDynamicQuery();
250            }
251    
252            @Override
253            public com.liferay.portlet.messageboards.model.MBMailingList getCategoryMailingList(
254                    long groupId, long categoryId)
255                    throws com.liferay.portal.kernel.exception.PortalException {
256                    return _mbMailingListLocalService.getCategoryMailingList(groupId,
257                            categoryId);
258            }
259    
260            @Override
261            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
262                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
263                    return _mbMailingListLocalService.getExportActionableDynamicQuery(portletDataContext);
264            }
265    
266            /**
267            * Returns the message boards mailing list with the primary key.
268            *
269            * @param mailingListId the primary key of the message boards mailing list
270            * @return the message boards mailing list
271            * @throws PortalException if a message boards mailing list with the primary key could not be found
272            */
273            @Override
274            public com.liferay.portlet.messageboards.model.MBMailingList getMBMailingList(
275                    long mailingListId)
276                    throws com.liferay.portal.kernel.exception.PortalException {
277                    return _mbMailingListLocalService.getMBMailingList(mailingListId);
278            }
279    
280            /**
281            * Returns the message boards mailing list matching the UUID and group.
282            *
283            * @param uuid the message boards mailing list's UUID
284            * @param groupId the primary key of the group
285            * @return the matching message boards mailing list
286            * @throws PortalException if a matching message boards mailing list could not be found
287            */
288            @Override
289            public com.liferay.portlet.messageboards.model.MBMailingList getMBMailingListByUuidAndGroupId(
290                    java.lang.String uuid, long groupId)
291                    throws com.liferay.portal.kernel.exception.PortalException {
292                    return _mbMailingListLocalService.getMBMailingListByUuidAndGroupId(uuid,
293                            groupId);
294            }
295    
296            /**
297            * Returns a range of all the message boards mailing lists.
298            *
299            * <p>
300            * 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.
301            * </p>
302            *
303            * @param start the lower bound of the range of message boards mailing lists
304            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
305            * @return the range of message boards mailing lists
306            */
307            @Override
308            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> getMBMailingLists(
309                    int start, int end) {
310                    return _mbMailingListLocalService.getMBMailingLists(start, end);
311            }
312    
313            /**
314            * Returns all the message boards mailing lists matching the UUID and company.
315            *
316            * @param uuid the UUID of the message boards mailing lists
317            * @param companyId the primary key of the company
318            * @return the matching message boards mailing lists, or an empty list if no matches were found
319            */
320            @Override
321            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> getMBMailingListsByUuidAndCompanyId(
322                    java.lang.String uuid, long companyId) {
323                    return _mbMailingListLocalService.getMBMailingListsByUuidAndCompanyId(uuid,
324                            companyId);
325            }
326    
327            /**
328            * Returns a range of message boards mailing lists matching the UUID and company.
329            *
330            * @param uuid the UUID of the message boards mailing lists
331            * @param companyId the primary key of the company
332            * @param start the lower bound of the range of message boards mailing lists
333            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
334            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
335            * @return the range of matching message boards mailing lists, or an empty list if no matches were found
336            */
337            @Override
338            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> getMBMailingListsByUuidAndCompanyId(
339                    java.lang.String uuid, long companyId, int start, int end,
340                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBMailingList> orderByComparator) {
341                    return _mbMailingListLocalService.getMBMailingListsByUuidAndCompanyId(uuid,
342                            companyId, start, end, orderByComparator);
343            }
344    
345            /**
346            * Returns the number of message boards mailing lists.
347            *
348            * @return the number of message boards mailing lists
349            */
350            @Override
351            public int getMBMailingListsCount() {
352                    return _mbMailingListLocalService.getMBMailingListsCount();
353            }
354    
355            /**
356            * Returns the OSGi service identifier.
357            *
358            * @return the OSGi service identifier
359            */
360            @Override
361            public java.lang.String getOSGiServiceIdentifier() {
362                    return _mbMailingListLocalService.getOSGiServiceIdentifier();
363            }
364    
365            @Override
366            public com.liferay.portal.model.PersistedModel getPersistedModel(
367                    java.io.Serializable primaryKeyObj)
368                    throws com.liferay.portal.kernel.exception.PortalException {
369                    return _mbMailingListLocalService.getPersistedModel(primaryKeyObj);
370            }
371    
372            /**
373            * Updates the message boards mailing list in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
374            *
375            * @param mbMailingList the message boards mailing list
376            * @return the message boards mailing list that was updated
377            */
378            @Override
379            public com.liferay.portlet.messageboards.model.MBMailingList updateMBMailingList(
380                    com.liferay.portlet.messageboards.model.MBMailingList mbMailingList) {
381                    return _mbMailingListLocalService.updateMBMailingList(mbMailingList);
382            }
383    
384            @Override
385            public com.liferay.portlet.messageboards.model.MBMailingList updateMailingList(
386                    long mailingListId, java.lang.String emailAddress,
387                    java.lang.String inProtocol, java.lang.String inServerName,
388                    int inServerPort, boolean inUseSSL, java.lang.String inUserName,
389                    java.lang.String inPassword, int inReadInterval,
390                    java.lang.String outEmailAddress, boolean outCustom,
391                    java.lang.String outServerName, int outServerPort, boolean outUseSSL,
392                    java.lang.String outUserName, java.lang.String outPassword,
393                    boolean allowAnonymous, boolean active,
394                    com.liferay.portal.service.ServiceContext serviceContext)
395                    throws com.liferay.portal.kernel.exception.PortalException {
396                    return _mbMailingListLocalService.updateMailingList(mailingListId,
397                            emailAddress, inProtocol, inServerName, inServerPort, inUseSSL,
398                            inUserName, inPassword, inReadInterval, outEmailAddress, outCustom,
399                            outServerName, outServerPort, outUseSSL, outUserName, outPassword,
400                            allowAnonymous, active, serviceContext);
401            }
402    
403            /**
404             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
405             */
406            @Deprecated
407            public MBMailingListLocalService getWrappedMBMailingListLocalService() {
408                    return _mbMailingListLocalService;
409            }
410    
411            /**
412             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
413             */
414            @Deprecated
415            public void setWrappedMBMailingListLocalService(
416                    MBMailingListLocalService mbMailingListLocalService) {
417                    _mbMailingListLocalService = mbMailingListLocalService;
418            }
419    
420            @Override
421            public MBMailingListLocalService getWrappedService() {
422                    return _mbMailingListLocalService;
423            }
424    
425            @Override
426            public void setWrappedService(
427                    MBMailingListLocalService mbMailingListLocalService) {
428                    _mbMailingListLocalService = mbMailingListLocalService;
429            }
430    
431            private MBMailingListLocalService _mbMailingListLocalService;
432    }