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