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