1
14
15 package com.liferay.portlet.journal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class JournalFeedServiceUtil {
42 public static com.liferay.portlet.journal.model.JournalFeed addFeed(
43 long groupId, java.lang.String feedId, boolean autoFeedId,
44 java.lang.String name, java.lang.String description,
45 java.lang.String type, java.lang.String structureId,
46 java.lang.String templateId, java.lang.String rendererTemplateId,
47 int delta, java.lang.String orderByCol, java.lang.String orderByType,
48 java.lang.String targetLayoutFriendlyUrl,
49 java.lang.String targetPortletId, java.lang.String contentField,
50 java.lang.String feedType, double feedVersion,
51 com.liferay.portal.service.ServiceContext serviceContext)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException {
54 return getService()
55 .addFeed(groupId, feedId, autoFeedId, name, description,
56 type, structureId, templateId, rendererTemplateId, delta,
57 orderByCol, orderByType, targetLayoutFriendlyUrl, targetPortletId,
58 contentField, feedType, feedVersion, serviceContext);
59 }
60
61 public static void deleteFeed(long groupId, long feedId)
62 throws com.liferay.portal.PortalException,
63 com.liferay.portal.SystemException {
64 getService().deleteFeed(groupId, feedId);
65 }
66
67 public static void deleteFeed(long groupId, java.lang.String feedId)
68 throws com.liferay.portal.PortalException,
69 com.liferay.portal.SystemException {
70 getService().deleteFeed(groupId, feedId);
71 }
72
73 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
74 long groupId, long feedId)
75 throws com.liferay.portal.PortalException,
76 com.liferay.portal.SystemException {
77 return getService().getFeed(groupId, feedId);
78 }
79
80 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
81 long groupId, java.lang.String feedId)
82 throws com.liferay.portal.PortalException,
83 com.liferay.portal.SystemException {
84 return getService().getFeed(groupId, feedId);
85 }
86
87 public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
88 long groupId, java.lang.String feedId, java.lang.String name,
89 java.lang.String description, java.lang.String type,
90 java.lang.String structureId, java.lang.String templateId,
91 java.lang.String rendererTemplateId, int delta,
92 java.lang.String orderByCol, java.lang.String orderByType,
93 java.lang.String targetLayoutFriendlyUrl,
94 java.lang.String targetPortletId, java.lang.String contentField,
95 java.lang.String feedType, double feedVersion,
96 com.liferay.portal.service.ServiceContext serviceContext)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService()
100 .updateFeed(groupId, feedId, name, description, type,
101 structureId, templateId, rendererTemplateId, delta, orderByCol,
102 orderByType, targetLayoutFriendlyUrl, targetPortletId,
103 contentField, feedType, feedVersion, serviceContext);
104 }
105
106 public static JournalFeedService getService() {
107 if (_service == null) {
108 _service = (JournalFeedService)PortalBeanLocatorUtil.locate(JournalFeedService.class.getName());
109
110 ReferenceRegistry.registerReference(JournalFeedServiceUtil.class,
111 "_service");
112 MethodCache.remove(JournalFeedService.class);
113 }
114
115 return _service;
116 }
117
118 public void setService(JournalFeedService service) {
119 MethodCache.remove(JournalFeedService.class);
120
121 _service = service;
122
123 ReferenceRegistry.registerReference(JournalFeedServiceUtil.class,
124 "_service");
125 MethodCache.remove(JournalFeedService.class);
126 }
127
128 private static JournalFeedService _service;
129 }