001
014
015 package com.liferay.portlet.journal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class JournalFeedServiceUtil {
038
043
044
049 public static java.lang.String getBeanIdentifier() {
050 return getService().getBeanIdentifier();
051 }
052
053
058 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059 getService().setBeanIdentifier(beanIdentifier);
060 }
061
062 public static com.liferay.portlet.journal.model.JournalFeed addFeed(
063 long groupId, java.lang.String feedId, boolean autoFeedId,
064 java.lang.String name, java.lang.String description,
065 java.lang.String type, java.lang.String structureId,
066 java.lang.String templateId, java.lang.String rendererTemplateId,
067 int delta, java.lang.String orderByCol, java.lang.String orderByType,
068 java.lang.String targetLayoutFriendlyUrl,
069 java.lang.String targetPortletId, java.lang.String contentField,
070 java.lang.String feedType, double feedVersion,
071 com.liferay.portal.service.ServiceContext serviceContext)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException {
074 return getService()
075 .addFeed(groupId, feedId, autoFeedId, name, description,
076 type, structureId, templateId, rendererTemplateId, delta,
077 orderByCol, orderByType, targetLayoutFriendlyUrl, targetPortletId,
078 contentField, feedType, feedVersion, serviceContext);
079 }
080
081 public static void deleteFeed(long feedId)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException {
084 getService().deleteFeed(feedId);
085 }
086
087
090 public static void deleteFeed(long groupId, long feedId)
091 throws com.liferay.portal.kernel.exception.PortalException,
092 com.liferay.portal.kernel.exception.SystemException {
093 getService().deleteFeed(groupId, feedId);
094 }
095
096 public static void deleteFeed(long groupId, java.lang.String feedId)
097 throws com.liferay.portal.kernel.exception.PortalException,
098 com.liferay.portal.kernel.exception.SystemException {
099 getService().deleteFeed(groupId, feedId);
100 }
101
102 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
103 long feedId)
104 throws com.liferay.portal.kernel.exception.PortalException,
105 com.liferay.portal.kernel.exception.SystemException {
106 return getService().getFeed(feedId);
107 }
108
109
112 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
113 long groupId, long feedId)
114 throws com.liferay.portal.kernel.exception.PortalException,
115 com.liferay.portal.kernel.exception.SystemException {
116 return getService().getFeed(groupId, feedId);
117 }
118
119 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
120 long groupId, java.lang.String feedId)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException {
123 return getService().getFeed(groupId, feedId);
124 }
125
126 public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
127 long groupId, java.lang.String feedId, java.lang.String name,
128 java.lang.String description, java.lang.String type,
129 java.lang.String structureId, java.lang.String templateId,
130 java.lang.String rendererTemplateId, int delta,
131 java.lang.String orderByCol, java.lang.String orderByType,
132 java.lang.String targetLayoutFriendlyUrl,
133 java.lang.String targetPortletId, java.lang.String contentField,
134 java.lang.String feedType, double feedVersion,
135 com.liferay.portal.service.ServiceContext serviceContext)
136 throws com.liferay.portal.kernel.exception.PortalException,
137 com.liferay.portal.kernel.exception.SystemException {
138 return getService()
139 .updateFeed(groupId, feedId, name, description, type,
140 structureId, templateId, rendererTemplateId, delta, orderByCol,
141 orderByType, targetLayoutFriendlyUrl, targetPortletId,
142 contentField, feedType, feedVersion, serviceContext);
143 }
144
145 public static JournalFeedService getService() {
146 if (_service == null) {
147 _service = (JournalFeedService)PortalBeanLocatorUtil.locate(JournalFeedService.class.getName());
148
149 ReferenceRegistry.registerReference(JournalFeedServiceUtil.class,
150 "_service");
151 }
152
153 return _service;
154 }
155
156
159 public void setService(JournalFeedService service) {
160 }
161
162 private static JournalFeedService _service;
163 }