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