001    /**
002     * Copyright (c) 2000-2012 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 com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link MBMailingListLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       MBMailingListLocalService
026     * @generated
027     */
028    public class MBMailingListLocalServiceWrapper
029            implements MBMailingListLocalService,
030                    ServiceWrapper<MBMailingListLocalService> {
031            public MBMailingListLocalServiceWrapper(
032                    MBMailingListLocalService mbMailingListLocalService) {
033                    _mbMailingListLocalService = mbMailingListLocalService;
034            }
035    
036            /**
037            * Adds the message boards mailing list to the database. Also notifies the appropriate model listeners.
038            *
039            * @param mbMailingList the message boards mailing list
040            * @return the message boards mailing list that was added
041            * @throws SystemException if a system exception occurred
042            */
043            public com.liferay.portlet.messageboards.model.MBMailingList addMBMailingList(
044                    com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _mbMailingListLocalService.addMBMailingList(mbMailingList);
047            }
048    
049            /**
050            * Creates a new message boards mailing list with the primary key. Does not add the message boards mailing list to the database.
051            *
052            * @param mailingListId the primary key for the new message boards mailing list
053            * @return the new message boards mailing list
054            */
055            public com.liferay.portlet.messageboards.model.MBMailingList createMBMailingList(
056                    long mailingListId) {
057                    return _mbMailingListLocalService.createMBMailingList(mailingListId);
058            }
059    
060            /**
061            * Deletes the message boards mailing list with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param mailingListId the primary key of the message boards mailing list
064            * @throws PortalException if a message boards mailing list with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public void deleteMBMailingList(long mailingListId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    _mbMailingListLocalService.deleteMBMailingList(mailingListId);
071            }
072    
073            /**
074            * Deletes the message boards mailing list from the database. Also notifies the appropriate model listeners.
075            *
076            * @param mbMailingList the message boards mailing list
077            * @throws SystemException if a system exception occurred
078            */
079            public void deleteMBMailingList(
080                    com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
081                    throws com.liferay.portal.kernel.exception.SystemException {
082                    _mbMailingListLocalService.deleteMBMailingList(mbMailingList);
083            }
084    
085            /**
086            * Performs a dynamic query on the database and returns the matching rows.
087            *
088            * @param dynamicQuery the dynamic query
089            * @return the matching rows
090            * @throws SystemException if a system exception occurred
091            */
092            @SuppressWarnings("rawtypes")
093            public java.util.List dynamicQuery(
094                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
095                    throws com.liferay.portal.kernel.exception.SystemException {
096                    return _mbMailingListLocalService.dynamicQuery(dynamicQuery);
097            }
098    
099            /**
100            * Performs a dynamic query on the database and returns a range of the matching rows.
101            *
102            * <p>
103            * 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.
104            * </p>
105            *
106            * @param dynamicQuery the dynamic query
107            * @param start the lower bound of the range of model instances
108            * @param end the upper bound of the range of model instances (not inclusive)
109            * @return the range of matching rows
110            * @throws SystemException if a system exception occurred
111            */
112            @SuppressWarnings("rawtypes")
113            public java.util.List dynamicQuery(
114                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115                    int end) throws com.liferay.portal.kernel.exception.SystemException {
116                    return _mbMailingListLocalService.dynamicQuery(dynamicQuery, start, end);
117            }
118    
119            /**
120            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
121            *
122            * <p>
123            * 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.
124            * </p>
125            *
126            * @param dynamicQuery the dynamic query
127            * @param start the lower bound of the range of model instances
128            * @param end the upper bound of the range of model instances (not inclusive)
129            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
130            * @return the ordered range of matching rows
131            * @throws SystemException if a system exception occurred
132            */
133            @SuppressWarnings("rawtypes")
134            public java.util.List dynamicQuery(
135                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
136                    int end,
137                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138                    throws com.liferay.portal.kernel.exception.SystemException {
139                    return _mbMailingListLocalService.dynamicQuery(dynamicQuery, start,
140                            end, orderByComparator);
141            }
142    
143            /**
144            * Returns the number of rows that match the dynamic query.
145            *
146            * @param dynamicQuery the dynamic query
147            * @return the number of rows that match the dynamic query
148            * @throws SystemException if a system exception occurred
149            */
150            public long dynamicQueryCount(
151                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return _mbMailingListLocalService.dynamicQueryCount(dynamicQuery);
154            }
155    
156            public com.liferay.portlet.messageboards.model.MBMailingList fetchMBMailingList(
157                    long mailingListId)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _mbMailingListLocalService.fetchMBMailingList(mailingListId);
160            }
161    
162            /**
163            * Returns the message boards mailing list with the primary key.
164            *
165            * @param mailingListId the primary key of the message boards mailing list
166            * @return the message boards mailing list
167            * @throws PortalException if a message boards mailing list with the primary key could not be found
168            * @throws SystemException if a system exception occurred
169            */
170            public com.liferay.portlet.messageboards.model.MBMailingList getMBMailingList(
171                    long mailingListId)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    return _mbMailingListLocalService.getMBMailingList(mailingListId);
175            }
176    
177            public com.liferay.portal.model.PersistedModel getPersistedModel(
178                    java.io.Serializable primaryKeyObj)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _mbMailingListLocalService.getPersistedModel(primaryKeyObj);
182            }
183    
184            /**
185            * Returns the message boards mailing list with the UUID in the group.
186            *
187            * @param uuid the UUID of message boards mailing list
188            * @param groupId the group id of the message boards mailing list
189            * @return the message boards mailing list
190            * @throws PortalException if a message boards mailing list with the UUID in the group could not be found
191            * @throws SystemException if a system exception occurred
192            */
193            public com.liferay.portlet.messageboards.model.MBMailingList getMBMailingListByUuidAndGroupId(
194                    java.lang.String uuid, long groupId)
195                    throws com.liferay.portal.kernel.exception.PortalException,
196                            com.liferay.portal.kernel.exception.SystemException {
197                    return _mbMailingListLocalService.getMBMailingListByUuidAndGroupId(uuid,
198                            groupId);
199            }
200    
201            /**
202            * Returns a range of all the message boards mailing lists.
203            *
204            * <p>
205            * 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.
206            * </p>
207            *
208            * @param start the lower bound of the range of message boards mailing lists
209            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
210            * @return the range of message boards mailing lists
211            * @throws SystemException if a system exception occurred
212            */
213            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> getMBMailingLists(
214                    int start, int end)
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _mbMailingListLocalService.getMBMailingLists(start, end);
217            }
218    
219            /**
220            * Returns the number of message boards mailing lists.
221            *
222            * @return the number of message boards mailing lists
223            * @throws SystemException if a system exception occurred
224            */
225            public int getMBMailingListsCount()
226                    throws com.liferay.portal.kernel.exception.SystemException {
227                    return _mbMailingListLocalService.getMBMailingListsCount();
228            }
229    
230            /**
231            * Updates the message boards mailing list in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
232            *
233            * @param mbMailingList the message boards mailing list
234            * @return the message boards mailing list that was updated
235            * @throws SystemException if a system exception occurred
236            */
237            public com.liferay.portlet.messageboards.model.MBMailingList updateMBMailingList(
238                    com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
239                    throws com.liferay.portal.kernel.exception.SystemException {
240                    return _mbMailingListLocalService.updateMBMailingList(mbMailingList);
241            }
242    
243            /**
244            * Updates the message boards mailing list in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
245            *
246            * @param mbMailingList the message boards mailing list
247            * @param merge whether to merge the message boards mailing list with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
248            * @return the message boards mailing list that was updated
249            * @throws SystemException if a system exception occurred
250            */
251            public com.liferay.portlet.messageboards.model.MBMailingList updateMBMailingList(
252                    com.liferay.portlet.messageboards.model.MBMailingList mbMailingList,
253                    boolean merge)
254                    throws com.liferay.portal.kernel.exception.SystemException {
255                    return _mbMailingListLocalService.updateMBMailingList(mbMailingList,
256                            merge);
257            }
258    
259            /**
260            * Returns the Spring bean ID for this bean.
261            *
262            * @return the Spring bean ID for this bean
263            */
264            public java.lang.String getBeanIdentifier() {
265                    return _mbMailingListLocalService.getBeanIdentifier();
266            }
267    
268            /**
269            * Sets the Spring bean ID for this bean.
270            *
271            * @param beanIdentifier the Spring bean ID for this bean
272            */
273            public void setBeanIdentifier(java.lang.String beanIdentifier) {
274                    _mbMailingListLocalService.setBeanIdentifier(beanIdentifier);
275            }
276    
277            public com.liferay.portlet.messageboards.model.MBMailingList addMailingList(
278                    long userId, long groupId, long categoryId,
279                    java.lang.String emailAddress, java.lang.String inProtocol,
280                    java.lang.String inServerName, int inServerPort, boolean inUseSSL,
281                    java.lang.String inUserName, java.lang.String inPassword,
282                    int inReadInterval, java.lang.String outEmailAddress,
283                    boolean outCustom, java.lang.String outServerName, int outServerPort,
284                    boolean outUseSSL, java.lang.String outUserName,
285                    java.lang.String outPassword, boolean allowAnonymous, boolean active,
286                    com.liferay.portal.service.ServiceContext serviceContext)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    return _mbMailingListLocalService.addMailingList(userId, groupId,
290                            categoryId, emailAddress, inProtocol, inServerName, inServerPort,
291                            inUseSSL, inUserName, inPassword, inReadInterval, outEmailAddress,
292                            outCustom, outServerName, outServerPort, outUseSSL, outUserName,
293                            outPassword, allowAnonymous, active, serviceContext);
294            }
295    
296            public void deleteCategoryMailingList(long groupId, long categoryId)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    _mbMailingListLocalService.deleteCategoryMailingList(groupId, categoryId);
300            }
301    
302            public void deleteMailingList(long mailingListId)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException {
305                    _mbMailingListLocalService.deleteMailingList(mailingListId);
306            }
307    
308            public void deleteMailingList(
309                    com.liferay.portlet.messageboards.model.MBMailingList mailingList)
310                    throws com.liferay.portal.kernel.exception.PortalException,
311                            com.liferay.portal.kernel.exception.SystemException {
312                    _mbMailingListLocalService.deleteMailingList(mailingList);
313            }
314    
315            public com.liferay.portlet.messageboards.model.MBMailingList getCategoryMailingList(
316                    long groupId, long categoryId)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    return _mbMailingListLocalService.getCategoryMailingList(groupId,
320                            categoryId);
321            }
322    
323            public com.liferay.portlet.messageboards.model.MBMailingList updateMailingList(
324                    long mailingListId, java.lang.String emailAddress,
325                    java.lang.String inProtocol, java.lang.String inServerName,
326                    int inServerPort, boolean inUseSSL, java.lang.String inUserName,
327                    java.lang.String inPassword, int inReadInterval,
328                    java.lang.String outEmailAddress, boolean outCustom,
329                    java.lang.String outServerName, int outServerPort, boolean outUseSSL,
330                    java.lang.String outUserName, java.lang.String outPassword,
331                    boolean allowAnonymous, boolean active,
332                    com.liferay.portal.service.ServiceContext serviceContext)
333                    throws com.liferay.portal.kernel.exception.PortalException,
334                            com.liferay.portal.kernel.exception.SystemException {
335                    return _mbMailingListLocalService.updateMailingList(mailingListId,
336                            emailAddress, inProtocol, inServerName, inServerPort, inUseSSL,
337                            inUserName, inPassword, inReadInterval, outEmailAddress, outCustom,
338                            outServerName, outServerPort, outUseSSL, outUserName, outPassword,
339                            allowAnonymous, active, serviceContext);
340            }
341    
342            /**
343             * @deprecated Renamed to {@link #getWrappedService}
344             */
345            public MBMailingListLocalService getWrappedMBMailingListLocalService() {
346                    return _mbMailingListLocalService;
347            }
348    
349            /**
350             * @deprecated Renamed to {@link #setWrappedService}
351             */
352            public void setWrappedMBMailingListLocalService(
353                    MBMailingListLocalService mbMailingListLocalService) {
354                    _mbMailingListLocalService = mbMailingListLocalService;
355            }
356    
357            public MBMailingListLocalService getWrappedService() {
358                    return _mbMailingListLocalService;
359            }
360    
361            public void setWrappedService(
362                    MBMailingListLocalService mbMailingListLocalService) {
363                    _mbMailingListLocalService = mbMailingListLocalService;
364            }
365    
366            private MBMailingListLocalService _mbMailingListLocalService;
367    }