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