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