1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.blogs.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="BlogsEntryServiceUtil.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 BlogsEntryService} 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       BlogsEntryService
37   * @generated
38   */
39  public class BlogsEntryServiceUtil {
40      public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
41          java.lang.String title, java.lang.String content, int displayDateMonth,
42          int displayDateDay, int displayDateYear, int displayDateHour,
43          int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks,
44          java.lang.String[] trackbacks,
45          com.liferay.portal.service.ServiceContext serviceContext)
46          throws com.liferay.portal.kernel.exception.PortalException,
47              com.liferay.portal.kernel.exception.SystemException {
48          return getService()
49                     .addEntry(title, content, displayDateMonth, displayDateDay,
50              displayDateYear, displayDateHour, displayDateMinute,
51              allowPingbacks, allowTrackbacks, trackbacks, serviceContext);
52      }
53  
54      public static void deleteEntry(long entryId)
55          throws com.liferay.portal.kernel.exception.PortalException,
56              com.liferay.portal.kernel.exception.SystemException {
57          getService().deleteEntry(entryId);
58      }
59  
60      public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
61          long companyId, int status, int max)
62          throws com.liferay.portal.kernel.exception.PortalException,
63              com.liferay.portal.kernel.exception.SystemException {
64          return getService().getCompanyEntries(companyId, status, max);
65      }
66  
67      public static java.lang.String getCompanyEntriesRSS(long companyId,
68          int status, int max, java.lang.String type, double version,
69          java.lang.String displayStyle, java.lang.String feedURL,
70          java.lang.String entryURL,
71          com.liferay.portal.theme.ThemeDisplay themeDisplay)
72          throws com.liferay.portal.kernel.exception.PortalException,
73              com.liferay.portal.kernel.exception.SystemException {
74          return getService()
75                     .getCompanyEntriesRSS(companyId, status, max, type, version,
76              displayStyle, feedURL, entryURL, themeDisplay);
77      }
78  
79      public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
80          long entryId)
81          throws com.liferay.portal.kernel.exception.PortalException,
82              com.liferay.portal.kernel.exception.SystemException {
83          return getService().getEntry(entryId);
84      }
85  
86      public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
87          long groupId, java.lang.String urlTitle)
88          throws com.liferay.portal.kernel.exception.PortalException,
89              com.liferay.portal.kernel.exception.SystemException {
90          return getService().getEntry(groupId, urlTitle);
91      }
92  
93      public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
94          long groupId, int status, int max)
95          throws com.liferay.portal.kernel.exception.PortalException,
96              com.liferay.portal.kernel.exception.SystemException {
97          return getService().getGroupEntries(groupId, status, max);
98      }
99  
100     public static java.lang.String getGroupEntriesRSS(long groupId, int status,
101         int max, java.lang.String type, double version,
102         java.lang.String displayStyle, java.lang.String feedURL,
103         java.lang.String entryURL,
104         com.liferay.portal.theme.ThemeDisplay themeDisplay)
105         throws com.liferay.portal.kernel.exception.PortalException,
106             com.liferay.portal.kernel.exception.SystemException {
107         return getService()
108                    .getGroupEntriesRSS(groupId, status, max, type, version,
109             displayStyle, feedURL, entryURL, themeDisplay);
110     }
111 
112     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
113         long organizationId, int status, int max)
114         throws com.liferay.portal.kernel.exception.PortalException,
115             com.liferay.portal.kernel.exception.SystemException {
116         return getService().getOrganizationEntries(organizationId, status, max);
117     }
118 
119     public static java.lang.String getOrganizationEntriesRSS(
120         long organizationId, int status, int max, java.lang.String type,
121         double version, java.lang.String displayStyle,
122         java.lang.String feedURL, java.lang.String entryURL,
123         com.liferay.portal.theme.ThemeDisplay themeDisplay)
124         throws com.liferay.portal.kernel.exception.PortalException,
125             com.liferay.portal.kernel.exception.SystemException {
126         return getService()
127                    .getOrganizationEntriesRSS(organizationId, status, max,
128             type, version, displayStyle, feedURL, entryURL, themeDisplay);
129     }
130 
131     public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
132         long entryId, java.lang.String title, java.lang.String content,
133         int displayDateMonth, int displayDateDay, int displayDateYear,
134         int displayDateHour, int displayDateMinute, boolean allowPingbacks,
135         boolean allowTrackbacks, java.lang.String[] trackbacks,
136         com.liferay.portal.service.ServiceContext serviceContext)
137         throws com.liferay.portal.kernel.exception.PortalException,
138             com.liferay.portal.kernel.exception.SystemException {
139         return getService()
140                    .updateEntry(entryId, title, content, displayDateMonth,
141             displayDateDay, displayDateYear, displayDateHour,
142             displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
143             serviceContext);
144     }
145 
146     public static BlogsEntryService getService() {
147         if (_service == null) {
148             _service = (BlogsEntryService)PortalBeanLocatorUtil.locate(BlogsEntryService.class.getName());
149         }
150 
151         return _service;
152     }
153 
154     public void setService(BlogsEntryService service) {
155         _service = service;
156     }
157 
158     private static BlogsEntryService _service;
159 }