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