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 groupId, 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         com.liferay.portal.service.ServiceContext serviceContext)
119         throws com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException {
121         return getService()
122                    .addFeed(userId, groupId, feedId, autoFeedId, name,
123             description, type, structureId, templateId, rendererTemplateId,
124             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
125             targetPortletId, contentField, feedType, feedVersion, serviceContext);
126     }
127 
128     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
129         java.lang.String uuid, long userId, long groupId,
130         java.lang.String feedId, boolean autoFeedId, java.lang.String name,
131         java.lang.String description, java.lang.String type,
132         java.lang.String structureId, java.lang.String templateId,
133         java.lang.String rendererTemplateId, int delta,
134         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         com.liferay.portal.service.ServiceContext serviceContext)
139         throws com.liferay.portal.PortalException,
140             com.liferay.portal.SystemException {
141         return getService()
142                    .addFeed(uuid, userId, groupId, feedId, autoFeedId, name,
143             description, type, structureId, templateId, rendererTemplateId,
144             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
145             targetPortletId, contentField, feedType, feedVersion, serviceContext);
146     }
147 
148     public static void addFeedResources(long feedId,
149         boolean addCommunityPermissions, boolean addGuestPermissions)
150         throws com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException {
152         getService()
153             .addFeedResources(feedId, addCommunityPermissions,
154             addGuestPermissions);
155     }
156 
157     public static void addFeedResources(
158         com.liferay.portlet.journal.model.JournalFeed feed,
159         boolean addCommunityPermissions, boolean addGuestPermissions)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException {
162         getService()
163             .addFeedResources(feed, addCommunityPermissions, addGuestPermissions);
164     }
165 
166     public static void addFeedResources(long feedId,
167         java.lang.String[] communityPermissions,
168         java.lang.String[] guestPermissions)
169         throws com.liferay.portal.PortalException,
170             com.liferay.portal.SystemException {
171         getService()
172             .addFeedResources(feedId, communityPermissions, guestPermissions);
173     }
174 
175     public static void addFeedResources(
176         com.liferay.portlet.journal.model.JournalFeed feed,
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(feed, communityPermissions, guestPermissions);
183     }
184 
185     public static void deleteFeed(long feedId)
186         throws com.liferay.portal.PortalException,
187             com.liferay.portal.SystemException {
188         getService().deleteFeed(feedId);
189     }
190 
191     public static void deleteFeed(long groupId, java.lang.String feedId)
192         throws com.liferay.portal.PortalException,
193             com.liferay.portal.SystemException {
194         getService().deleteFeed(groupId, feedId);
195     }
196 
197     public static void deleteFeed(
198         com.liferay.portlet.journal.model.JournalFeed feed)
199         throws com.liferay.portal.PortalException,
200             com.liferay.portal.SystemException {
201         getService().deleteFeed(feed);
202     }
203 
204     public static com.liferay.portlet.journal.model.JournalFeed getFeed(
205         long feedId)
206         throws com.liferay.portal.PortalException,
207             com.liferay.portal.SystemException {
208         return getService().getFeed(feedId);
209     }
210 
211     public static com.liferay.portlet.journal.model.JournalFeed getFeed(
212         long groupId, java.lang.String feedId)
213         throws com.liferay.portal.PortalException,
214             com.liferay.portal.SystemException {
215         return getService().getFeed(groupId, feedId);
216     }
217 
218     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
219         throws com.liferay.portal.SystemException {
220         return getService().getFeeds();
221     }
222 
223     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
224         long groupId) throws com.liferay.portal.SystemException {
225         return getService().getFeeds(groupId);
226     }
227 
228     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
229         long groupId, int start, int end)
230         throws com.liferay.portal.SystemException {
231         return getService().getFeeds(groupId, start, end);
232     }
233 
234     public static int getFeedsCount(long groupId)
235         throws com.liferay.portal.SystemException {
236         return getService().getFeedsCount(groupId);
237     }
238 
239     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
240         long companyId, long groupId, java.lang.String keywords, int start,
241         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
242         throws com.liferay.portal.SystemException {
243         return getService().search(companyId, groupId, keywords, start, end, obc);
244     }
245 
246     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
247         long companyId, long groupId, java.lang.String feedId,
248         java.lang.String name, java.lang.String description,
249         boolean andOperator, int start, int end,
250         com.liferay.portal.kernel.util.OrderByComparator obc)
251         throws com.liferay.portal.SystemException {
252         return getService()
253                    .search(companyId, groupId, feedId, name, description,
254             andOperator, start, end, obc);
255     }
256 
257     public static int searchCount(long companyId, long groupId,
258         java.lang.String keywords) throws com.liferay.portal.SystemException {
259         return getService().searchCount(companyId, groupId, keywords);
260     }
261 
262     public static int searchCount(long companyId, long groupId,
263         java.lang.String feedId, java.lang.String name,
264         java.lang.String description, boolean andOperator)
265         throws com.liferay.portal.SystemException {
266         return getService()
267                    .searchCount(companyId, groupId, feedId, name, description,
268             andOperator);
269     }
270 
271     public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
272         long groupId, java.lang.String feedId, java.lang.String name,
273         java.lang.String description, java.lang.String type,
274         java.lang.String structureId, java.lang.String templateId,
275         java.lang.String rendererTemplateId, int delta,
276         java.lang.String orderByCol, java.lang.String orderByType,
277         java.lang.String targetLayoutFriendlyUrl,
278         java.lang.String targetPortletId, java.lang.String contentField,
279         java.lang.String feedType, double feedVersion,
280         com.liferay.portal.service.ServiceContext serviceContext)
281         throws com.liferay.portal.PortalException,
282             com.liferay.portal.SystemException {
283         return getService()
284                    .updateFeed(groupId, feedId, name, description, type,
285             structureId, templateId, rendererTemplateId, delta, orderByCol,
286             orderByType, targetLayoutFriendlyUrl, targetPortletId,
287             contentField, feedType, feedVersion, serviceContext);
288     }
289 
290     public static JournalFeedLocalService getService() {
291         if (_service == null) {
292             throw new RuntimeException("JournalFeedLocalService is not set");
293         }
294 
295         return _service;
296     }
297 
298     public void setService(JournalFeedLocalService service) {
299         _service = service;
300     }
301 
302     private static JournalFeedLocalService _service;
303 }