1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.journal.service;
24  
25  
26  /**
27   * <a href="JournalFeedLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portlet.journal.service.JournalFeedLocalService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portlet.journal.service.JournalFeedLocalService
45   *
46   */
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 updateJournalFeed(
107         com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
108         throws com.liferay.portal.SystemException {
109         return getService().updateJournalFeed(journalFeed, merge);
110     }
111 
112     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
113         long userId, long plid, java.lang.String feedId, boolean autoFeedId,
114         java.lang.String name, java.lang.String description,
115         java.lang.String type, java.lang.String structureId,
116         java.lang.String templateId, java.lang.String rendererTemplateId,
117         int delta, java.lang.String orderByCol, java.lang.String orderByType,
118         java.lang.String targetLayoutFriendlyUrl,
119         java.lang.String targetPortletId, java.lang.String contentField,
120         java.lang.String feedType, double feedVersion,
121         boolean addCommunityPermissions, boolean addGuestPermissions)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException {
124         return getService()
125                    .addFeed(userId, plid, feedId, autoFeedId, name,
126             description, type, structureId, templateId, rendererTemplateId,
127             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
128             targetPortletId, contentField, feedType, feedVersion,
129             addCommunityPermissions, addGuestPermissions);
130     }
131 
132     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
133         long userId, long plid, java.lang.String feedId, boolean autoFeedId,
134         java.lang.String name, java.lang.String description,
135         java.lang.String type, java.lang.String structureId,
136         java.lang.String templateId, java.lang.String rendererTemplateId,
137         int delta, java.lang.String orderByCol, java.lang.String orderByType,
138         java.lang.String targetLayoutFriendlyUrl,
139         java.lang.String targetPortletId, java.lang.String contentField,
140         java.lang.String feedType, double feedVersion,
141         java.lang.String[] communityPermissions,
142         java.lang.String[] guestPermissions)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException {
145         return getService()
146                    .addFeed(userId, plid, feedId, autoFeedId, name,
147             description, type, structureId, templateId, rendererTemplateId,
148             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
149             targetPortletId, contentField, feedType, feedVersion,
150             communityPermissions, guestPermissions);
151     }
152 
153     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
154         java.lang.String uuid, long userId, long plid, java.lang.String feedId,
155         boolean autoFeedId, java.lang.String name,
156         java.lang.String description, java.lang.String type,
157         java.lang.String structureId, java.lang.String templateId,
158         java.lang.String rendererTemplateId, int delta,
159         java.lang.String orderByCol, java.lang.String orderByType,
160         java.lang.String targetLayoutFriendlyUrl,
161         java.lang.String targetPortletId, java.lang.String contentField,
162         java.lang.String feedType, double feedVersion,
163         boolean addCommunityPermissions, boolean addGuestPermissions)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException {
166         return getService()
167                    .addFeed(uuid, userId, plid, feedId, autoFeedId, name,
168             description, type, structureId, templateId, rendererTemplateId,
169             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
170             targetPortletId, contentField, feedType, feedVersion,
171             addCommunityPermissions, addGuestPermissions);
172     }
173 
174     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
175         java.lang.String uuid, long userId, long plid, java.lang.String feedId,
176         boolean autoFeedId, java.lang.String name,
177         java.lang.String description, java.lang.String type,
178         java.lang.String structureId, java.lang.String templateId,
179         java.lang.String rendererTemplateId, int delta,
180         java.lang.String orderByCol, java.lang.String orderByType,
181         java.lang.String targetLayoutFriendlyUrl,
182         java.lang.String targetPortletId, java.lang.String contentField,
183         java.lang.String feedType, double feedVersion,
184         java.lang.String[] communityPermissions,
185         java.lang.String[] guestPermissions)
186         throws com.liferay.portal.PortalException,
187             com.liferay.portal.SystemException {
188         return getService()
189                    .addFeed(uuid, userId, plid, feedId, autoFeedId, name,
190             description, type, structureId, templateId, rendererTemplateId,
191             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
192             targetPortletId, contentField, feedType, feedVersion,
193             communityPermissions, guestPermissions);
194     }
195 
196     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
197         java.lang.String uuid, long userId, long plid, java.lang.String feedId,
198         boolean autoFeedId, java.lang.String name,
199         java.lang.String description, java.lang.String type,
200         java.lang.String structureId, java.lang.String templateId,
201         java.lang.String rendererTemplateId, int delta,
202         java.lang.String orderByCol, java.lang.String orderByType,
203         java.lang.String targetLayoutFriendlyUrl,
204         java.lang.String targetPortletId, java.lang.String contentField,
205         java.lang.String feedType, double feedVersion,
206         java.lang.Boolean addCommunityPermissions,
207         java.lang.Boolean addGuestPermissions,
208         java.lang.String[] communityPermissions,
209         java.lang.String[] guestPermissions)
210         throws com.liferay.portal.PortalException,
211             com.liferay.portal.SystemException {
212         return getService()
213                    .addFeed(uuid, userId, plid, feedId, autoFeedId, name,
214             description, type, structureId, templateId, rendererTemplateId,
215             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
216             targetPortletId, contentField, feedType, feedVersion,
217             addCommunityPermissions, addGuestPermissions, communityPermissions,
218             guestPermissions);
219     }
220 
221     public static com.liferay.portlet.journal.model.JournalFeed addFeedToGroup(
222         java.lang.String uuid, long userId, long groupId,
223         java.lang.String feedId, boolean autoFeedId, java.lang.String name,
224         java.lang.String description, java.lang.String type,
225         java.lang.String structureId, java.lang.String templateId,
226         java.lang.String rendererTemplateId, int delta,
227         java.lang.String orderByCol, java.lang.String orderByType,
228         java.lang.String targetLayoutFriendlyUrl,
229         java.lang.String targetPortletId, java.lang.String contentField,
230         java.lang.String feedType, double feedVersion,
231         java.lang.Boolean addCommunityPermissions,
232         java.lang.Boolean addGuestPermissions,
233         java.lang.String[] communityPermissions,
234         java.lang.String[] guestPermissions)
235         throws com.liferay.portal.PortalException,
236             com.liferay.portal.SystemException {
237         return getService()
238                    .addFeedToGroup(uuid, userId, groupId, feedId, autoFeedId,
239             name, description, type, structureId, templateId,
240             rendererTemplateId, delta, orderByCol, orderByType,
241             targetLayoutFriendlyUrl, targetPortletId, contentField, feedType,
242             feedVersion, addCommunityPermissions, addGuestPermissions,
243             communityPermissions, guestPermissions);
244     }
245 
246     public static void addFeedResources(long feedId,
247         boolean addCommunityPermissions, boolean addGuestPermissions)
248         throws com.liferay.portal.PortalException,
249             com.liferay.portal.SystemException {
250         getService()
251             .addFeedResources(feedId, addCommunityPermissions,
252             addGuestPermissions);
253     }
254 
255     public static void addFeedResources(
256         com.liferay.portlet.journal.model.JournalFeed feed,
257         boolean addCommunityPermissions, boolean addGuestPermissions)
258         throws com.liferay.portal.PortalException,
259             com.liferay.portal.SystemException {
260         getService()
261             .addFeedResources(feed, addCommunityPermissions, addGuestPermissions);
262     }
263 
264     public static void addFeedResources(long feedId,
265         java.lang.String[] communityPermissions,
266         java.lang.String[] guestPermissions)
267         throws com.liferay.portal.PortalException,
268             com.liferay.portal.SystemException {
269         getService()
270             .addFeedResources(feedId, communityPermissions, guestPermissions);
271     }
272 
273     public static void addFeedResources(
274         com.liferay.portlet.journal.model.JournalFeed feed,
275         java.lang.String[] communityPermissions,
276         java.lang.String[] guestPermissions)
277         throws com.liferay.portal.PortalException,
278             com.liferay.portal.SystemException {
279         getService()
280             .addFeedResources(feed, communityPermissions, guestPermissions);
281     }
282 
283     public static void deleteFeed(long feedId)
284         throws com.liferay.portal.PortalException,
285             com.liferay.portal.SystemException {
286         getService().deleteFeed(feedId);
287     }
288 
289     public static void deleteFeed(long groupId, java.lang.String feedId)
290         throws com.liferay.portal.PortalException,
291             com.liferay.portal.SystemException {
292         getService().deleteFeed(groupId, feedId);
293     }
294 
295     public static void deleteFeed(
296         com.liferay.portlet.journal.model.JournalFeed feed)
297         throws com.liferay.portal.PortalException,
298             com.liferay.portal.SystemException {
299         getService().deleteFeed(feed);
300     }
301 
302     public static com.liferay.portlet.journal.model.JournalFeed getFeed(
303         long feedId)
304         throws com.liferay.portal.PortalException,
305             com.liferay.portal.SystemException {
306         return getService().getFeed(feedId);
307     }
308 
309     public static com.liferay.portlet.journal.model.JournalFeed getFeed(
310         long groupId, java.lang.String feedId)
311         throws com.liferay.portal.PortalException,
312             com.liferay.portal.SystemException {
313         return getService().getFeed(groupId, feedId);
314     }
315 
316     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
317         throws com.liferay.portal.SystemException {
318         return getService().getFeeds();
319     }
320 
321     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
322         long groupId) throws com.liferay.portal.SystemException {
323         return getService().getFeeds(groupId);
324     }
325 
326     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
327         long groupId, int start, int end)
328         throws com.liferay.portal.SystemException {
329         return getService().getFeeds(groupId, start, end);
330     }
331 
332     public static int getFeedsCount(long groupId)
333         throws com.liferay.portal.SystemException {
334         return getService().getFeedsCount(groupId);
335     }
336 
337     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
338         long companyId, long groupId, java.lang.String keywords, int start,
339         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
340         throws com.liferay.portal.SystemException {
341         return getService().search(companyId, groupId, keywords, start, end, obc);
342     }
343 
344     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
345         long companyId, long groupId, java.lang.String feedId,
346         java.lang.String name, java.lang.String description,
347         boolean andOperator, int start, int end,
348         com.liferay.portal.kernel.util.OrderByComparator obc)
349         throws com.liferay.portal.SystemException {
350         return getService()
351                    .search(companyId, groupId, feedId, name, description,
352             andOperator, start, end, obc);
353     }
354 
355     public static int searchCount(long companyId, long groupId,
356         java.lang.String keywords) throws com.liferay.portal.SystemException {
357         return getService().searchCount(companyId, groupId, keywords);
358     }
359 
360     public static int searchCount(long companyId, long groupId,
361         java.lang.String feedId, java.lang.String name,
362         java.lang.String description, boolean andOperator)
363         throws com.liferay.portal.SystemException {
364         return getService()
365                    .searchCount(companyId, groupId, feedId, name, description,
366             andOperator);
367     }
368 
369     public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
370         long groupId, java.lang.String feedId, java.lang.String name,
371         java.lang.String description, java.lang.String type,
372         java.lang.String structureId, java.lang.String templateId,
373         java.lang.String rendererTemplateId, int delta,
374         java.lang.String orderByCol, java.lang.String orderByType,
375         java.lang.String targetLayoutFriendlyUrl,
376         java.lang.String targetPortletId, java.lang.String contentField,
377         java.lang.String feedType, double feedVersion)
378         throws com.liferay.portal.PortalException,
379             com.liferay.portal.SystemException {
380         return getService()
381                    .updateFeed(groupId, feedId, name, description, type,
382             structureId, templateId, rendererTemplateId, delta, orderByCol,
383             orderByType, targetLayoutFriendlyUrl, targetPortletId,
384             contentField, feedType, feedVersion);
385     }
386 
387     public static JournalFeedLocalService getService() {
388         if (_service == null) {
389             throw new RuntimeException("JournalFeedLocalService is not set");
390         }
391 
392         return _service;
393     }
394 
395     public void setService(JournalFeedLocalService service) {
396         _service = service;
397     }
398 
399     private static JournalFeedLocalService _service;
400 }