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 JournalFeedLocalServiceUtil {
42 public static com.liferay.portlet.journal.model.JournalFeed addJournalFeed(
43 com.liferay.portlet.journal.model.JournalFeed journalFeed)
44 throws com.liferay.portal.SystemException {
45 return getService().addJournalFeed(journalFeed);
46 }
47
48 public static com.liferay.portlet.journal.model.JournalFeed createJournalFeed(
49 long id) {
50 return getService().createJournalFeed(id);
51 }
52
53 public static void deleteJournalFeed(long id)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 getService().deleteJournalFeed(id);
57 }
58
59 public static void deleteJournalFeed(
60 com.liferay.portlet.journal.model.JournalFeed journalFeed)
61 throws com.liferay.portal.SystemException {
62 getService().deleteJournalFeed(journalFeed);
63 }
64
65 @SuppressWarnings("rawtypes")
66 public static java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 @SuppressWarnings("rawtypes")
73 public static java.util.List dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException {
76 return getService().dynamicQuery(dynamicQuery, start, end);
77 }
78
79 @SuppressWarnings("rawtypes")
80 public static java.util.List dynamicQuery(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82 int end,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.SystemException {
85 return getService()
86 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87 }
88
89 public static int dynamicQueryCount(
90 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91 throws com.liferay.portal.SystemException {
92 return getService().dynamicQueryCount(dynamicQuery);
93 }
94
95 public static com.liferay.portlet.journal.model.JournalFeed getJournalFeed(
96 long id)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService().getJournalFeed(id);
100 }
101
102 public static com.liferay.portlet.journal.model.JournalFeed getJournalFeedByUuidAndGroupId(
103 java.lang.String uuid, long groupId)
104 throws com.liferay.portal.PortalException,
105 com.liferay.portal.SystemException {
106 return getService().getJournalFeedByUuidAndGroupId(uuid, groupId);
107 }
108
109 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
110 int start, int end) throws com.liferay.portal.SystemException {
111 return getService().getJournalFeeds(start, end);
112 }
113
114 public static int getJournalFeedsCount()
115 throws com.liferay.portal.SystemException {
116 return getService().getJournalFeedsCount();
117 }
118
119 public static com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
120 com.liferay.portlet.journal.model.JournalFeed journalFeed)
121 throws com.liferay.portal.SystemException {
122 return getService().updateJournalFeed(journalFeed);
123 }
124
125 public static com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
126 com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
127 throws com.liferay.portal.SystemException {
128 return getService().updateJournalFeed(journalFeed, merge);
129 }
130
131 public static com.liferay.portlet.journal.model.JournalFeed addFeed(
132 long userId, long groupId, java.lang.String feedId, boolean autoFeedId,
133 java.lang.String name, java.lang.String description,
134 java.lang.String type, java.lang.String structureId,
135 java.lang.String templateId, java.lang.String rendererTemplateId,
136 int delta, java.lang.String orderByCol, java.lang.String orderByType,
137 java.lang.String targetLayoutFriendlyUrl,
138 java.lang.String targetPortletId, java.lang.String contentField,
139 java.lang.String feedType, double feedVersion,
140 com.liferay.portal.service.ServiceContext serviceContext)
141 throws com.liferay.portal.PortalException,
142 com.liferay.portal.SystemException {
143 return getService()
144 .addFeed(userId, groupId, feedId, autoFeedId, name,
145 description, type, structureId, templateId, rendererTemplateId,
146 delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
147 targetPortletId, contentField, feedType, feedVersion, serviceContext);
148 }
149
150 public static com.liferay.portlet.journal.model.JournalFeed addFeed(
151 java.lang.String uuid, long userId, long groupId,
152 java.lang.String feedId, boolean autoFeedId, java.lang.String name,
153 java.lang.String description, java.lang.String type,
154 java.lang.String structureId, java.lang.String templateId,
155 java.lang.String rendererTemplateId, int delta,
156 java.lang.String orderByCol, java.lang.String orderByType,
157 java.lang.String targetLayoutFriendlyUrl,
158 java.lang.String targetPortletId, java.lang.String contentField,
159 java.lang.String feedType, double feedVersion,
160 com.liferay.portal.service.ServiceContext serviceContext)
161 throws com.liferay.portal.PortalException,
162 com.liferay.portal.SystemException {
163 return getService()
164 .addFeed(uuid, userId, groupId, feedId, autoFeedId, name,
165 description, type, structureId, templateId, rendererTemplateId,
166 delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
167 targetPortletId, contentField, feedType, feedVersion, serviceContext);
168 }
169
170 public static void addFeedResources(long feedId,
171 boolean addCommunityPermissions, boolean addGuestPermissions)
172 throws com.liferay.portal.PortalException,
173 com.liferay.portal.SystemException {
174 getService()
175 .addFeedResources(feedId, addCommunityPermissions,
176 addGuestPermissions);
177 }
178
179 public static void addFeedResources(
180 com.liferay.portlet.journal.model.JournalFeed feed,
181 boolean addCommunityPermissions, boolean addGuestPermissions)
182 throws com.liferay.portal.PortalException,
183 com.liferay.portal.SystemException {
184 getService()
185 .addFeedResources(feed, addCommunityPermissions, addGuestPermissions);
186 }
187
188 public static void addFeedResources(long feedId,
189 java.lang.String[] communityPermissions,
190 java.lang.String[] guestPermissions)
191 throws com.liferay.portal.PortalException,
192 com.liferay.portal.SystemException {
193 getService()
194 .addFeedResources(feedId, communityPermissions, guestPermissions);
195 }
196
197 public static void addFeedResources(
198 com.liferay.portlet.journal.model.JournalFeed feed,
199 java.lang.String[] communityPermissions,
200 java.lang.String[] guestPermissions)
201 throws com.liferay.portal.PortalException,
202 com.liferay.portal.SystemException {
203 getService()
204 .addFeedResources(feed, communityPermissions, guestPermissions);
205 }
206
207 public static void deleteFeed(long feedId)
208 throws com.liferay.portal.PortalException,
209 com.liferay.portal.SystemException {
210 getService().deleteFeed(feedId);
211 }
212
213 public static void deleteFeed(long groupId, java.lang.String feedId)
214 throws com.liferay.portal.PortalException,
215 com.liferay.portal.SystemException {
216 getService().deleteFeed(groupId, feedId);
217 }
218
219 public static void deleteFeed(
220 com.liferay.portlet.journal.model.JournalFeed feed)
221 throws com.liferay.portal.PortalException,
222 com.liferay.portal.SystemException {
223 getService().deleteFeed(feed);
224 }
225
226 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
227 long feedId)
228 throws com.liferay.portal.PortalException,
229 com.liferay.portal.SystemException {
230 return getService().getFeed(feedId);
231 }
232
233 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
234 long groupId, java.lang.String feedId)
235 throws com.liferay.portal.PortalException,
236 com.liferay.portal.SystemException {
237 return getService().getFeed(groupId, feedId);
238 }
239
240 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
241 throws com.liferay.portal.SystemException {
242 return getService().getFeeds();
243 }
244
245 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
246 long groupId) throws com.liferay.portal.SystemException {
247 return getService().getFeeds(groupId);
248 }
249
250 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
251 long groupId, int start, int end)
252 throws com.liferay.portal.SystemException {
253 return getService().getFeeds(groupId, start, end);
254 }
255
256 public static int getFeedsCount(long groupId)
257 throws com.liferay.portal.SystemException {
258 return getService().getFeedsCount(groupId);
259 }
260
261 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
262 long companyId, long groupId, java.lang.String keywords, int start,
263 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
264 throws com.liferay.portal.SystemException {
265 return getService().search(companyId, groupId, keywords, start, end, obc);
266 }
267
268 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
269 long companyId, long groupId, java.lang.String feedId,
270 java.lang.String name, java.lang.String description,
271 boolean andOperator, int start, int end,
272 com.liferay.portal.kernel.util.OrderByComparator obc)
273 throws com.liferay.portal.SystemException {
274 return getService()
275 .search(companyId, groupId, feedId, name, description,
276 andOperator, start, end, obc);
277 }
278
279 public static int searchCount(long companyId, long groupId,
280 java.lang.String keywords) throws com.liferay.portal.SystemException {
281 return getService().searchCount(companyId, groupId, keywords);
282 }
283
284 public static int searchCount(long companyId, long groupId,
285 java.lang.String feedId, java.lang.String name,
286 java.lang.String description, boolean andOperator)
287 throws com.liferay.portal.SystemException {
288 return getService()
289 .searchCount(companyId, groupId, feedId, name, description,
290 andOperator);
291 }
292
293 public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
294 long groupId, java.lang.String feedId, java.lang.String name,
295 java.lang.String description, java.lang.String type,
296 java.lang.String structureId, java.lang.String templateId,
297 java.lang.String rendererTemplateId, int delta,
298 java.lang.String orderByCol, java.lang.String orderByType,
299 java.lang.String targetLayoutFriendlyUrl,
300 java.lang.String targetPortletId, java.lang.String contentField,
301 java.lang.String feedType, double feedVersion,
302 com.liferay.portal.service.ServiceContext serviceContext)
303 throws com.liferay.portal.PortalException,
304 com.liferay.portal.SystemException {
305 return getService()
306 .updateFeed(groupId, feedId, name, description, type,
307 structureId, templateId, rendererTemplateId, delta, orderByCol,
308 orderByType, targetLayoutFriendlyUrl, targetPortletId,
309 contentField, feedType, feedVersion, serviceContext);
310 }
311
312 public static JournalFeedLocalService getService() {
313 if (_service == null) {
314 _service = (JournalFeedLocalService)PortalBeanLocatorUtil.locate(JournalFeedLocalService.class.getName());
315
316 ReferenceRegistry.registerReference(JournalFeedLocalServiceUtil.class,
317 "_service");
318 MethodCache.remove(JournalFeedLocalService.class);
319 }
320
321 return _service;
322 }
323
324 public void setService(JournalFeedLocalService service) {
325 MethodCache.remove(JournalFeedLocalService.class);
326
327 _service = service;
328
329 ReferenceRegistry.registerReference(JournalFeedLocalServiceUtil.class,
330 "_service");
331 MethodCache.remove(JournalFeedLocalService.class);
332 }
333
334 private static JournalFeedLocalService _service;
335 }