1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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   * <code>com.liferay.portlet.blogs.service.BlogsEntryService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portlet.blogs.service.BlogsEntryService
45   *
46   */
47  public class BlogsEntryServiceUtil {
48      public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
49          long plid, java.lang.String title, java.lang.String content,
50          int displayDateMonth, int displayDateDay, int displayDateYear,
51          int displayDateHour, int displayDateMinute, boolean draft,
52          boolean allowTrackbacks, java.lang.String[] trackbacks,
53          java.lang.String[] tagsEntries, boolean addCommunityPermissions,
54          boolean addGuestPermissions,
55          com.liferay.portal.theme.ThemeDisplay themeDisplay)
56          throws com.liferay.portal.PortalException,
57              com.liferay.portal.SystemException, java.rmi.RemoteException {
58          return _service.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 _service.addEntry(plid, title, content, displayDateMonth,
76              displayDateDay, displayDateYear, displayDateHour,
77              displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
78              communityPermissions, guestPermissions, themeDisplay);
79      }
80  
81      public static void deleteEntry(long entryId)
82          throws com.liferay.portal.PortalException,
83              com.liferay.portal.SystemException, java.rmi.RemoteException {
84          _service.deleteEntry(entryId);
85      }
86  
87      public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
88          long companyId, int max)
89          throws com.liferay.portal.PortalException,
90              com.liferay.portal.SystemException, java.rmi.RemoteException {
91          return _service.getCompanyEntries(companyId, max);
92      }
93  
94      public static java.lang.String getCompanyEntriesRSS(long companyId,
95          int max, java.lang.String type, double version,
96          java.lang.String displayStyle, java.lang.String feedURL,
97          java.lang.String entryURL,
98          com.liferay.portal.theme.ThemeDisplay themeDisplay)
99          throws com.liferay.portal.PortalException,
100             com.liferay.portal.SystemException, java.rmi.RemoteException {
101         return _service.getCompanyEntriesRSS(companyId, max, type, version,
102             displayStyle, feedURL, entryURL, themeDisplay);
103     }
104 
105     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
106         long entryId)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException, java.rmi.RemoteException {
109         return _service.getEntry(entryId);
110     }
111 
112     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
113         long groupId, java.lang.String urlTitle)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException, java.rmi.RemoteException {
116         return _service.getEntry(groupId, urlTitle);
117     }
118 
119     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
120         long groupId, int max)
121         throws com.liferay.portal.PortalException,
122             com.liferay.portal.SystemException, java.rmi.RemoteException {
123         return _service.getGroupEntries(groupId, max);
124     }
125 
126     public static java.lang.String getGroupEntriesRSS(long groupId, int max,
127         java.lang.String type, double version, java.lang.String displayStyle,
128         java.lang.String feedURL, java.lang.String entryURL,
129         com.liferay.portal.theme.ThemeDisplay themeDisplay)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException, java.rmi.RemoteException {
132         return _service.getGroupEntriesRSS(groupId, max, type, version,
133             displayStyle, feedURL, entryURL, themeDisplay);
134     }
135 
136     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
137         long organizationId, int max)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException, java.rmi.RemoteException {
140         return _service.getOrganizationEntries(organizationId, max);
141     }
142 
143     public static java.lang.String getOrganizationEntriesRSS(
144         long organizationId, int max, java.lang.String type, double version,
145         java.lang.String displayStyle, java.lang.String feedURL,
146         java.lang.String entryURL,
147         com.liferay.portal.theme.ThemeDisplay themeDisplay)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException, java.rmi.RemoteException {
150         return _service.getOrganizationEntriesRSS(organizationId, max, type,
151             version, displayStyle, feedURL, entryURL, themeDisplay);
152     }
153 
154     public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
155         long entryId, java.lang.String title, java.lang.String content,
156         int displayDateMonth, int displayDateDay, int displayDateYear,
157         int displayDateHour, int displayDateMinute, boolean draft,
158         boolean allowTrackbacks, java.lang.String[] trackbacks,
159         java.lang.String[] tagsEntries,
160         com.liferay.portal.theme.ThemeDisplay themeDisplay)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException, java.rmi.RemoteException {
163         return _service.updateEntry(entryId, title, content, displayDateMonth,
164             displayDateDay, displayDateYear, displayDateHour,
165             displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
166             themeDisplay);
167     }
168 
169     public static BlogsEntryService getService() {
170         return _service;
171     }
172 
173     public void setService(BlogsEntryService service) {
174         _service = service;
175     }
176 
177     private static BlogsEntryService _service;
178 }