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      public static java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.kernel.exception.SystemException {
66          return getService().dynamicQuery(dynamicQuery);
67      }
68  
69      public static java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException {
72          return getService().dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public static com.liferay.portlet.messageboards.model.MBMailingList getMBMailingList(
76          long mailingListId)
77          throws com.liferay.portal.kernel.exception.PortalException,
78              com.liferay.portal.kernel.exception.SystemException {
79          return getService().getMBMailingList(mailingListId);
80      }
81  
82      public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> getMBMailingLists(
83          int start, int end)
84          throws com.liferay.portal.kernel.exception.SystemException {
85          return getService().getMBMailingLists(start, end);
86      }
87  
88      public static int getMBMailingListsCount()
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().getMBMailingListsCount();
91      }
92  
93      public static com.liferay.portlet.messageboards.model.MBMailingList updateMBMailingList(
94          com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
95          throws com.liferay.portal.kernel.exception.SystemException {
96          return getService().updateMBMailingList(mbMailingList);
97      }
98  
99      public static com.liferay.portlet.messageboards.model.MBMailingList updateMBMailingList(
100         com.liferay.portlet.messageboards.model.MBMailingList mbMailingList,
101         boolean merge)
102         throws com.liferay.portal.kernel.exception.SystemException {
103         return getService().updateMBMailingList(mbMailingList, merge);
104     }
105 
106     public static com.liferay.portlet.messageboards.model.MBMailingList addMailingList(
107         java.lang.String uuid, long userId, long groupId, long categoryId,
108         java.lang.String emailAddress, java.lang.String inProtocol,
109         java.lang.String inServerName, int inServerPort, boolean inUseSSL,
110         java.lang.String inUserName, java.lang.String inPassword,
111         int inReadInterval, java.lang.String outEmailAddress,
112         boolean outCustom, java.lang.String outServerName, int outServerPort,
113         boolean outUseSSL, java.lang.String outUserName,
114         java.lang.String outPassword, boolean active)
115         throws com.liferay.portal.kernel.exception.PortalException,
116             com.liferay.portal.kernel.exception.SystemException {
117         return getService()
118                    .addMailingList(uuid, userId, groupId, categoryId,
119             emailAddress, inProtocol, inServerName, inServerPort, inUseSSL,
120             inUserName, inPassword, inReadInterval, outEmailAddress, outCustom,
121             outServerName, outServerPort, outUseSSL, outUserName, outPassword,
122             active);
123     }
124 
125     public static void deleteCategoryMailingList(long groupId, long categoryId)
126         throws com.liferay.portal.kernel.exception.PortalException,
127             com.liferay.portal.kernel.exception.SystemException {
128         getService().deleteCategoryMailingList(groupId, categoryId);
129     }
130 
131     public static void deleteMailingList(long mailingListId)
132         throws com.liferay.portal.kernel.exception.PortalException,
133             com.liferay.portal.kernel.exception.SystemException {
134         getService().deleteMailingList(mailingListId);
135     }
136 
137     public static void deleteMailingList(
138         com.liferay.portlet.messageboards.model.MBMailingList mailingList)
139         throws com.liferay.portal.kernel.exception.PortalException,
140             com.liferay.portal.kernel.exception.SystemException {
141         getService().deleteMailingList(mailingList);
142     }
143 
144     public static com.liferay.portlet.messageboards.model.MBMailingList getCategoryMailingList(
145         long groupId, long categoryId)
146         throws com.liferay.portal.kernel.exception.PortalException,
147             com.liferay.portal.kernel.exception.SystemException {
148         return getService().getCategoryMailingList(groupId, categoryId);
149     }
150 
151     public static com.liferay.portlet.messageboards.model.MBMailingList updateMailingList(
152         long mailingListId, java.lang.String emailAddress,
153         java.lang.String inProtocol, java.lang.String inServerName,
154         int inServerPort, boolean inUseSSL, java.lang.String inUserName,
155         java.lang.String inPassword, int inReadInterval,
156         java.lang.String outEmailAddress, boolean outCustom,
157         java.lang.String outServerName, int outServerPort, boolean outUseSSL,
158         java.lang.String outUserName, java.lang.String outPassword,
159         boolean active)
160         throws com.liferay.portal.kernel.exception.PortalException,
161             com.liferay.portal.kernel.exception.SystemException {
162         return getService()
163                    .updateMailingList(mailingListId, emailAddress, inProtocol,
164             inServerName, inServerPort, inUseSSL, inUserName, inPassword,
165             inReadInterval, outEmailAddress, outCustom, outServerName,
166             outServerPort, outUseSSL, outUserName, outPassword, active);
167     }
168 
169     public static MBMailingListLocalService getService() {
170         if (_service == null) {
171             _service = (MBMailingListLocalService)PortalBeanLocatorUtil.locate(MBMailingListLocalService.class.getName());
172         }
173 
174         return _service;
175     }
176 
177     public void setService(MBMailingListLocalService service) {
178         _service = service;
179     }
180 
181     private static MBMailingListLocalService _service;
182 }