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