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            @Override
267            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
268                    return _mbMailingListLocalService.getIndexableActionableDynamicQuery();
269            }
270    
271            /**
272            * Returns the message boards mailing list with the primary key.
273            *
274            * @param mailingListId the primary key of the message boards mailing list
275            * @return the message boards mailing list
276            * @throws PortalException if a message boards mailing list with the primary key could not be found
277            */
278            @Override
279            public com.liferay.portlet.messageboards.model.MBMailingList getMBMailingList(
280                    long mailingListId)
281                    throws com.liferay.portal.kernel.exception.PortalException {
282                    return _mbMailingListLocalService.getMBMailingList(mailingListId);
283            }
284    
285            /**
286            * Returns the message boards mailing list matching the UUID and group.
287            *
288            * @param uuid the message boards mailing list's UUID
289            * @param groupId the primary key of the group
290            * @return the matching message boards mailing list
291            * @throws PortalException if a matching message boards mailing list could not be found
292            */
293            @Override
294            public com.liferay.portlet.messageboards.model.MBMailingList getMBMailingListByUuidAndGroupId(
295                    java.lang.String uuid, long groupId)
296                    throws com.liferay.portal.kernel.exception.PortalException {
297                    return _mbMailingListLocalService.getMBMailingListByUuidAndGroupId(uuid,
298                            groupId);
299            }
300    
301            /**
302            * Returns a range of all the message boards mailing lists.
303            *
304            * <p>
305            * 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.
306            * </p>
307            *
308            * @param start the lower bound of the range of message boards mailing lists
309            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
310            * @return the range of message boards mailing lists
311            */
312            @Override
313            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> getMBMailingLists(
314                    int start, int end) {
315                    return _mbMailingListLocalService.getMBMailingLists(start, end);
316            }
317    
318            /**
319            * Returns all the message boards mailing lists matching the UUID and company.
320            *
321            * @param uuid the UUID of the message boards mailing lists
322            * @param companyId the primary key of the company
323            * @return the matching message boards mailing lists, or an empty list if no matches were found
324            */
325            @Override
326            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> getMBMailingListsByUuidAndCompanyId(
327                    java.lang.String uuid, long companyId) {
328                    return _mbMailingListLocalService.getMBMailingListsByUuidAndCompanyId(uuid,
329                            companyId);
330            }
331    
332            /**
333            * Returns a range of message boards mailing lists matching the UUID and company.
334            *
335            * @param uuid the UUID of the message boards mailing lists
336            * @param companyId the primary key of the company
337            * @param start the lower bound of the range of message boards mailing lists
338            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
339            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
340            * @return the range of matching message boards mailing lists, or an empty list if no matches were found
341            */
342            @Override
343            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> getMBMailingListsByUuidAndCompanyId(
344                    java.lang.String uuid, long companyId, int start, int end,
345                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBMailingList> orderByComparator) {
346                    return _mbMailingListLocalService.getMBMailingListsByUuidAndCompanyId(uuid,
347                            companyId, start, end, orderByComparator);
348            }
349    
350            /**
351            * Returns the number of message boards mailing lists.
352            *
353            * @return the number of message boards mailing lists
354            */
355            @Override
356            public int getMBMailingListsCount() {
357                    return _mbMailingListLocalService.getMBMailingListsCount();
358            }
359    
360            /**
361            * Returns the OSGi service identifier.
362            *
363            * @return the OSGi service identifier
364            */
365            @Override
366            public java.lang.String getOSGiServiceIdentifier() {
367                    return _mbMailingListLocalService.getOSGiServiceIdentifier();
368            }
369    
370            @Override
371            public com.liferay.portal.model.PersistedModel getPersistedModel(
372                    java.io.Serializable primaryKeyObj)
373                    throws com.liferay.portal.kernel.exception.PortalException {
374                    return _mbMailingListLocalService.getPersistedModel(primaryKeyObj);
375            }
376    
377            /**
378            * Updates the message boards mailing list in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
379            *
380            * @param mbMailingList the message boards mailing list
381            * @return the message boards mailing list that was updated
382            */
383            @Override
384            public com.liferay.portlet.messageboards.model.MBMailingList updateMBMailingList(
385                    com.liferay.portlet.messageboards.model.MBMailingList mbMailingList) {
386                    return _mbMailingListLocalService.updateMBMailingList(mbMailingList);
387            }
388    
389            @Override
390            public com.liferay.portlet.messageboards.model.MBMailingList updateMailingList(
391                    long mailingListId, java.lang.String emailAddress,
392                    java.lang.String inProtocol, java.lang.String inServerName,
393                    int inServerPort, boolean inUseSSL, java.lang.String inUserName,
394                    java.lang.String inPassword, int inReadInterval,
395                    java.lang.String outEmailAddress, boolean outCustom,
396                    java.lang.String outServerName, int outServerPort, boolean outUseSSL,
397                    java.lang.String outUserName, java.lang.String outPassword,
398                    boolean allowAnonymous, boolean active,
399                    com.liferay.portal.service.ServiceContext serviceContext)
400                    throws com.liferay.portal.kernel.exception.PortalException {
401                    return _mbMailingListLocalService.updateMailingList(mailingListId,
402                            emailAddress, inProtocol, inServerName, inServerPort, inUseSSL,
403                            inUserName, inPassword, inReadInterval, outEmailAddress, outCustom,
404                            outServerName, outServerPort, outUseSSL, outUserName, outPassword,
405                            allowAnonymous, active, serviceContext);
406            }
407    
408            @Override
409            public MBMailingListLocalService getWrappedService() {
410                    return _mbMailingListLocalService;
411            }
412    
413            @Override
414            public void setWrappedService(
415                    MBMailingListLocalService mbMailingListLocalService) {
416                    _mbMailingListLocalService = mbMailingListLocalService;
417            }
418    
419            private MBMailingListLocalService _mbMailingListLocalService;
420    }