001
014
015 package com.liferay.portlet.messageboards.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class MBMailingListLocalServiceUtil {
033 public static com.liferay.portlet.messageboards.model.MBMailingList addMBMailingList(
034 com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
035 throws com.liferay.portal.kernel.exception.SystemException {
036 return getService().addMBMailingList(mbMailingList);
037 }
038
039 public static com.liferay.portlet.messageboards.model.MBMailingList createMBMailingList(
040 long mailingListId) {
041 return getService().createMBMailingList(mailingListId);
042 }
043
044 public static void deleteMBMailingList(long mailingListId)
045 throws com.liferay.portal.kernel.exception.PortalException,
046 com.liferay.portal.kernel.exception.SystemException {
047 getService().deleteMBMailingList(mailingListId);
048 }
049
050 public static void deleteMBMailingList(
051 com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
052 throws com.liferay.portal.kernel.exception.SystemException {
053 getService().deleteMBMailingList(mbMailingList);
054 }
055
056 @SuppressWarnings("unchecked")
057 public static java.util.List dynamicQuery(
058 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059 throws com.liferay.portal.kernel.exception.SystemException {
060 return getService().dynamicQuery(dynamicQuery);
061 }
062
063 @SuppressWarnings("unchecked")
064 public static java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException {
067 return getService().dynamicQuery(dynamicQuery, start, end);
068 }
069
070 @SuppressWarnings("unchecked")
071 public static java.util.List dynamicQuery(
072 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073 int end,
074 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075 throws com.liferay.portal.kernel.exception.SystemException {
076 return getService()
077 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078 }
079
080 public static long dynamicQueryCount(
081 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082 throws com.liferay.portal.kernel.exception.SystemException {
083 return getService().dynamicQueryCount(dynamicQuery);
084 }
085
086 public static com.liferay.portlet.messageboards.model.MBMailingList getMBMailingList(
087 long mailingListId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 return getService().getMBMailingList(mailingListId);
091 }
092
093 public static com.liferay.portlet.messageboards.model.MBMailingList getMBMailingListByUuidAndGroupId(
094 java.lang.String uuid, long groupId)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException {
097 return getService().getMBMailingListByUuidAndGroupId(uuid, groupId);
098 }
099
100 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> getMBMailingLists(
101 int start, int end)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().getMBMailingLists(start, end);
104 }
105
106 public static int getMBMailingListsCount()
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().getMBMailingListsCount();
109 }
110
111 public static com.liferay.portlet.messageboards.model.MBMailingList updateMBMailingList(
112 com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().updateMBMailingList(mbMailingList);
115 }
116
117 public static com.liferay.portlet.messageboards.model.MBMailingList updateMBMailingList(
118 com.liferay.portlet.messageboards.model.MBMailingList mbMailingList,
119 boolean merge)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().updateMBMailingList(mbMailingList, merge);
122 }
123
124 public static com.liferay.portlet.messageboards.model.MBMailingList addMailingList(
125 long userId, long groupId, long categoryId,
126 java.lang.String emailAddress, java.lang.String inProtocol,
127 java.lang.String inServerName, int inServerPort, boolean inUseSSL,
128 java.lang.String inUserName, java.lang.String inPassword,
129 int inReadInterval, java.lang.String outEmailAddress,
130 boolean outCustom, java.lang.String outServerName, int outServerPort,
131 boolean outUseSSL, java.lang.String outUserName,
132 java.lang.String outPassword, boolean active,
133 com.liferay.portal.service.ServiceContext serviceContext)
134 throws com.liferay.portal.kernel.exception.PortalException,
135 com.liferay.portal.kernel.exception.SystemException {
136 return getService()
137 .addMailingList(userId, groupId, categoryId, emailAddress,
138 inProtocol, inServerName, inServerPort, inUseSSL, inUserName,
139 inPassword, inReadInterval, outEmailAddress, outCustom,
140 outServerName, outServerPort, outUseSSL, outUserName, outPassword,
141 active, serviceContext);
142 }
143
144 public static void deleteCategoryMailingList(long groupId, long categoryId)
145 throws com.liferay.portal.kernel.exception.PortalException,
146 com.liferay.portal.kernel.exception.SystemException {
147 getService().deleteCategoryMailingList(groupId, categoryId);
148 }
149
150 public static void deleteMailingList(long mailingListId)
151 throws com.liferay.portal.kernel.exception.PortalException,
152 com.liferay.portal.kernel.exception.SystemException {
153 getService().deleteMailingList(mailingListId);
154 }
155
156 public static void deleteMailingList(
157 com.liferay.portlet.messageboards.model.MBMailingList mailingList)
158 throws com.liferay.portal.kernel.exception.PortalException,
159 com.liferay.portal.kernel.exception.SystemException {
160 getService().deleteMailingList(mailingList);
161 }
162
163 public static com.liferay.portlet.messageboards.model.MBMailingList getCategoryMailingList(
164 long groupId, long categoryId)
165 throws com.liferay.portal.kernel.exception.PortalException,
166 com.liferay.portal.kernel.exception.SystemException {
167 return getService().getCategoryMailingList(groupId, categoryId);
168 }
169
170 public static com.liferay.portlet.messageboards.model.MBMailingList updateMailingList(
171 long mailingListId, java.lang.String emailAddress,
172 java.lang.String inProtocol, java.lang.String inServerName,
173 int inServerPort, boolean inUseSSL, java.lang.String inUserName,
174 java.lang.String inPassword, int inReadInterval,
175 java.lang.String outEmailAddress, boolean outCustom,
176 java.lang.String outServerName, int outServerPort, boolean outUseSSL,
177 java.lang.String outUserName, java.lang.String outPassword,
178 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException {
181 return getService()
182 .updateMailingList(mailingListId, emailAddress, inProtocol,
183 inServerName, inServerPort, inUseSSL, inUserName, inPassword,
184 inReadInterval, outEmailAddress, outCustom, outServerName,
185 outServerPort, outUseSSL, outUserName, outPassword, active,
186 serviceContext);
187 }
188
189 public static MBMailingListLocalService getService() {
190 if (_service == null) {
191 _service = (MBMailingListLocalService)PortalBeanLocatorUtil.locate(MBMailingListLocalService.class.getName());
192 }
193
194 return _service;
195 }
196
197 public void setService(MBMailingListLocalService service) {
198 _service = service;
199 }
200
201 private static MBMailingListLocalService _service;
202 }