001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class SubscriptionLocalServiceUtil {
034
039
040
047 public static com.liferay.portal.model.Subscription addSubscription(
048 com.liferay.portal.model.Subscription subscription)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addSubscription(subscription);
051 }
052
053
059 public static com.liferay.portal.model.Subscription createSubscription(
060 long subscriptionId) {
061 return getService().createSubscription(subscriptionId);
062 }
063
064
072 public static com.liferay.portal.model.Subscription deleteSubscription(
073 long subscriptionId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteSubscription(subscriptionId);
077 }
078
079
087 public static com.liferay.portal.model.Subscription deleteSubscription(
088 com.liferay.portal.model.Subscription subscription)
089 throws com.liferay.portal.kernel.exception.PortalException,
090 com.liferay.portal.kernel.exception.SystemException {
091 return getService().deleteSubscription(subscription);
092 }
093
094 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
095 return getService().dynamicQuery();
096 }
097
098
105 @SuppressWarnings("rawtypes")
106 public static java.util.List dynamicQuery(
107 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
108 throws com.liferay.portal.kernel.exception.SystemException {
109 return getService().dynamicQuery(dynamicQuery);
110 }
111
112
125 @SuppressWarnings("rawtypes")
126 public static java.util.List dynamicQuery(
127 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
128 int end) throws com.liferay.portal.kernel.exception.SystemException {
129 return getService().dynamicQuery(dynamicQuery, start, end);
130 }
131
132
146 @SuppressWarnings("rawtypes")
147 public static java.util.List dynamicQuery(
148 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
149 int end,
150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151 throws com.liferay.portal.kernel.exception.SystemException {
152 return getService()
153 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
154 }
155
156
163 public static long dynamicQueryCount(
164 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getService().dynamicQueryCount(dynamicQuery);
167 }
168
169 public static com.liferay.portal.model.Subscription fetchSubscription(
170 long subscriptionId)
171 throws com.liferay.portal.kernel.exception.SystemException {
172 return getService().fetchSubscription(subscriptionId);
173 }
174
175
183 public static com.liferay.portal.model.Subscription getSubscription(
184 long subscriptionId)
185 throws com.liferay.portal.kernel.exception.PortalException,
186 com.liferay.portal.kernel.exception.SystemException {
187 return getService().getSubscription(subscriptionId);
188 }
189
190 public static com.liferay.portal.model.PersistedModel getPersistedModel(
191 java.io.Serializable primaryKeyObj)
192 throws com.liferay.portal.kernel.exception.PortalException,
193 com.liferay.portal.kernel.exception.SystemException {
194 return getService().getPersistedModel(primaryKeyObj);
195 }
196
197
209 public static java.util.List<com.liferay.portal.model.Subscription> getSubscriptions(
210 int start, int end)
211 throws com.liferay.portal.kernel.exception.SystemException {
212 return getService().getSubscriptions(start, end);
213 }
214
215
221 public static int getSubscriptionsCount()
222 throws com.liferay.portal.kernel.exception.SystemException {
223 return getService().getSubscriptionsCount();
224 }
225
226
233 public static com.liferay.portal.model.Subscription updateSubscription(
234 com.liferay.portal.model.Subscription subscription)
235 throws com.liferay.portal.kernel.exception.SystemException {
236 return getService().updateSubscription(subscription);
237 }
238
239
247 public static com.liferay.portal.model.Subscription updateSubscription(
248 com.liferay.portal.model.Subscription subscription, boolean merge)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getService().updateSubscription(subscription, merge);
251 }
252
253
258 public static java.lang.String getBeanIdentifier() {
259 return getService().getBeanIdentifier();
260 }
261
262
267 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
268 getService().setBeanIdentifier(beanIdentifier);
269 }
270
271 public static com.liferay.portal.model.Subscription addSubscription(
272 long userId, long groupId, java.lang.String className, long classPK)
273 throws com.liferay.portal.kernel.exception.PortalException,
274 com.liferay.portal.kernel.exception.SystemException {
275 return getService().addSubscription(userId, groupId, className, classPK);
276 }
277
278 public static com.liferay.portal.model.Subscription addSubscription(
279 long userId, long groupId, java.lang.String className, long classPK,
280 java.lang.String frequency)
281 throws com.liferay.portal.kernel.exception.PortalException,
282 com.liferay.portal.kernel.exception.SystemException {
283 return getService()
284 .addSubscription(userId, groupId, className, classPK,
285 frequency);
286 }
287
288 public static void deleteSubscription(long userId,
289 java.lang.String className, long classPK)
290 throws com.liferay.portal.kernel.exception.PortalException,
291 com.liferay.portal.kernel.exception.SystemException {
292 getService().deleteSubscription(userId, className, classPK);
293 }
294
295 public static void deleteSubscriptions(long userId)
296 throws com.liferay.portal.kernel.exception.PortalException,
297 com.liferay.portal.kernel.exception.SystemException {
298 getService().deleteSubscriptions(userId);
299 }
300
301 public static void deleteSubscriptions(long companyId,
302 java.lang.String className, long classPK)
303 throws com.liferay.portal.kernel.exception.PortalException,
304 com.liferay.portal.kernel.exception.SystemException {
305 getService().deleteSubscriptions(companyId, className, classPK);
306 }
307
308 public static com.liferay.portal.model.Subscription getSubscription(
309 long companyId, long userId, java.lang.String className, long classPK)
310 throws com.liferay.portal.kernel.exception.PortalException,
311 com.liferay.portal.kernel.exception.SystemException {
312 return getService()
313 .getSubscription(companyId, userId, className, classPK);
314 }
315
316 public static java.util.List<com.liferay.portal.model.Subscription> getSubscriptions(
317 long companyId, java.lang.String className, long classPK)
318 throws com.liferay.portal.kernel.exception.SystemException {
319 return getService().getSubscriptions(companyId, className, classPK);
320 }
321
322 public static java.util.List<com.liferay.portal.model.Subscription> getUserSubscriptions(
323 long userId, int start, int end,
324 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
325 throws com.liferay.portal.kernel.exception.SystemException {
326 return getService()
327 .getUserSubscriptions(userId, start, end, orderByComparator);
328 }
329
330 public static java.util.List<com.liferay.portal.model.Subscription> getUserSubscriptions(
331 long userId, java.lang.String className)
332 throws com.liferay.portal.kernel.exception.SystemException {
333 return getService().getUserSubscriptions(userId, className);
334 }
335
336 public static int getUserSubscriptionsCount(long userId)
337 throws com.liferay.portal.kernel.exception.SystemException {
338 return getService().getUserSubscriptionsCount(userId);
339 }
340
341 public static boolean isSubscribed(long companyId, long userId,
342 java.lang.String className, long classPK)
343 throws com.liferay.portal.kernel.exception.SystemException {
344 return getService().isSubscribed(companyId, userId, className, classPK);
345 }
346
347 public static SubscriptionLocalService getService() {
348 if (_service == null) {
349 _service = (SubscriptionLocalService)PortalBeanLocatorUtil.locate(SubscriptionLocalService.class.getName());
350
351 ReferenceRegistry.registerReference(SubscriptionLocalServiceUtil.class,
352 "_service");
353 }
354
355 return _service;
356 }
357
358
361 public void setService(SubscriptionLocalService service) {
362 }
363
364 private static SubscriptionLocalService _service;
365 }