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.blogs.service;
24  
25  
26  /**
27   * <a href="BlogsEntryLocalServiceUtil.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 BlogsEntryLocalService} 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       BlogsEntryLocalService
44   * @generated
45   */
46  public class BlogsEntryLocalServiceUtil {
47      public static com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
48          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
49          throws com.liferay.portal.SystemException {
50          return getService().addBlogsEntry(blogsEntry);
51      }
52  
53      public static com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
54          long entryId) {
55          return getService().createBlogsEntry(entryId);
56      }
57  
58      public static void deleteBlogsEntry(long entryId)
59          throws com.liferay.portal.PortalException,
60              com.liferay.portal.SystemException {
61          getService().deleteBlogsEntry(entryId);
62      }
63  
64      public static void deleteBlogsEntry(
65          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
66          throws com.liferay.portal.SystemException {
67          getService().deleteBlogsEntry(blogsEntry);
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.blogs.model.BlogsEntry getBlogsEntry(
83          long entryId)
84          throws com.liferay.portal.PortalException,
85              com.liferay.portal.SystemException {
86          return getService().getBlogsEntry(entryId);
87      }
88  
89      public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
90          int start, int end) throws com.liferay.portal.SystemException {
91          return getService().getBlogsEntries(start, end);
92      }
93  
94      public static int getBlogsEntriesCount()
95          throws com.liferay.portal.SystemException {
96          return getService().getBlogsEntriesCount();
97      }
98  
99      public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
100         com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
101         throws com.liferay.portal.SystemException {
102         return getService().updateBlogsEntry(blogsEntry);
103     }
104 
105     public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
106         com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
107         throws com.liferay.portal.SystemException {
108         return getService().updateBlogsEntry(blogsEntry, merge);
109     }
110 
111     public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
112         long userId, java.lang.String title, java.lang.String content,
113         int displayDateMonth, int displayDateDay, int displayDateYear,
114         int displayDateHour, int displayDateMinute, boolean draft,
115         boolean allowTrackbacks, java.lang.String[] trackbacks,
116         com.liferay.portal.service.ServiceContext serviceContext)
117         throws com.liferay.portal.PortalException,
118             com.liferay.portal.SystemException {
119         return getService()
120                    .addEntry(userId, title, content, displayDateMonth,
121             displayDateDay, displayDateYear, displayDateHour,
122             displayDateMinute, draft, allowTrackbacks, trackbacks,
123             serviceContext);
124     }
125 
126     public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
127         java.lang.String uuid, long userId, java.lang.String title,
128         java.lang.String content, int displayDateMonth, int displayDateDay,
129         int displayDateYear, int displayDateHour, int displayDateMinute,
130         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
131         com.liferay.portal.service.ServiceContext serviceContext)
132         throws com.liferay.portal.PortalException,
133             com.liferay.portal.SystemException {
134         return getService()
135                    .addEntry(uuid, userId, title, content, displayDateMonth,
136             displayDateDay, displayDateYear, displayDateHour,
137             displayDateMinute, draft, allowTrackbacks, trackbacks,
138             serviceContext);
139     }
140 
141     public static void addEntryResources(long entryId,
142         boolean addCommunityPermissions, boolean addGuestPermissions)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException {
145         getService()
146             .addEntryResources(entryId, addCommunityPermissions,
147             addGuestPermissions);
148     }
149 
150     public static void addEntryResources(
151         com.liferay.portlet.blogs.model.BlogsEntry entry,
152         boolean addCommunityPermissions, boolean addGuestPermissions)
153         throws com.liferay.portal.PortalException,
154             com.liferay.portal.SystemException {
155         getService()
156             .addEntryResources(entry, addCommunityPermissions,
157             addGuestPermissions);
158     }
159 
160     public static void addEntryResources(long entryId,
161         java.lang.String[] communityPermissions,
162         java.lang.String[] guestPermissions)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException {
165         getService()
166             .addEntryResources(entryId, communityPermissions, guestPermissions);
167     }
168 
169     public static void addEntryResources(
170         com.liferay.portlet.blogs.model.BlogsEntry entry,
171         java.lang.String[] communityPermissions,
172         java.lang.String[] guestPermissions)
173         throws com.liferay.portal.PortalException,
174             com.liferay.portal.SystemException {
175         getService()
176             .addEntryResources(entry, communityPermissions, guestPermissions);
177     }
178 
179     public static void deleteEntries(long groupId)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException {
182         getService().deleteEntries(groupId);
183     }
184 
185     public static void deleteEntry(long entryId)
186         throws com.liferay.portal.PortalException,
187             com.liferay.portal.SystemException {
188         getService().deleteEntry(entryId);
189     }
190 
191     public static void deleteEntry(
192         com.liferay.portlet.blogs.model.BlogsEntry entry)
193         throws com.liferay.portal.PortalException,
194             com.liferay.portal.SystemException {
195         getService().deleteEntry(entry);
196     }
197 
198     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
199         long companyId, int start, int end)
200         throws com.liferay.portal.SystemException {
201         return getService().getCompanyEntries(companyId, start, end);
202     }
203 
204     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
205         long companyId, int start, int end,
206         com.liferay.portal.kernel.util.OrderByComparator obc)
207         throws com.liferay.portal.SystemException {
208         return getService().getCompanyEntries(companyId, start, end, obc);
209     }
210 
211     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
212         long companyId, boolean draft, int start, int end)
213         throws com.liferay.portal.SystemException {
214         return getService().getCompanyEntries(companyId, draft, start, end);
215     }
216 
217     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
218         long companyId, boolean draft, int start, int end,
219         com.liferay.portal.kernel.util.OrderByComparator obc)
220         throws com.liferay.portal.SystemException {
221         return getService().getCompanyEntries(companyId, draft, start, end, obc);
222     }
223 
224     public static int getCompanyEntriesCount(long companyId)
225         throws com.liferay.portal.SystemException {
226         return getService().getCompanyEntriesCount(companyId);
227     }
228 
229     public static int getCompanyEntriesCount(long companyId, boolean draft)
230         throws com.liferay.portal.SystemException {
231         return getService().getCompanyEntriesCount(companyId, draft);
232     }
233 
234     public static com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
235         long entryId)
236         throws com.liferay.portal.PortalException,
237             com.liferay.portal.SystemException {
238         return getService().getEntriesPrevAndNext(entryId);
239     }
240 
241     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
242         long entryId)
243         throws com.liferay.portal.PortalException,
244             com.liferay.portal.SystemException {
245         return getService().getEntry(entryId);
246     }
247 
248     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
249         long groupId, java.lang.String urlTitle)
250         throws com.liferay.portal.PortalException,
251             com.liferay.portal.SystemException {
252         return getService().getEntry(groupId, urlTitle);
253     }
254 
255     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
256         long groupId, int start, int end)
257         throws com.liferay.portal.SystemException {
258         return getService().getGroupEntries(groupId, start, end);
259     }
260 
261     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
262         long groupId, int start, int end,
263         com.liferay.portal.kernel.util.OrderByComparator obc)
264         throws com.liferay.portal.SystemException {
265         return getService().getGroupEntries(groupId, start, end, obc);
266     }
267 
268     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
269         long groupId, boolean draft, int start, int end)
270         throws com.liferay.portal.SystemException {
271         return getService().getGroupEntries(groupId, draft, start, end);
272     }
273 
274     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
275         long groupId, boolean draft, int start, int end,
276         com.liferay.portal.kernel.util.OrderByComparator obc)
277         throws com.liferay.portal.SystemException {
278         return getService().getGroupEntries(groupId, draft, start, end, obc);
279     }
280 
281     public static int getGroupEntriesCount(long groupId)
282         throws com.liferay.portal.SystemException {
283         return getService().getGroupEntriesCount(groupId);
284     }
285 
286     public static int getGroupEntriesCount(long groupId, boolean draft)
287         throws com.liferay.portal.SystemException {
288         return getService().getGroupEntriesCount(groupId, draft);
289     }
290 
291     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
292         long groupId, long userId, int start, int end)
293         throws com.liferay.portal.SystemException {
294         return getService().getGroupUserEntries(groupId, userId, start, end);
295     }
296 
297     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
298         long groupId, long userId, int start, int end,
299         com.liferay.portal.kernel.util.OrderByComparator obc)
300         throws com.liferay.portal.SystemException {
301         return getService().getGroupUserEntries(groupId, userId, start, end, obc);
302     }
303 
304     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
305         long groupId, long userId, boolean draft, int start, int end)
306         throws com.liferay.portal.SystemException {
307         return getService()
308                    .getGroupUserEntries(groupId, userId, draft, start, end);
309     }
310 
311     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
312         long groupId, long userId, boolean draft, int start, int end,
313         com.liferay.portal.kernel.util.OrderByComparator obc)
314         throws com.liferay.portal.SystemException {
315         return getService()
316                    .getGroupUserEntries(groupId, userId, draft, start, end, obc);
317     }
318 
319     public static int getGroupUserEntriesCount(long groupId, long userId)
320         throws com.liferay.portal.SystemException {
321         return getService().getGroupUserEntriesCount(groupId, userId);
322     }
323 
324     public static int getGroupUserEntriesCount(long groupId, long userId,
325         boolean draft) throws com.liferay.portal.SystemException {
326         return getService().getGroupUserEntriesCount(groupId, userId, draft);
327     }
328 
329     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
330         throws com.liferay.portal.SystemException {
331         return getService().getNoAssetEntries();
332     }
333 
334     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
335         long organizationId, boolean draft, int start, int end)
336         throws com.liferay.portal.SystemException {
337         return getService()
338                    .getOrganizationEntries(organizationId, draft, start, end);
339     }
340 
341     public static int getOrganizationEntriesCount(long organizationId,
342         boolean draft) throws com.liferay.portal.SystemException {
343         return getService().getOrganizationEntriesCount(organizationId, draft);
344     }
345 
346     public static java.lang.String getUrlTitle(long entryId,
347         java.lang.String title) {
348         return getService().getUrlTitle(entryId, title);
349     }
350 
351     public static void reIndex(long entryId)
352         throws com.liferay.portal.SystemException {
353         getService().reIndex(entryId);
354     }
355 
356     public static void reIndex(com.liferay.portlet.blogs.model.BlogsEntry entry)
357         throws com.liferay.portal.SystemException {
358         getService().reIndex(entry);
359     }
360 
361     public static void reIndex(java.lang.String[] ids)
362         throws com.liferay.portal.SystemException {
363         getService().reIndex(ids);
364     }
365 
366     public static com.liferay.portal.kernel.search.Hits search(long companyId,
367         long groupId, long userId, long ownerUserId, java.lang.String keywords,
368         int start, int end) throws com.liferay.portal.SystemException {
369         return getService()
370                    .search(companyId, groupId, userId, ownerUserId, keywords,
371             start, end);
372     }
373 
374     public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
375         long userId, long entryId, java.lang.String title,
376         java.lang.String content, int displayDateMonth, int displayDateDay,
377         int displayDateYear, int displayDateHour, int displayDateMinute,
378         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
379         com.liferay.portal.service.ServiceContext serviceContext)
380         throws com.liferay.portal.PortalException,
381             com.liferay.portal.SystemException {
382         return getService()
383                    .updateEntry(userId, entryId, title, content,
384             displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
385             displayDateMinute, draft, allowTrackbacks, trackbacks,
386             serviceContext);
387     }
388 
389     public static void updateEntryResources(
390         com.liferay.portlet.blogs.model.BlogsEntry entry,
391         java.lang.String[] communityPermissions,
392         java.lang.String[] guestPermissions)
393         throws com.liferay.portal.PortalException,
394             com.liferay.portal.SystemException {
395         getService()
396             .updateEntryResources(entry, communityPermissions, guestPermissions);
397     }
398 
399     public static void updateTagsAsset(long userId,
400         com.liferay.portlet.blogs.model.BlogsEntry entry,
401         java.lang.String[] tagsEntries)
402         throws com.liferay.portal.PortalException,
403             com.liferay.portal.SystemException {
404         getService().updateTagsAsset(userId, entry, tagsEntries);
405     }
406 
407     public static BlogsEntryLocalService getService() {
408         if (_service == null) {
409             throw new RuntimeException("BlogsEntryLocalService is not set");
410         }
411 
412         return _service;
413     }
414 
415     public void setService(BlogsEntryLocalService service) {
416         _service = service;
417     }
418 
419     private static BlogsEntryLocalService _service;
420 }