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<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
98          long companyId, int max)
99          throws com.liferay.portal.PortalException,
100             com.liferay.portal.SystemException, java.rmi.RemoteException {
101         BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
102 
103         return blogsEntryService.getCompanyEntries(companyId, max);
104     }
105 
106     public static java.lang.String getCompanyEntriesRSS(long companyId,
107         int max, java.lang.String type, double version,
108         java.lang.String displayStyle, java.lang.String feedURL,
109         java.lang.String entryURL)
110         throws com.liferay.portal.PortalException,
111             com.liferay.portal.SystemException, java.rmi.RemoteException {
112         BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
113 
114         return blogsEntryService.getCompanyEntriesRSS(companyId, max, type,
115             version, displayStyle, feedURL, entryURL);
116     }
117 
118     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
119         long entryId)
120         throws com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException, java.rmi.RemoteException {
122         BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
123 
124         return blogsEntryService.getEntry(entryId);
125     }
126 
127     public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
128         long groupId, java.lang.String urlTitle)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException, java.rmi.RemoteException {
131         BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
132 
133         return blogsEntryService.getEntry(groupId, urlTitle);
134     }
135 
136     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
137         long groupId, int max)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException, java.rmi.RemoteException {
140         BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
141 
142         return blogsEntryService.getGroupEntries(groupId, max);
143     }
144 
145     public static java.lang.String getGroupEntriesRSS(long groupId, int max,
146         java.lang.String type, double version, java.lang.String displayStyle,
147         java.lang.String feedURL, java.lang.String entryURL)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException, java.rmi.RemoteException {
150         BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
151 
152         return blogsEntryService.getGroupEntriesRSS(groupId, max, type,
153             version, displayStyle, feedURL, entryURL);
154     }
155 
156     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
157         long organizationId, int max)
158         throws com.liferay.portal.PortalException,
159             com.liferay.portal.SystemException, java.rmi.RemoteException {
160         BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
161 
162         return blogsEntryService.getOrganizationEntries(organizationId, max);
163     }
164 
165     public static java.lang.String getOrganizationEntriesRSS(
166         long organizationId, int max, java.lang.String type, double version,
167         java.lang.String displayStyle, java.lang.String feedURL,
168         java.lang.String entryURL)
169         throws com.liferay.portal.PortalException,
170             com.liferay.portal.SystemException, java.rmi.RemoteException {
171         BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
172 
173         return blogsEntryService.getOrganizationEntriesRSS(organizationId, max,
174             type, version, displayStyle, feedURL, entryURL);
175     }
176 
177     public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
178         long entryId, java.lang.String title, java.lang.String content,
179         int displayDateMonth, int displayDateDay, int displayDateYear,
180         int displayDateHour, int displayDateMinute,
181         java.lang.String[] tagsEntries,
182         com.liferay.portal.theme.ThemeDisplay themeDisplay)
183         throws com.liferay.portal.PortalException,
184             com.liferay.portal.SystemException, java.rmi.RemoteException {
185         BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
186 
187         return blogsEntryService.updateEntry(entryId, title, content,
188             displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
189             displayDateMinute, tagsEntries, themeDisplay);
190     }
191 }