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 void deleteBlogsEntry(long entryId)
56          throws com.liferay.portal.SystemException,
57              com.liferay.portal.PortalException;
58  
59      public void deleteBlogsEntry(
60          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
61          throws com.liferay.portal.SystemException;
62  
63      public java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.SystemException;
66  
67      public java.util.List<Object> dynamicQuery(
68          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69          int end) throws com.liferay.portal.SystemException;
70  
71      public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
72          long entryId)
73          throws com.liferay.portal.SystemException,
74              com.liferay.portal.PortalException;
75  
76      public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
77          int start, int end) throws com.liferay.portal.SystemException;
78  
79      public int getBlogsEntriesCount() throws com.liferay.portal.SystemException;
80  
81      public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
82          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
83          throws com.liferay.portal.SystemException;
84  
85      public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
86          long plid, java.lang.String title, java.lang.String content,
87          int displayDateMonth, int displayDateDay, int displayDateYear,
88          int displayDateHour, int displayDateMinute, boolean draft,
89          boolean allowTrackbacks, java.lang.String[] trackbacks,
90          java.lang.String[] tagsEntries, boolean addCommunityPermissions,
91          boolean addGuestPermissions,
92          com.liferay.portal.theme.ThemeDisplay themeDisplay)
93          throws com.liferay.portal.PortalException,
94              com.liferay.portal.SystemException;
95  
96      public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
97          java.lang.String uuid, long userId, long plid, java.lang.String title,
98          java.lang.String content, int displayDateMonth, int displayDateDay,
99          int displayDateYear, int displayDateHour, int displayDateMinute,
100         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
101         java.lang.String[] tagsEntries, boolean addCommunityPermissions,
102         boolean addGuestPermissions,
103         com.liferay.portal.theme.ThemeDisplay themeDisplay)
104         throws com.liferay.portal.PortalException,
105             com.liferay.portal.SystemException;
106 
107     public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
108         long plid, java.lang.String title, java.lang.String content,
109         int displayDateMonth, int displayDateDay, int displayDateYear,
110         int displayDateHour, int displayDateMinute, boolean draft,
111         boolean allowTrackbacks, java.lang.String[] trackbacks,
112         java.lang.String[] tagsEntries,
113         java.lang.String[] communityPermissions,
114         java.lang.String[] guestPermissions,
115         com.liferay.portal.theme.ThemeDisplay themeDisplay)
116         throws com.liferay.portal.PortalException,
117             com.liferay.portal.SystemException;
118 
119     public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
120         java.lang.String uuid, long userId, long plid, java.lang.String title,
121         java.lang.String content, int displayDateMonth, int displayDateDay,
122         int displayDateYear, int displayDateHour, int displayDateMinute,
123         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
124         java.lang.String[] tagsEntries,
125         java.lang.Boolean addCommunityPermissions,
126         java.lang.Boolean addGuestPermissions,
127         java.lang.String[] communityPermissions,
128         java.lang.String[] guestPermissions,
129         com.liferay.portal.theme.ThemeDisplay themeDisplay)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException;
132 
133     public void addEntryResources(long entryId,
134         boolean addCommunityPermissions, boolean addGuestPermissions)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException;
137 
138     public void addEntryResources(
139         com.liferay.portlet.blogs.model.BlogsEntry entry,
140         boolean addCommunityPermissions, boolean addGuestPermissions)
141         throws com.liferay.portal.PortalException,
142             com.liferay.portal.SystemException;
143 
144     public void addEntryResources(long entryId,
145         java.lang.String[] communityPermissions,
146         java.lang.String[] guestPermissions)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException;
149 
150     public void addEntryResources(
151         com.liferay.portlet.blogs.model.BlogsEntry entry,
152         java.lang.String[] communityPermissions,
153         java.lang.String[] guestPermissions)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException;
156 
157     public void deleteEntries(long groupId)
158         throws com.liferay.portal.PortalException,
159             com.liferay.portal.SystemException;
160 
161     public void deleteEntry(long entryId)
162         throws com.liferay.portal.PortalException,
163             com.liferay.portal.SystemException;
164 
165     public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
166         throws com.liferay.portal.PortalException,
167             com.liferay.portal.SystemException;
168 
169     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
170         long companyId, int start, int end)
171         throws com.liferay.portal.SystemException;
172 
173     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
174         long companyId, int start, int end,
175         com.liferay.portal.kernel.util.OrderByComparator obc)
176         throws com.liferay.portal.SystemException;
177 
178     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
179         long companyId, boolean draft, int start, int end)
180         throws com.liferay.portal.SystemException;
181 
182     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
183         long companyId, boolean draft, int start, int end,
184         com.liferay.portal.kernel.util.OrderByComparator obc)
185         throws com.liferay.portal.SystemException;
186 
187     public int getCompanyEntriesCount(long companyId)
188         throws com.liferay.portal.SystemException;
189 
190     public int getCompanyEntriesCount(long companyId, boolean draft)
191         throws com.liferay.portal.SystemException;
192 
193     public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
194         throws com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException;
196 
197     public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
198         java.lang.String urlTitle)
199         throws com.liferay.portal.PortalException,
200             com.liferay.portal.SystemException;
201 
202     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
203         long groupId, int start, int end)
204         throws com.liferay.portal.SystemException;
205 
206     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
207         long groupId, int start, int end,
208         com.liferay.portal.kernel.util.OrderByComparator obc)
209         throws com.liferay.portal.SystemException;
210 
211     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
212         long groupId, boolean draft, int start, int end)
213         throws com.liferay.portal.SystemException;
214 
215     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
216         long groupId, boolean draft, int start, int end,
217         com.liferay.portal.kernel.util.OrderByComparator obc)
218         throws com.liferay.portal.SystemException;
219 
220     public int getGroupEntriesCount(long groupId)
221         throws com.liferay.portal.SystemException;
222 
223     public int getGroupEntriesCount(long groupId, boolean draft)
224         throws com.liferay.portal.SystemException;
225 
226     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
227         long groupId, long userId, int start, int end)
228         throws com.liferay.portal.SystemException;
229 
230     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
231         long groupId, long userId, int start, int end,
232         com.liferay.portal.kernel.util.OrderByComparator obc)
233         throws com.liferay.portal.SystemException;
234 
235     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
236         long groupId, long userId, boolean draft, int start, int end)
237         throws com.liferay.portal.SystemException;
238 
239     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
240         long groupId, long userId, boolean draft, int start, int end,
241         com.liferay.portal.kernel.util.OrderByComparator obc)
242         throws com.liferay.portal.SystemException;
243 
244     public int getGroupUserEntriesCount(long groupId, long userId)
245         throws com.liferay.portal.SystemException;
246 
247     public int getGroupUserEntriesCount(long groupId, long userId, boolean draft)
248         throws com.liferay.portal.SystemException;
249 
250     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
251         throws com.liferay.portal.SystemException;
252 
253     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
254         long organizationId, boolean draft, int start, int end)
255         throws com.liferay.portal.SystemException;
256 
257     public int getOrganizationEntriesCount(long organizationId, boolean draft)
258         throws com.liferay.portal.SystemException;
259 
260     public java.lang.String getUrlTitle(long entryId, java.lang.String title);
261 
262     public void reIndex(java.lang.String[] ids)
263         throws com.liferay.portal.SystemException;
264 
265     public com.liferay.portal.kernel.search.Hits search(long companyId,
266         long groupId, long userId, java.lang.String keywords, int start, int end)
267         throws com.liferay.portal.SystemException;
268 
269     public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
270         long entryId, java.lang.String title, java.lang.String content,
271         int displayDateMonth, int displayDateDay, int displayDateYear,
272         int displayDateHour, int displayDateMinute, boolean draft,
273         boolean allowTrackbacks, java.lang.String[] trackbacks,
274         java.lang.String[] tagsEntries,
275         com.liferay.portal.theme.ThemeDisplay themeDisplay)
276         throws com.liferay.portal.PortalException,
277             com.liferay.portal.SystemException;
278 
279     public void updateTagsAsset(long userId,
280         com.liferay.portlet.blogs.model.BlogsEntry entry,
281         java.lang.String[] tagsEntries)
282         throws com.liferay.portal.PortalException,
283             com.liferay.portal.SystemException;
284 }