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