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