1   /**
2    * Copyright (c) 2000-2009 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          java.lang.String title, java.lang.String content, int displayDateMonth,
99          int displayDateDay, int displayDateYear, int displayDateHour,
100         int displayDateMinute, boolean draft, boolean allowTrackbacks,
101         java.lang.String[] trackbacks,
102         com.liferay.portal.service.ServiceContext serviceContext)
103         throws com.liferay.portal.PortalException,
104             com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
107         java.lang.String uuid, long userId, java.lang.String title,
108         java.lang.String content, int displayDateMonth, int displayDateDay,
109         int displayDateYear, int displayDateHour, int displayDateMinute,
110         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
111         com.liferay.portal.service.ServiceContext serviceContext)
112         throws com.liferay.portal.PortalException,
113             com.liferay.portal.SystemException;
114 
115     public void addEntryResources(long entryId,
116         boolean addCommunityPermissions, boolean addGuestPermissions)
117         throws com.liferay.portal.PortalException,
118             com.liferay.portal.SystemException;
119 
120     public void addEntryResources(
121         com.liferay.portlet.blogs.model.BlogsEntry entry,
122         boolean addCommunityPermissions, boolean addGuestPermissions)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException;
125 
126     public void addEntryResources(long entryId,
127         java.lang.String[] communityPermissions,
128         java.lang.String[] guestPermissions)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException;
131 
132     public void addEntryResources(
133         com.liferay.portlet.blogs.model.BlogsEntry entry,
134         java.lang.String[] communityPermissions,
135         java.lang.String[] guestPermissions)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException;
138 
139     public void deleteEntries(long groupId)
140         throws com.liferay.portal.PortalException,
141             com.liferay.portal.SystemException;
142 
143     public void deleteEntry(long entryId)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException;
146 
147     public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException;
150 
151     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
153         long companyId, int start, int end)
154         throws com.liferay.portal.SystemException;
155 
156     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
158         long companyId, int start, int end,
159         com.liferay.portal.kernel.util.OrderByComparator obc)
160         throws com.liferay.portal.SystemException;
161 
162     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
164         long companyId, boolean draft, int start, int end)
165         throws com.liferay.portal.SystemException;
166 
167     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
169         long companyId, boolean draft, int start, int end,
170         com.liferay.portal.kernel.util.OrderByComparator obc)
171         throws com.liferay.portal.SystemException;
172 
173     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174     public int getCompanyEntriesCount(long companyId)
175         throws com.liferay.portal.SystemException;
176 
177     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178     public int getCompanyEntriesCount(long companyId, boolean draft)
179         throws com.liferay.portal.SystemException;
180 
181     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182     public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
183         long entryId)
184         throws com.liferay.portal.PortalException,
185             com.liferay.portal.SystemException;
186 
187     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188     public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
189         throws com.liferay.portal.PortalException,
190             com.liferay.portal.SystemException;
191 
192     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193     public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
194         java.lang.String urlTitle)
195         throws com.liferay.portal.PortalException,
196             com.liferay.portal.SystemException;
197 
198     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
200         long groupId, int start, int end)
201         throws com.liferay.portal.SystemException;
202 
203     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
205         long groupId, int start, int end,
206         com.liferay.portal.kernel.util.OrderByComparator obc)
207         throws com.liferay.portal.SystemException;
208 
209     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
211         long groupId, boolean draft, int start, int end)
212         throws com.liferay.portal.SystemException;
213 
214     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
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     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221     public int getGroupEntriesCount(long groupId)
222         throws com.liferay.portal.SystemException;
223 
224     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225     public int getGroupEntriesCount(long groupId, boolean draft)
226         throws com.liferay.portal.SystemException;
227 
228     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
230         long groupId, long userId, 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> getGroupUserEntries(
235         long groupId, long userId, 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> getGroupUserEntries(
241         long groupId, long userId, 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> getGroupUserEntries(
246         long groupId, long userId, 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 getGroupUserEntriesCount(long groupId, long userId)
252         throws com.liferay.portal.SystemException;
253 
254     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255     public int getGroupUserEntriesCount(long groupId, long userId, 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> getNoAssetEntries()
260         throws com.liferay.portal.SystemException;
261 
262     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
264         long organizationId, boolean draft, int start, int end)
265         throws com.liferay.portal.SystemException;
266 
267     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268     public int getOrganizationEntriesCount(long organizationId, boolean draft)
269         throws com.liferay.portal.SystemException;
270 
271     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272     public java.lang.String getUrlTitle(long entryId, java.lang.String title);
273 
274     public void reIndex(long entryId) throws com.liferay.portal.SystemException;
275 
276     public void reIndex(java.lang.String[] ids)
277         throws com.liferay.portal.SystemException;
278 
279     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280     public com.liferay.portal.kernel.search.Hits search(long companyId,
281         long groupId, long userId, long ownerUserId, java.lang.String keywords,
282         int start, int end) throws com.liferay.portal.SystemException;
283 
284     public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
285         long entryId, java.lang.String title, java.lang.String content,
286         int displayDateMonth, int displayDateDay, int displayDateYear,
287         int displayDateHour, int displayDateMinute, boolean draft,
288         boolean allowTrackbacks, java.lang.String[] trackbacks,
289         com.liferay.portal.service.ServiceContext serviceContext)
290         throws com.liferay.portal.PortalException,
291             com.liferay.portal.SystemException;
292 
293     public void updateTagsAsset(long userId,
294         com.liferay.portlet.blogs.model.BlogsEntry entry,
295         java.lang.String[] tagsEntries)
296         throws com.liferay.portal.PortalException,
297             com.liferay.portal.SystemException;
298 }