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