001
014
015 package com.liferay.portlet.journal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class JournalFeedServiceUtil {
033 public static com.liferay.portlet.journal.model.JournalFeed addFeed(
034 long groupId, java.lang.String feedId, boolean autoFeedId,
035 java.lang.String name, java.lang.String description,
036 java.lang.String type, java.lang.String structureId,
037 java.lang.String templateId, java.lang.String rendererTemplateId,
038 int delta, java.lang.String orderByCol, java.lang.String orderByType,
039 java.lang.String targetLayoutFriendlyUrl,
040 java.lang.String targetPortletId, java.lang.String contentField,
041 java.lang.String feedType, double feedVersion,
042 com.liferay.portal.service.ServiceContext serviceContext)
043 throws com.liferay.portal.kernel.exception.PortalException,
044 com.liferay.portal.kernel.exception.SystemException {
045 return getService()
046 .addFeed(groupId, feedId, autoFeedId, name, description,
047 type, structureId, templateId, rendererTemplateId, delta,
048 orderByCol, orderByType, targetLayoutFriendlyUrl, targetPortletId,
049 contentField, feedType, feedVersion, serviceContext);
050 }
051
052 public static void deleteFeed(long groupId, long feedId)
053 throws com.liferay.portal.kernel.exception.PortalException,
054 com.liferay.portal.kernel.exception.SystemException {
055 getService().deleteFeed(groupId, feedId);
056 }
057
058 public static void deleteFeed(long groupId, java.lang.String feedId)
059 throws com.liferay.portal.kernel.exception.PortalException,
060 com.liferay.portal.kernel.exception.SystemException {
061 getService().deleteFeed(groupId, feedId);
062 }
063
064 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
065 long groupId, long feedId)
066 throws com.liferay.portal.kernel.exception.PortalException,
067 com.liferay.portal.kernel.exception.SystemException {
068 return getService().getFeed(groupId, feedId);
069 }
070
071 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
072 long groupId, java.lang.String feedId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 return getService().getFeed(groupId, feedId);
076 }
077
078 public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
079 long groupId, java.lang.String feedId, java.lang.String name,
080 java.lang.String description, java.lang.String type,
081 java.lang.String structureId, java.lang.String templateId,
082 java.lang.String rendererTemplateId, int delta,
083 java.lang.String orderByCol, java.lang.String orderByType,
084 java.lang.String targetLayoutFriendlyUrl,
085 java.lang.String targetPortletId, java.lang.String contentField,
086 java.lang.String feedType, double feedVersion,
087 com.liferay.portal.service.ServiceContext serviceContext)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 return getService()
091 .updateFeed(groupId, feedId, name, description, type,
092 structureId, templateId, rendererTemplateId, delta, orderByCol,
093 orderByType, targetLayoutFriendlyUrl, targetPortletId,
094 contentField, feedType, feedVersion, serviceContext);
095 }
096
097 public static JournalFeedService getService() {
098 if (_service == null) {
099 _service = (JournalFeedService)PortalBeanLocatorUtil.locate(JournalFeedService.class.getName());
100 }
101
102 return _service;
103 }
104
105 public void setService(JournalFeedService service) {
106 _service = service;
107 }
108
109 private static JournalFeedService _service;
110 }