1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.blogs.service;
21  
22  import com.liferay.portal.PortalException;
23  import com.liferay.portal.SystemException;
24  import com.liferay.portal.kernel.annotation.Isolation;
25  import com.liferay.portal.kernel.annotation.Propagation;
26  import com.liferay.portal.kernel.annotation.Transactional;
27  
28  /**
29   * <a href="BlogsEntryLocalService.java.html"><b><i>View Source</i></b></a>
30   *
31   * <p>
32   * ServiceBuilder generated this class. Modifications in this class will be
33   * overwritten the next time is generated.
34   * </p>
35   *
36   * <p>
37   * This interface defines the service. The default implementation is
38   * <code>com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl</code>.
39   * Modify methods in that class and rerun ServiceBuilder to populate this class
40   * and all other generated classes.
41   * </p>
42   *
43   * <p>
44   * 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.
45   * </p>
46   *
47   * @author Brian Wing Shun Chan
48   *
49   * @see com.liferay.portlet.blogs.service.BlogsEntryLocalServiceUtil
50   *
51   */
52  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
53      PortalException.class, SystemException.class})
54  public interface BlogsEntryLocalService {
55      public com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
56          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
57          throws com.liferay.portal.SystemException;
58  
59      public com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
60          long entryId);
61  
62      public void deleteBlogsEntry(long entryId)
63          throws com.liferay.portal.SystemException,
64              com.liferay.portal.PortalException;
65  
66      public void deleteBlogsEntry(
67          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72          throws com.liferay.portal.SystemException;
73  
74      public java.util.List<Object> dynamicQuery(
75          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76          int end) throws com.liferay.portal.SystemException;
77  
78      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79      public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
80          long entryId)
81          throws com.liferay.portal.SystemException,
82              com.liferay.portal.PortalException;
83  
84      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85      public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
86          int start, int end) throws com.liferay.portal.SystemException;
87  
88      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89      public int getBlogsEntriesCount() throws com.liferay.portal.SystemException;
90  
91      public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
92          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
93          throws com.liferay.portal.SystemException;
94  
95      public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
96          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
97          throws com.liferay.portal.SystemException;
98  
99      public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
100         long plid, java.lang.String title, java.lang.String content,
101         int displayDateMonth, int displayDateDay, int displayDateYear,
102         int displayDateHour, int displayDateMinute, boolean draft,
103         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(
111         java.lang.String uuid, long userId, long plid, java.lang.String title,
112         java.lang.String content, int displayDateMonth, int displayDateDay,
113         int displayDateYear, int displayDateHour, int displayDateMinute,
114         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
115         java.lang.String[] tagsEntries, boolean addCommunityPermissions,
116         boolean addGuestPermissions,
117         com.liferay.portal.theme.ThemeDisplay themeDisplay)
118         throws com.liferay.portal.PortalException,
119             com.liferay.portal.SystemException;
120 
121     public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
122         long plid, java.lang.String title, java.lang.String content,
123         int displayDateMonth, int displayDateDay, int displayDateYear,
124         int displayDateHour, int displayDateMinute, boolean draft,
125         boolean allowTrackbacks, java.lang.String[] trackbacks,
126         java.lang.String[] tagsEntries,
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 com.liferay.portlet.blogs.model.BlogsEntry addEntry(
134         java.lang.String uuid, long userId, long plid, java.lang.String title,
135         java.lang.String content, int displayDateMonth, int displayDateDay,
136         int displayDateYear, int displayDateHour, int displayDateMinute,
137         boolean draft, boolean allowTrackbacks, java.lang.String[] trackbacks,
138         java.lang.String[] tagsEntries,
139         java.lang.Boolean addCommunityPermissions,
140         java.lang.Boolean addGuestPermissions,
141         java.lang.String[] communityPermissions,
142         java.lang.String[] guestPermissions,
143         com.liferay.portal.theme.ThemeDisplay themeDisplay)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException;
146 
147     public void addEntryResources(long entryId,
148         boolean addCommunityPermissions, boolean addGuestPermissions)
149         throws com.liferay.portal.PortalException,
150             com.liferay.portal.SystemException;
151 
152     public void addEntryResources(
153         com.liferay.portlet.blogs.model.BlogsEntry entry,
154         boolean addCommunityPermissions, boolean addGuestPermissions)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException;
157 
158     public void addEntryResources(long entryId,
159         java.lang.String[] communityPermissions,
160         java.lang.String[] guestPermissions)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException;
163 
164     public void addEntryResources(
165         com.liferay.portlet.blogs.model.BlogsEntry entry,
166         java.lang.String[] communityPermissions,
167         java.lang.String[] guestPermissions)
168         throws com.liferay.portal.PortalException,
169             com.liferay.portal.SystemException;
170 
171     public void deleteEntries(long groupId)
172         throws com.liferay.portal.PortalException,
173             com.liferay.portal.SystemException;
174 
175     public void deleteEntry(long entryId)
176         throws com.liferay.portal.PortalException,
177             com.liferay.portal.SystemException;
178 
179     public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException;
182 
183     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
185         long companyId, int start, int end)
186         throws com.liferay.portal.SystemException;
187 
188     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
190         long companyId, int start, int end,
191         com.liferay.portal.kernel.util.OrderByComparator obc)
192         throws com.liferay.portal.SystemException;
193 
194     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
196         long companyId, boolean draft, int start, int end)
197         throws com.liferay.portal.SystemException;
198 
199     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
201         long companyId, boolean draft, int start, int end,
202         com.liferay.portal.kernel.util.OrderByComparator obc)
203         throws com.liferay.portal.SystemException;
204 
205     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206     public int getCompanyEntriesCount(long companyId)
207         throws com.liferay.portal.SystemException;
208 
209     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210     public int getCompanyEntriesCount(long companyId, boolean draft)
211         throws com.liferay.portal.SystemException;
212 
213     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214     public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
215         long entryId)
216         throws com.liferay.portal.PortalException,
217             com.liferay.portal.SystemException;
218 
219     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220     public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
221         throws com.liferay.portal.PortalException,
222             com.liferay.portal.SystemException;
223 
224     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225     public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
226         java.lang.String urlTitle)
227         throws com.liferay.portal.PortalException,
228             com.liferay.portal.SystemException;
229 
230     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
232         long groupId, int start, int end)
233         throws com.liferay.portal.SystemException;
234 
235     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
237         long groupId, int start, int end,
238         com.liferay.portal.kernel.util.OrderByComparator obc)
239         throws com.liferay.portal.SystemException;
240 
241     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
243         long groupId, boolean draft, int start, int end)
244         throws com.liferay.portal.SystemException;
245 
246     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
248         long groupId, boolean draft, int start, int end,
249         com.liferay.portal.kernel.util.OrderByComparator obc)
250         throws com.liferay.portal.SystemException;
251 
252     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253     public int getGroupEntriesCount(long groupId)
254         throws com.liferay.portal.SystemException;
255 
256     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257     public int getGroupEntriesCount(long groupId, boolean draft)
258         throws com.liferay.portal.SystemException;
259 
260     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
261     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
262         long groupId, long userId, int start, int end)
263         throws com.liferay.portal.SystemException;
264 
265     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
267         long groupId, long userId, int start, int end,
268         com.liferay.portal.kernel.util.OrderByComparator obc)
269         throws com.liferay.portal.SystemException;
270 
271     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
273         long groupId, long userId, boolean draft, int start, int end)
274         throws com.liferay.portal.SystemException;
275 
276     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
278         long groupId, long userId, boolean draft, int start, int end,
279         com.liferay.portal.kernel.util.OrderByComparator obc)
280         throws com.liferay.portal.SystemException;
281 
282     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283     public int getGroupUserEntriesCount(long groupId, long userId)
284         throws com.liferay.portal.SystemException;
285 
286     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287     public int getGroupUserEntriesCount(long groupId, long userId, boolean draft)
288         throws com.liferay.portal.SystemException;
289 
290     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
291     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
292         throws com.liferay.portal.SystemException;
293 
294     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
296         long organizationId, boolean draft, int start, int end)
297         throws com.liferay.portal.SystemException;
298 
299     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300     public int getOrganizationEntriesCount(long organizationId, boolean draft)
301         throws com.liferay.portal.SystemException;
302 
303     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
304     public java.lang.String getUrlTitle(long entryId, java.lang.String title);
305 
306     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307     public void reIndex(long entryId) throws com.liferay.portal.SystemException;
308 
309     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310     public void reIndex(com.liferay.portlet.blogs.model.BlogsEntry entry)
311         throws com.liferay.portal.SystemException;
312 
313     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314     public void reIndex(java.lang.String[] ids)
315         throws com.liferay.portal.SystemException;
316 
317     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318     public com.liferay.portal.kernel.search.Hits search(long companyId,
319         long groupId, long userId, java.lang.String keywords, int start, int end)
320         throws com.liferay.portal.SystemException;
321 
322     public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
323         long entryId, java.lang.String title, java.lang.String content,
324         int displayDateMonth, int displayDateDay, int displayDateYear,
325         int displayDateHour, int displayDateMinute, boolean draft,
326         boolean allowTrackbacks, java.lang.String[] trackbacks,
327         java.lang.String[] tagsEntries,
328         com.liferay.portal.theme.ThemeDisplay themeDisplay)
329         throws com.liferay.portal.PortalException,
330             com.liferay.portal.SystemException;
331 
332     public void updateTagsAsset(long userId,
333         com.liferay.portlet.blogs.model.BlogsEntry entry,
334         java.lang.String[] tagsEntries)
335         throws com.liferay.portal.PortalException,
336             com.liferay.portal.SystemException;
337 }