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="BlogsEntryLocalService.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 interface defines the service. The default implementation is
36   * <code>com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl</code>.
37   * Modify methods in that class and rerun ServiceBuilder to populate this class
38   * and all other generated classes.
39   * </p>
40   *
41   * <p>
42   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.blogs.service.BlogsEntryLocalServiceUtil
48   *
49   */
50  public interface BlogsEntryLocalService {
51      public com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
52          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
56          long entryId);
57  
58      public void deleteBlogsEntry(long entryId)
59          throws com.liferay.portal.SystemException,
60              com.liferay.portal.PortalException;
61  
62      public void deleteBlogsEntry(
63          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
64          throws com.liferay.portal.SystemException;
65  
66      public java.util.List<Object> dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
72          int end) throws com.liferay.portal.SystemException;
73  
74      public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
75          long entryId)
76          throws com.liferay.portal.SystemException,
77              com.liferay.portal.PortalException;
78  
79      public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
80          int start, int end) throws com.liferay.portal.SystemException;
81  
82      public int getBlogsEntriesCount() throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
85          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
86          throws com.liferay.portal.SystemException;
87  
88      public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
89          long plid, java.lang.String title, java.lang.String content,
90          int displayDateMonth, int displayDateDay, int displayDateYear,
91          int displayDateHour, int displayDateMinute, boolean draft,
92          boolean allowTrackbacks, java.lang.String[] trackbacks,
93          java.lang.String[] tagsEntries, boolean addCommunityPermissions,
94          boolean addGuestPermissions,
95          com.liferay.portal.theme.ThemeDisplay themeDisplay)
96          throws com.liferay.portal.PortalException,
97              com.liferay.portal.SystemException;
98  
99      public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
100         java.lang.String uuid, long userId, long plid, java.lang.String title,
101         java.lang.String content, int displayDateMonth, int displayDateDay,
102         int displayDateYear, int displayDateHour, int displayDateMinute,
103         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
104         java.lang.String[] tagsEntries, boolean addCommunityPermissions,
105         boolean addGuestPermissions,
106         com.liferay.portal.theme.ThemeDisplay themeDisplay)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException;
109 
110     public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
111         long plid, java.lang.String title, java.lang.String content,
112         int displayDateMonth, int displayDateDay, int displayDateYear,
113         int displayDateHour, int displayDateMinute, boolean draft,
114         boolean allowTrackbacks, java.lang.String[] trackbacks,
115         java.lang.String[] tagsEntries,
116         java.lang.String[] communityPermissions,
117         java.lang.String[] guestPermissions,
118         com.liferay.portal.theme.ThemeDisplay themeDisplay)
119         throws com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException;
121 
122     public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
123         java.lang.String uuid, long userId, long plid, java.lang.String title,
124         java.lang.String content, int displayDateMonth, int displayDateDay,
125         int displayDateYear, int displayDateHour, int displayDateMinute,
126         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
127         java.lang.String[] tagsEntries,
128         java.lang.Boolean addCommunityPermissions,
129         java.lang.Boolean addGuestPermissions,
130         java.lang.String[] communityPermissions,
131         java.lang.String[] guestPermissions,
132         com.liferay.portal.theme.ThemeDisplay themeDisplay)
133         throws com.liferay.portal.PortalException,
134             com.liferay.portal.SystemException;
135 
136     public void addEntryResources(long entryId,
137         boolean addCommunityPermissions, boolean addGuestPermissions)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException;
140 
141     public void addEntryResources(
142         com.liferay.portlet.blogs.model.BlogsEntry entry,
143         boolean addCommunityPermissions, boolean addGuestPermissions)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException;
146 
147     public void addEntryResources(long entryId,
148         java.lang.String[] communityPermissions,
149         java.lang.String[] guestPermissions)
150         throws com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException;
152 
153     public void addEntryResources(
154         com.liferay.portlet.blogs.model.BlogsEntry entry,
155         java.lang.String[] communityPermissions,
156         java.lang.String[] guestPermissions)
157         throws com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException;
159 
160     public void deleteEntries(long groupId)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException;
163 
164     public void deleteEntry(long entryId)
165         throws com.liferay.portal.PortalException,
166             com.liferay.portal.SystemException;
167 
168     public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
169         throws com.liferay.portal.PortalException,
170             com.liferay.portal.SystemException;
171 
172     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
173         long companyId, int start, int end)
174         throws com.liferay.portal.SystemException;
175 
176     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
177         long companyId, int start, int end,
178         com.liferay.portal.kernel.util.OrderByComparator obc)
179         throws com.liferay.portal.SystemException;
180 
181     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
182         long companyId, boolean draft, int start, int end)
183         throws com.liferay.portal.SystemException;
184 
185     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
186         long companyId, boolean draft, int start, int end,
187         com.liferay.portal.kernel.util.OrderByComparator obc)
188         throws com.liferay.portal.SystemException;
189 
190     public int getCompanyEntriesCount(long companyId)
191         throws com.liferay.portal.SystemException;
192 
193     public int getCompanyEntriesCount(long companyId, boolean draft)
194         throws com.liferay.portal.SystemException;
195 
196     public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
197         long entryId)
198         throws com.liferay.portal.PortalException,
199             com.liferay.portal.SystemException;
200 
201     public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
202         throws com.liferay.portal.PortalException,
203             com.liferay.portal.SystemException;
204 
205     public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
206         java.lang.String urlTitle)
207         throws com.liferay.portal.PortalException,
208             com.liferay.portal.SystemException;
209 
210     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
211         long groupId, int start, int end)
212         throws com.liferay.portal.SystemException;
213 
214     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
215         long groupId, int start, int end,
216         com.liferay.portal.kernel.util.OrderByComparator obc)
217         throws com.liferay.portal.SystemException;
218 
219     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
220         long groupId, boolean draft, int start, int end)
221         throws com.liferay.portal.SystemException;
222 
223     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
224         long groupId, boolean draft, int start, int end,
225         com.liferay.portal.kernel.util.OrderByComparator obc)
226         throws com.liferay.portal.SystemException;
227 
228     public int getGroupEntriesCount(long groupId)
229         throws com.liferay.portal.SystemException;
230 
231     public int getGroupEntriesCount(long groupId, boolean draft)
232         throws com.liferay.portal.SystemException;
233 
234     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
235         long groupId, long userId, int start, int end)
236         throws com.liferay.portal.SystemException;
237 
238     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
239         long groupId, long userId, int start, int end,
240         com.liferay.portal.kernel.util.OrderByComparator obc)
241         throws com.liferay.portal.SystemException;
242 
243     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
244         long groupId, long userId, boolean draft, int start, int end)
245         throws com.liferay.portal.SystemException;
246 
247     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
248         long groupId, long userId, boolean draft, int start, int end,
249         com.liferay.portal.kernel.util.OrderByComparator obc)
250         throws com.liferay.portal.SystemException;
251 
252     public int getGroupUserEntriesCount(long groupId, long userId)
253         throws com.liferay.portal.SystemException;
254 
255     public int getGroupUserEntriesCount(long groupId, long userId, boolean draft)
256         throws com.liferay.portal.SystemException;
257 
258     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
259         throws com.liferay.portal.SystemException;
260 
261     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
262         long organizationId, boolean draft, int start, int end)
263         throws com.liferay.portal.SystemException;
264 
265     public int getOrganizationEntriesCount(long organizationId, boolean draft)
266         throws com.liferay.portal.SystemException;
267 
268     public java.lang.String getUrlTitle(long entryId, java.lang.String title);
269 
270     public void reIndex(java.lang.String[] ids)
271         throws com.liferay.portal.SystemException;
272 
273     public com.liferay.portal.kernel.search.Hits search(long companyId,
274         long groupId, long userId, java.lang.String keywords, int start, int end)
275         throws com.liferay.portal.SystemException;
276 
277     public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
278         long entryId, java.lang.String title, java.lang.String content,
279         int displayDateMonth, int displayDateDay, int displayDateYear,
280         int displayDateHour, int displayDateMinute, boolean draft,
281         boolean allowTrackbacks, java.lang.String[] trackbacks,
282         java.lang.String[] tagsEntries,
283         com.liferay.portal.theme.ThemeDisplay themeDisplay)
284         throws com.liferay.portal.PortalException,
285             com.liferay.portal.SystemException;
286 
287     public void updateTagsAsset(long userId,
288         com.liferay.portlet.blogs.model.BlogsEntry entry,
289         java.lang.String[] tagsEntries)
290         throws com.liferay.portal.PortalException,
291             com.liferay.portal.SystemException;
292 }