1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.journal.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="JournalFeedLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link JournalFeedLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       JournalFeedLocalService
37   * @generated
38   */
39  public class JournalFeedLocalServiceUtil {
40      public static com.liferay.portlet.journal.model.JournalFeed addJournalFeed(
41          com.liferay.portlet.journal.model.JournalFeed journalFeed)
42          throws com.liferay.portal.SystemException {
43          return getService().addJournalFeed(journalFeed);
44      }
45  
46      public static com.liferay.portlet.journal.model.JournalFeed createJournalFeed(
47          long id) {
48          return getService().createJournalFeed(id);
49      }
50  
51      public static void deleteJournalFeed(long id)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException {
54          getService().deleteJournalFeed(id);
55      }
56  
57      public static void deleteJournalFeed(
58          com.liferay.portlet.journal.model.JournalFeed journalFeed)
59          throws com.liferay.portal.SystemException {
60          getService().deleteJournalFeed(journalFeed);
61      }
62  
63      public static java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.SystemException {
66          return getService().dynamicQuery(dynamicQuery);
67      }
68  
69      public static java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.SystemException {
72          return getService().dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public static com.liferay.portlet.journal.model.JournalFeed getJournalFeed(
76          long id)
77          throws com.liferay.portal.PortalException,
78              com.liferay.portal.SystemException {
79          return getService().getJournalFeed(id);
80      }
81  
82      public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
83          int start, int end) throws com.liferay.portal.SystemException {
84          return getService().getJournalFeeds(start, end);
85      }
86  
87      public static int getJournalFeedsCount()
88          throws com.liferay.portal.SystemException {
89          return getService().getJournalFeedsCount();
90      }
91  
92      public static com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
93          com.liferay.portlet.journal.model.JournalFeed journalFeed)
94          throws com.liferay.portal.SystemException {
95          return getService().updateJournalFeed(journalFeed);
96      }
97  
98      public static com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
99          com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
100         throws com.liferay.portal.SystemException {
101         return getService().updateJournalFeed(journalFeed, merge);
102     }
103 
104     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
105         long userId, long plid, java.lang.String feedId, boolean autoFeedId,
106         java.lang.String name, java.lang.String description,
107         java.lang.String type, java.lang.String structureId,
108         java.lang.String templateId, java.lang.String rendererTemplateId,
109         int delta, 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         boolean addCommunityPermissions, boolean addGuestPermissions)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException {
116         return getService()
117                    .addFeed(userId, plid, feedId, autoFeedId, name,
118             description, type, structureId, templateId, rendererTemplateId,
119             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
120             targetPortletId, contentField, feedType, feedVersion,
121             addCommunityPermissions, addGuestPermissions);
122     }
123 
124     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
125         long userId, long plid, java.lang.String feedId, boolean autoFeedId,
126         java.lang.String name, java.lang.String description,
127         java.lang.String type, java.lang.String structureId,
128         java.lang.String templateId, java.lang.String rendererTemplateId,
129         int delta, java.lang.String orderByCol, java.lang.String orderByType,
130         java.lang.String targetLayoutFriendlyUrl,
131         java.lang.String targetPortletId, java.lang.String contentField,
132         java.lang.String feedType, double feedVersion,
133         java.lang.String[] communityPermissions,
134         java.lang.String[] guestPermissions)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException {
137         return getService()
138                    .addFeed(userId, plid, feedId, autoFeedId, name,
139             description, type, structureId, templateId, rendererTemplateId,
140             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
141             targetPortletId, contentField, feedType, feedVersion,
142             communityPermissions, guestPermissions);
143     }
144 
145     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
146         java.lang.String uuid, long userId, long plid, java.lang.String feedId,
147         boolean autoFeedId, java.lang.String name,
148         java.lang.String description, java.lang.String type,
149         java.lang.String structureId, java.lang.String templateId,
150         java.lang.String rendererTemplateId, int delta,
151         java.lang.String orderByCol, java.lang.String orderByType,
152         java.lang.String targetLayoutFriendlyUrl,
153         java.lang.String targetPortletId, java.lang.String contentField,
154         java.lang.String feedType, double feedVersion,
155         boolean addCommunityPermissions, boolean addGuestPermissions)
156         throws com.liferay.portal.PortalException,
157             com.liferay.portal.SystemException {
158         return getService()
159                    .addFeed(uuid, userId, plid, feedId, autoFeedId, name,
160             description, type, structureId, templateId, rendererTemplateId,
161             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
162             targetPortletId, contentField, feedType, feedVersion,
163             addCommunityPermissions, addGuestPermissions);
164     }
165 
166     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
167         java.lang.String uuid, long userId, long plid, java.lang.String feedId,
168         boolean autoFeedId, java.lang.String name,
169         java.lang.String description, java.lang.String type,
170         java.lang.String structureId, java.lang.String templateId,
171         java.lang.String rendererTemplateId, int delta,
172         java.lang.String orderByCol, java.lang.String orderByType,
173         java.lang.String targetLayoutFriendlyUrl,
174         java.lang.String targetPortletId, java.lang.String contentField,
175         java.lang.String feedType, double feedVersion,
176         java.lang.String[] communityPermissions,
177         java.lang.String[] guestPermissions)
178         throws com.liferay.portal.PortalException,
179             com.liferay.portal.SystemException {
180         return getService()
181                    .addFeed(uuid, userId, plid, feedId, autoFeedId, name,
182             description, type, structureId, templateId, rendererTemplateId,
183             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
184             targetPortletId, contentField, feedType, feedVersion,
185             communityPermissions, guestPermissions);
186     }
187 
188     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
189         java.lang.String uuid, long userId, long plid, java.lang.String feedId,
190         boolean autoFeedId, java.lang.String name,
191         java.lang.String description, java.lang.String type,
192         java.lang.String structureId, java.lang.String templateId,
193         java.lang.String rendererTemplateId, int delta,
194         java.lang.String orderByCol, java.lang.String orderByType,
195         java.lang.String targetLayoutFriendlyUrl,
196         java.lang.String targetPortletId, java.lang.String contentField,
197         java.lang.String feedType, double feedVersion,
198         java.lang.Boolean addCommunityPermissions,
199         java.lang.Boolean addGuestPermissions,
200         java.lang.String[] communityPermissions,
201         java.lang.String[] guestPermissions)
202         throws com.liferay.portal.PortalException,
203             com.liferay.portal.SystemException {
204         return getService()
205                    .addFeed(uuid, userId, plid, feedId, autoFeedId, name,
206             description, type, structureId, templateId, rendererTemplateId,
207             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
208             targetPortletId, contentField, feedType, feedVersion,
209             addCommunityPermissions, addGuestPermissions, communityPermissions,
210             guestPermissions);
211     }
212 
213     public static com.liferay.portlet.journal.model.JournalFeed addFeedToGroup(
214         java.lang.String uuid, long userId, long groupId,
215         java.lang.String feedId, boolean autoFeedId, java.lang.String name,
216         java.lang.String description, java.lang.String type,
217         java.lang.String structureId, java.lang.String templateId,
218         java.lang.String rendererTemplateId, int delta,
219         java.lang.String orderByCol, java.lang.String orderByType,
220         java.lang.String targetLayoutFriendlyUrl,
221         java.lang.String targetPortletId, java.lang.String contentField,
222         java.lang.String feedType, double feedVersion,
223         java.lang.Boolean addCommunityPermissions,
224         java.lang.Boolean addGuestPermissions,
225         java.lang.String[] communityPermissions,
226         java.lang.String[] guestPermissions)
227         throws com.liferay.portal.PortalException,
228             com.liferay.portal.SystemException {
229         return getService()
230                    .addFeedToGroup(uuid, userId, groupId, feedId, autoFeedId,
231             name, description, type, structureId, templateId,
232             rendererTemplateId, delta, orderByCol, orderByType,
233             targetLayoutFriendlyUrl, targetPortletId, contentField, feedType,
234             feedVersion, addCommunityPermissions, addGuestPermissions,
235             communityPermissions, guestPermissions);
236     }
237 
238     public static void addFeedResources(long feedId,
239         boolean addCommunityPermissions, boolean addGuestPermissions)
240         throws com.liferay.portal.PortalException,
241             com.liferay.portal.SystemException {
242         getService()
243             .addFeedResources(feedId, addCommunityPermissions,
244             addGuestPermissions);
245     }
246 
247     public static void addFeedResources(
248         com.liferay.portlet.journal.model.JournalFeed feed,
249         boolean addCommunityPermissions, boolean addGuestPermissions)
250         throws com.liferay.portal.PortalException,
251             com.liferay.portal.SystemException {
252         getService()
253             .addFeedResources(feed, addCommunityPermissions, addGuestPermissions);
254     }
255 
256     public static void addFeedResources(long feedId,
257         java.lang.String[] communityPermissions,
258         java.lang.String[] guestPermissions)
259         throws com.liferay.portal.PortalException,
260             com.liferay.portal.SystemException {
261         getService()
262             .addFeedResources(feedId, communityPermissions, guestPermissions);
263     }
264 
265     public static void addFeedResources(
266         com.liferay.portlet.journal.model.JournalFeed feed,
267         java.lang.String[] communityPermissions,
268         java.lang.String[] guestPermissions)
269         throws com.liferay.portal.PortalException,
270             com.liferay.portal.SystemException {
271         getService()
272             .addFeedResources(feed, communityPermissions, guestPermissions);
273     }
274 
275     public static void deleteFeed(long feedId)
276         throws com.liferay.portal.PortalException,
277             com.liferay.portal.SystemException {
278         getService().deleteFeed(feedId);
279     }
280 
281     public static void deleteFeed(long groupId, java.lang.String feedId)
282         throws com.liferay.portal.PortalException,
283             com.liferay.portal.SystemException {
284         getService().deleteFeed(groupId, feedId);
285     }
286 
287     public static void deleteFeed(
288         com.liferay.portlet.journal.model.JournalFeed feed)
289         throws com.liferay.portal.PortalException,
290             com.liferay.portal.SystemException {
291         getService().deleteFeed(feed);
292     }
293 
294     public static com.liferay.portlet.journal.model.JournalFeed getFeed(
295         long feedId)
296         throws com.liferay.portal.PortalException,
297             com.liferay.portal.SystemException {
298         return getService().getFeed(feedId);
299     }
300 
301     public static com.liferay.portlet.journal.model.JournalFeed getFeed(
302         long groupId, java.lang.String feedId)
303         throws com.liferay.portal.PortalException,
304             com.liferay.portal.SystemException {
305         return getService().getFeed(groupId, feedId);
306     }
307 
308     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
309         throws com.liferay.portal.SystemException {
310         return getService().getFeeds();
311     }
312 
313     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
314         long groupId) throws com.liferay.portal.SystemException {
315         return getService().getFeeds(groupId);
316     }
317 
318     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
319         long groupId, int start, int end)
320         throws com.liferay.portal.SystemException {
321         return getService().getFeeds(groupId, start, end);
322     }
323 
324     public static int getFeedsCount(long groupId)
325         throws com.liferay.portal.SystemException {
326         return getService().getFeedsCount(groupId);
327     }
328 
329     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
330         long companyId, long groupId, java.lang.String keywords, int start,
331         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
332         throws com.liferay.portal.SystemException {
333         return getService().search(companyId, groupId, keywords, start, end, obc);
334     }
335 
336     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
337         long companyId, long groupId, java.lang.String feedId,
338         java.lang.String name, java.lang.String description,
339         boolean andOperator, int start, int end,
340         com.liferay.portal.kernel.util.OrderByComparator obc)
341         throws com.liferay.portal.SystemException {
342         return getService()
343                    .search(companyId, groupId, feedId, name, description,
344             andOperator, start, end, obc);
345     }
346 
347     public static int searchCount(long companyId, long groupId,
348         java.lang.String keywords) throws com.liferay.portal.SystemException {
349         return getService().searchCount(companyId, groupId, keywords);
350     }
351 
352     public static int searchCount(long companyId, long groupId,
353         java.lang.String feedId, java.lang.String name,
354         java.lang.String description, boolean andOperator)
355         throws com.liferay.portal.SystemException {
356         return getService()
357                    .searchCount(companyId, groupId, feedId, name, description,
358             andOperator);
359     }
360 
361     public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
362         long groupId, java.lang.String feedId, java.lang.String name,
363         java.lang.String description, java.lang.String type,
364         java.lang.String structureId, java.lang.String templateId,
365         java.lang.String rendererTemplateId, int delta,
366         java.lang.String orderByCol, java.lang.String orderByType,
367         java.lang.String targetLayoutFriendlyUrl,
368         java.lang.String targetPortletId, java.lang.String contentField,
369         java.lang.String feedType, double feedVersion)
370         throws com.liferay.portal.PortalException,
371             com.liferay.portal.SystemException {
372         return getService()
373                    .updateFeed(groupId, feedId, name, description, type,
374             structureId, templateId, rendererTemplateId, delta, orderByCol,
375             orderByType, targetLayoutFriendlyUrl, targetPortletId,
376             contentField, feedType, feedVersion);
377     }
378 
379     public static JournalFeedLocalService getService() {
380         if (_service == null) {
381             _service = (JournalFeedLocalService)PortalBeanLocatorUtil.locate(JournalFeedLocalService.class.getName());
382         }
383 
384         return _service;
385     }
386 
387     public void setService(JournalFeedLocalService service) {
388         _service = service;
389     }
390 
391     private static JournalFeedLocalService _service;
392 }