1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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   * {@link JournalFeedLocalService} bean. The static methods of
37   * this class calls the same methods of the bean instance. It's convenient to be
38   * able to just write one line to call a method on a bean instead of writing a
39   * lookup call and a method call.
40   * </p>
41   *
42   * @author    Brian Wing Shun Chan
43   * @see       JournalFeedLocalService
44   * @generated
45   */
46  public class JournalFeedLocalServiceUtil {
47      public static com.liferay.portlet.journal.model.JournalFeed addJournalFeed(
48          com.liferay.portlet.journal.model.JournalFeed journalFeed)
49          throws com.liferay.portal.SystemException {
50          return getService().addJournalFeed(journalFeed);
51      }
52  
53      public static com.liferay.portlet.journal.model.JournalFeed createJournalFeed(
54          long id) {
55          return getService().createJournalFeed(id);
56      }
57  
58      public static void deleteJournalFeed(long id)
59          throws com.liferay.portal.PortalException,
60              com.liferay.portal.SystemException {
61          getService().deleteJournalFeed(id);
62      }
63  
64      public static void deleteJournalFeed(
65          com.liferay.portlet.journal.model.JournalFeed journalFeed)
66          throws com.liferay.portal.SystemException {
67          getService().deleteJournalFeed(journalFeed);
68      }
69  
70      public static java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72          throws com.liferay.portal.SystemException {
73          return getService().dynamicQuery(dynamicQuery);
74      }
75  
76      public static java.util.List<Object> dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end) throws com.liferay.portal.SystemException {
79          return getService().dynamicQuery(dynamicQuery, start, end);
80      }
81  
82      public static com.liferay.portlet.journal.model.JournalFeed getJournalFeed(
83          long id)
84          throws com.liferay.portal.PortalException,
85              com.liferay.portal.SystemException {
86          return getService().getJournalFeed(id);
87      }
88  
89      public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
90          int start, int end) throws com.liferay.portal.SystemException {
91          return getService().getJournalFeeds(start, end);
92      }
93  
94      public static int getJournalFeedsCount()
95          throws com.liferay.portal.SystemException {
96          return getService().getJournalFeedsCount();
97      }
98  
99      public static com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
100         com.liferay.portlet.journal.model.JournalFeed journalFeed)
101         throws com.liferay.portal.SystemException {
102         return getService().updateJournalFeed(journalFeed);
103     }
104 
105     public static com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
106         com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
107         throws com.liferay.portal.SystemException {
108         return getService().updateJournalFeed(journalFeed, merge);
109     }
110 
111     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
112         long userId, long groupId, java.lang.String feedId, boolean autoFeedId,
113         java.lang.String name, java.lang.String description,
114         java.lang.String type, java.lang.String structureId,
115         java.lang.String templateId, java.lang.String rendererTemplateId,
116         int delta, java.lang.String orderByCol, java.lang.String orderByType,
117         java.lang.String targetLayoutFriendlyUrl,
118         java.lang.String targetPortletId, java.lang.String contentField,
119         java.lang.String feedType, double feedVersion,
120         com.liferay.portal.service.ServiceContext serviceContext)
121         throws com.liferay.portal.PortalException,
122             com.liferay.portal.SystemException {
123         return getService()
124                    .addFeed(userId, groupId, feedId, autoFeedId, name,
125             description, type, structureId, templateId, rendererTemplateId,
126             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
127             targetPortletId, contentField, feedType, feedVersion, serviceContext);
128     }
129 
130     public static com.liferay.portlet.journal.model.JournalFeed addFeed(
131         java.lang.String uuid, long userId, long groupId,
132         java.lang.String feedId, boolean autoFeedId, java.lang.String name,
133         java.lang.String description, java.lang.String type,
134         java.lang.String structureId, java.lang.String templateId,
135         java.lang.String rendererTemplateId, int delta,
136         java.lang.String orderByCol, java.lang.String orderByType,
137         java.lang.String targetLayoutFriendlyUrl,
138         java.lang.String targetPortletId, java.lang.String contentField,
139         java.lang.String feedType, double feedVersion,
140         com.liferay.portal.service.ServiceContext serviceContext)
141         throws com.liferay.portal.PortalException,
142             com.liferay.portal.SystemException {
143         return getService()
144                    .addFeed(uuid, userId, groupId, feedId, autoFeedId, name,
145             description, type, structureId, templateId, rendererTemplateId,
146             delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
147             targetPortletId, contentField, feedType, feedVersion, serviceContext);
148     }
149 
150     public static void addFeedResources(long feedId,
151         boolean addCommunityPermissions, boolean addGuestPermissions)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException {
154         getService()
155             .addFeedResources(feedId, addCommunityPermissions,
156             addGuestPermissions);
157     }
158 
159     public static void addFeedResources(
160         com.liferay.portlet.journal.model.JournalFeed feed,
161         boolean addCommunityPermissions, boolean addGuestPermissions)
162         throws com.liferay.portal.PortalException,
163             com.liferay.portal.SystemException {
164         getService()
165             .addFeedResources(feed, addCommunityPermissions, addGuestPermissions);
166     }
167 
168     public static void addFeedResources(long feedId,
169         java.lang.String[] communityPermissions,
170         java.lang.String[] guestPermissions)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException {
173         getService()
174             .addFeedResources(feedId, communityPermissions, guestPermissions);
175     }
176 
177     public static void addFeedResources(
178         com.liferay.portlet.journal.model.JournalFeed feed,
179         java.lang.String[] communityPermissions,
180         java.lang.String[] guestPermissions)
181         throws com.liferay.portal.PortalException,
182             com.liferay.portal.SystemException {
183         getService()
184             .addFeedResources(feed, communityPermissions, guestPermissions);
185     }
186 
187     public static void deleteFeed(long feedId)
188         throws com.liferay.portal.PortalException,
189             com.liferay.portal.SystemException {
190         getService().deleteFeed(feedId);
191     }
192 
193     public static void deleteFeed(long groupId, java.lang.String feedId)
194         throws com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException {
196         getService().deleteFeed(groupId, feedId);
197     }
198 
199     public static void deleteFeed(
200         com.liferay.portlet.journal.model.JournalFeed feed)
201         throws com.liferay.portal.PortalException,
202             com.liferay.portal.SystemException {
203         getService().deleteFeed(feed);
204     }
205 
206     public static com.liferay.portlet.journal.model.JournalFeed getFeed(
207         long feedId)
208         throws com.liferay.portal.PortalException,
209             com.liferay.portal.SystemException {
210         return getService().getFeed(feedId);
211     }
212 
213     public static com.liferay.portlet.journal.model.JournalFeed getFeed(
214         long groupId, java.lang.String feedId)
215         throws com.liferay.portal.PortalException,
216             com.liferay.portal.SystemException {
217         return getService().getFeed(groupId, feedId);
218     }
219 
220     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
221         throws com.liferay.portal.SystemException {
222         return getService().getFeeds();
223     }
224 
225     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
226         long groupId) throws com.liferay.portal.SystemException {
227         return getService().getFeeds(groupId);
228     }
229 
230     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
231         long groupId, int start, int end)
232         throws com.liferay.portal.SystemException {
233         return getService().getFeeds(groupId, start, end);
234     }
235 
236     public static int getFeedsCount(long groupId)
237         throws com.liferay.portal.SystemException {
238         return getService().getFeedsCount(groupId);
239     }
240 
241     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
242         long companyId, long groupId, java.lang.String keywords, int start,
243         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
244         throws com.liferay.portal.SystemException {
245         return getService().search(companyId, groupId, keywords, start, end, obc);
246     }
247 
248     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
249         long companyId, long groupId, java.lang.String feedId,
250         java.lang.String name, java.lang.String description,
251         boolean andOperator, int start, int end,
252         com.liferay.portal.kernel.util.OrderByComparator obc)
253         throws com.liferay.portal.SystemException {
254         return getService()
255                    .search(companyId, groupId, feedId, name, description,
256             andOperator, start, end, obc);
257     }
258 
259     public static int searchCount(long companyId, long groupId,
260         java.lang.String keywords) throws com.liferay.portal.SystemException {
261         return getService().searchCount(companyId, groupId, keywords);
262     }
263 
264     public static int searchCount(long companyId, long groupId,
265         java.lang.String feedId, java.lang.String name,
266         java.lang.String description, boolean andOperator)
267         throws com.liferay.portal.SystemException {
268         return getService()
269                    .searchCount(companyId, groupId, feedId, name, description,
270             andOperator);
271     }
272 
273     public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
274         long groupId, java.lang.String feedId, java.lang.String name,
275         java.lang.String description, java.lang.String type,
276         java.lang.String structureId, java.lang.String templateId,
277         java.lang.String rendererTemplateId, int delta,
278         java.lang.String orderByCol, java.lang.String orderByType,
279         java.lang.String targetLayoutFriendlyUrl,
280         java.lang.String targetPortletId, java.lang.String contentField,
281         java.lang.String feedType, double feedVersion,
282         com.liferay.portal.service.ServiceContext serviceContext)
283         throws com.liferay.portal.PortalException,
284             com.liferay.portal.SystemException {
285         return getService()
286                    .updateFeed(groupId, feedId, name, description, type,
287             structureId, templateId, rendererTemplateId, delta, orderByCol,
288             orderByType, targetLayoutFriendlyUrl, targetPortletId,
289             contentField, feedType, feedVersion, serviceContext);
290     }
291 
292     public static JournalFeedLocalService getService() {
293         if (_service == null) {
294             throw new RuntimeException("JournalFeedLocalService is not set");
295         }
296 
297         return _service;
298     }
299 
300     public void setService(JournalFeedLocalService service) {
301         _service = service;
302     }
303 
304     private static JournalFeedLocalService _service;
305 }