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