001
014
015 package com.liferay.portlet.journal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class JournalFeedServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static com.liferay.portlet.journal.model.JournalFeed addFeed(
059 long groupId, java.lang.String feedId, boolean autoFeedId,
060 java.lang.String name, java.lang.String description,
061 java.lang.String type, java.lang.String structureId,
062 java.lang.String templateId, java.lang.String rendererTemplateId,
063 int delta, java.lang.String orderByCol, java.lang.String orderByType,
064 java.lang.String targetLayoutFriendlyUrl,
065 java.lang.String targetPortletId, java.lang.String contentField,
066 java.lang.String feedType, double feedVersion,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException {
070 return getService()
071 .addFeed(groupId, feedId, autoFeedId, name, description,
072 type, structureId, templateId, rendererTemplateId, delta,
073 orderByCol, orderByType, targetLayoutFriendlyUrl, targetPortletId,
074 contentField, feedType, feedVersion, serviceContext);
075 }
076
077 public static void deleteFeed(long groupId, long feedId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 getService().deleteFeed(groupId, feedId);
081 }
082
083 public static void deleteFeed(long groupId, java.lang.String feedId)
084 throws com.liferay.portal.kernel.exception.PortalException,
085 com.liferay.portal.kernel.exception.SystemException {
086 getService().deleteFeed(groupId, feedId);
087 }
088
089 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
090 long groupId, long feedId)
091 throws com.liferay.portal.kernel.exception.PortalException,
092 com.liferay.portal.kernel.exception.SystemException {
093 return getService().getFeed(groupId, feedId);
094 }
095
096 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
097 long groupId, java.lang.String feedId)
098 throws com.liferay.portal.kernel.exception.PortalException,
099 com.liferay.portal.kernel.exception.SystemException {
100 return getService().getFeed(groupId, feedId);
101 }
102
103 public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
104 long groupId, java.lang.String feedId, java.lang.String name,
105 java.lang.String description, java.lang.String type,
106 java.lang.String structureId, java.lang.String templateId,
107 java.lang.String rendererTemplateId, int delta,
108 java.lang.String orderByCol, java.lang.String orderByType,
109 java.lang.String targetLayoutFriendlyUrl,
110 java.lang.String targetPortletId, java.lang.String contentField,
111 java.lang.String feedType, double feedVersion,
112 com.liferay.portal.service.ServiceContext serviceContext)
113 throws com.liferay.portal.kernel.exception.PortalException,
114 com.liferay.portal.kernel.exception.SystemException {
115 return getService()
116 .updateFeed(groupId, feedId, name, description, type,
117 structureId, templateId, rendererTemplateId, delta, orderByCol,
118 orderByType, targetLayoutFriendlyUrl, targetPortletId,
119 contentField, feedType, feedVersion, serviceContext);
120 }
121
122 public static JournalFeedService getService() {
123 if (_service == null) {
124 _service = (JournalFeedService)PortalBeanLocatorUtil.locate(JournalFeedService.class.getName());
125
126 ReferenceRegistry.registerReference(JournalFeedServiceUtil.class,
127 "_service");
128 }
129
130 return _service;
131 }
132
133
136 public void setService(JournalFeedService service) {
137 }
138
139 private static JournalFeedService _service;
140 }