1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.messageboards.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="MBMailingListLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link MBMailingListLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       MBMailingListLocalService
37   * @generated
38   */
39  public class MBMailingListLocalServiceUtil {
40      public static com.liferay.portlet.messageboards.model.MBMailingList addMBMailingList(
41          com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return getService().addMBMailingList(mbMailingList);
44      }
45  
46      public static com.liferay.portlet.messageboards.model.MBMailingList createMBMailingList(
47          long mailingListId) {
48          return getService().createMBMailingList(mailingListId);
49      }
50  
51      public static void deleteMBMailingList(long mailingListId)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          getService().deleteMBMailingList(mailingListId);
55      }
56  
57      public static void deleteMBMailingList(
58          com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
59          throws com.liferay.portal.kernel.exception.SystemException {
60          getService().deleteMBMailingList(mbMailingList);
61      }
62  
63      @SuppressWarnings("unchecked")
64      public static java.util.List dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.kernel.exception.SystemException {
67          return getService().dynamicQuery(dynamicQuery);
68      }
69  
70      @SuppressWarnings("unchecked")
71      public static java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.kernel.exception.SystemException {
74          return getService().dynamicQuery(dynamicQuery, start, end);
75      }
76  
77      @SuppressWarnings("unchecked")
78      public static java.util.List dynamicQuery(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80          int end,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.kernel.exception.SystemException {
83          return getService()
84                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
85      }
86  
87      public static long dynamicQueryCount(
88          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().dynamicQueryCount(dynamicQuery);
91      }
92  
93      public static com.liferay.portlet.messageboards.model.MBMailingList getMBMailingList(
94          long mailingListId)
95          throws com.liferay.portal.kernel.exception.PortalException,
96              com.liferay.portal.kernel.exception.SystemException {
97          return getService().getMBMailingList(mailingListId);
98      }
99  
100     public static com.liferay.portlet.messageboards.model.MBMailingList getMBMailingListByUuidAndGroupId(
101         java.lang.String uuid, long groupId)
102         throws com.liferay.portal.kernel.exception.PortalException,
103             com.liferay.portal.kernel.exception.SystemException {
104         return getService().getMBMailingListByUuidAndGroupId(uuid, groupId);
105     }
106 
107     public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> getMBMailingLists(
108         int start, int end)
109         throws com.liferay.portal.kernel.exception.SystemException {
110         return getService().getMBMailingLists(start, end);
111     }
112 
113     public static int getMBMailingListsCount()
114         throws com.liferay.portal.kernel.exception.SystemException {
115         return getService().getMBMailingListsCount();
116     }
117 
118     public static com.liferay.portlet.messageboards.model.MBMailingList updateMBMailingList(
119         com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
120         throws com.liferay.portal.kernel.exception.SystemException {
121         return getService().updateMBMailingList(mbMailingList);
122     }
123 
124     public static com.liferay.portlet.messageboards.model.MBMailingList updateMBMailingList(
125         com.liferay.portlet.messageboards.model.MBMailingList mbMailingList,
126         boolean merge)
127         throws com.liferay.portal.kernel.exception.SystemException {
128         return getService().updateMBMailingList(mbMailingList, merge);
129     }
130 
131     public static com.liferay.portlet.messageboards.model.MBMailingList addMailingList(
132         java.lang.String uuid, long userId, long groupId, long categoryId,
133         java.lang.String emailAddress, java.lang.String inProtocol,
134         java.lang.String inServerName, int inServerPort, boolean inUseSSL,
135         java.lang.String inUserName, java.lang.String inPassword,
136         int inReadInterval, java.lang.String outEmailAddress,
137         boolean outCustom, java.lang.String outServerName, int outServerPort,
138         boolean outUseSSL, java.lang.String outUserName,
139         java.lang.String outPassword, boolean active,
140         com.liferay.portal.service.ServiceContext serviceContext)
141         throws com.liferay.portal.kernel.exception.PortalException,
142             com.liferay.portal.kernel.exception.SystemException {
143         return getService()
144                    .addMailingList(uuid, userId, groupId, categoryId,
145             emailAddress, inProtocol, inServerName, inServerPort, inUseSSL,
146             inUserName, inPassword, inReadInterval, outEmailAddress, outCustom,
147             outServerName, outServerPort, outUseSSL, outUserName, outPassword,
148             active, serviceContext);
149     }
150 
151     public static void deleteCategoryMailingList(long groupId, long categoryId)
152         throws com.liferay.portal.kernel.exception.PortalException,
153             com.liferay.portal.kernel.exception.SystemException {
154         getService().deleteCategoryMailingList(groupId, categoryId);
155     }
156 
157     public static void deleteMailingList(long mailingListId)
158         throws com.liferay.portal.kernel.exception.PortalException,
159             com.liferay.portal.kernel.exception.SystemException {
160         getService().deleteMailingList(mailingListId);
161     }
162 
163     public static void deleteMailingList(
164         com.liferay.portlet.messageboards.model.MBMailingList mailingList)
165         throws com.liferay.portal.kernel.exception.PortalException,
166             com.liferay.portal.kernel.exception.SystemException {
167         getService().deleteMailingList(mailingList);
168     }
169 
170     public static com.liferay.portlet.messageboards.model.MBMailingList getCategoryMailingList(
171         long groupId, long categoryId)
172         throws com.liferay.portal.kernel.exception.PortalException,
173             com.liferay.portal.kernel.exception.SystemException {
174         return getService().getCategoryMailingList(groupId, categoryId);
175     }
176 
177     public static com.liferay.portlet.messageboards.model.MBMailingList updateMailingList(
178         long mailingListId, java.lang.String emailAddress,
179         java.lang.String inProtocol, java.lang.String inServerName,
180         int inServerPort, boolean inUseSSL, java.lang.String inUserName,
181         java.lang.String inPassword, int inReadInterval,
182         java.lang.String outEmailAddress, boolean outCustom,
183         java.lang.String outServerName, int outServerPort, boolean outUseSSL,
184         java.lang.String outUserName, java.lang.String outPassword,
185         boolean active, com.liferay.portal.service.ServiceContext serviceContext)
186         throws com.liferay.portal.kernel.exception.PortalException,
187             com.liferay.portal.kernel.exception.SystemException {
188         return getService()
189                    .updateMailingList(mailingListId, emailAddress, inProtocol,
190             inServerName, inServerPort, inUseSSL, inUserName, inPassword,
191             inReadInterval, outEmailAddress, outCustom, outServerName,
192             outServerPort, outUseSSL, outUserName, outPassword, active,
193             serviceContext);
194     }
195 
196     public static MBMailingListLocalService getService() {
197         if (_service == null) {
198             _service = (MBMailingListLocalService)PortalBeanLocatorUtil.locate(MBMailingListLocalService.class.getName());
199         }
200 
201         return _service;
202     }
203 
204     public void setService(MBMailingListLocalService service) {
205         _service = service;
206     }
207 
208     private static MBMailingListLocalService _service;
209 }