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="BlogsEntryServiceUtil.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 BlogsEntryService} 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       BlogsEntryService
44   * @generated
45   */
46  public class BlogsEntryServiceUtil {
47      public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
48          long plid, java.lang.String title, java.lang.String content,
49          int displayDateMonth, int displayDateDay, int displayDateYear,
50          int displayDateHour, int displayDateMinute, boolean draft,
51          boolean allowTrackbacks, java.lang.String[] trackbacks,
52          java.lang.String[] tagsEntries, boolean addCommunityPermissions,
53          boolean addGuestPermissions,
54          com.liferay.portal.theme.ThemeDisplay themeDisplay)
55          throws com.liferay.portal.PortalException,
56              com.liferay.portal.SystemException, java.rmi.RemoteException {
57          return getService()
58                     .addEntry(plid, title, content, displayDateMonth,
59              displayDateDay, displayDateYear, displayDateHour,
60              displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
61              addCommunityPermissions, addGuestPermissions, themeDisplay);
62      }
63  
64      public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
65          long plid, java.lang.String title, java.lang.String content,
66          int displayDateMonth, int displayDateDay, int displayDateYear,
67          int displayDateHour, int displayDateMinute, boolean draft,
68          boolean allowTrackbacks, java.lang.String[] trackbacks,
69          java.lang.String[] tagsEntries,
70          java.lang.String[] communityPermissions,
71          java.lang.String[] guestPermissions,
72          com.liferay.portal.theme.ThemeDisplay themeDisplay)
73          throws com.liferay.portal.PortalException,
74              com.liferay.portal.SystemException, java.rmi.RemoteException {
75          return getService()
76                     .addEntry(plid, title, content, displayDateMonth,
77              displayDateDay, displayDateYear, displayDateHour,
78              displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
79              communityPermissions, guestPermissions, themeDisplay);
80      }
81  
82      public static void deleteEntry(long entryId)
83          throws com.liferay.portal.PortalException,
84              com.liferay.portal.SystemException, java.rmi.RemoteException {
85          getService().deleteEntry(entryId);
86      }
87  
88      public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
89          long companyId, int max)
90          throws com.liferay.portal.PortalException,
91              com.liferay.portal.SystemException, java.rmi.RemoteException {
92          return getService().getCompanyEntries(companyId, max);
93      }
94  
95      public static java.lang.String getCompanyEntriesRSS(long companyId,
96          int max, java.lang.String type, double version,
97          java.lang.String displayStyle, java.lang.String feedURL,
98          java.lang.String entryURL,
99          com.liferay.portal.theme.ThemeDisplay themeDisplay)
100         throws com.liferay.portal.PortalException,
101             com.liferay.portal.SystemException, java.rmi.RemoteException {
102         return getService()
103                    .getCompanyEntriesRSS(companyId, max, type, version,
104             displayStyle, feedURL, entryURL, themeDisplay);
105     }
106 
107     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
108         long entryId)
109         throws com.liferay.portal.PortalException,
110             com.liferay.portal.SystemException, java.rmi.RemoteException {
111         return getService().getEntry(entryId);
112     }
113 
114     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
115         long groupId, java.lang.String urlTitle)
116         throws com.liferay.portal.PortalException,
117             com.liferay.portal.SystemException, java.rmi.RemoteException {
118         return getService().getEntry(groupId, urlTitle);
119     }
120 
121     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
122         long groupId, int max)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException, java.rmi.RemoteException {
125         return getService().getGroupEntries(groupId, max);
126     }
127 
128     public static java.lang.String getGroupEntriesRSS(long groupId, int max,
129         java.lang.String type, double version, java.lang.String displayStyle,
130         java.lang.String feedURL, java.lang.String entryURL,
131         com.liferay.portal.theme.ThemeDisplay themeDisplay)
132         throws com.liferay.portal.PortalException,
133             com.liferay.portal.SystemException, java.rmi.RemoteException {
134         return getService()
135                    .getGroupEntriesRSS(groupId, max, type, version,
136             displayStyle, feedURL, entryURL, themeDisplay);
137     }
138 
139     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
140         long organizationId, int max)
141         throws com.liferay.portal.PortalException,
142             com.liferay.portal.SystemException, java.rmi.RemoteException {
143         return getService().getOrganizationEntries(organizationId, max);
144     }
145 
146     public static java.lang.String getOrganizationEntriesRSS(
147         long organizationId, int max, java.lang.String type, double version,
148         java.lang.String displayStyle, java.lang.String feedURL,
149         java.lang.String entryURL,
150         com.liferay.portal.theme.ThemeDisplay themeDisplay)
151         throws com.liferay.portal.PortalException,
152             com.liferay.portal.SystemException, java.rmi.RemoteException {
153         return getService()
154                    .getOrganizationEntriesRSS(organizationId, max, type,
155             version, displayStyle, feedURL, entryURL, themeDisplay);
156     }
157 
158     public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
159         long entryId, java.lang.String title, java.lang.String content,
160         int displayDateMonth, int displayDateDay, int displayDateYear,
161         int displayDateHour, int displayDateMinute, boolean draft,
162         boolean allowTrackbacks, java.lang.String[] trackbacks,
163         java.lang.String[] tagsEntries,
164         com.liferay.portal.theme.ThemeDisplay themeDisplay)
165         throws com.liferay.portal.PortalException,
166             com.liferay.portal.SystemException, java.rmi.RemoteException {
167         return getService()
168                    .updateEntry(entryId, title, content, displayDateMonth,
169             displayDateDay, displayDateYear, displayDateHour,
170             displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
171             themeDisplay);
172     }
173 
174     public static BlogsEntryService getService() {
175         if (_service == null) {
176             throw new RuntimeException("BlogsEntryService is not set");
177         }
178 
179         return _service;
180     }
181 
182     public void setService(BlogsEntryService service) {
183         _service = service;
184     }
185 
186     private static BlogsEntryService _service;
187 }