1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.blogs.service;
16  
17  import com.liferay.portal.kernel.annotation.Isolation;
18  import com.liferay.portal.kernel.annotation.Propagation;
19  import com.liferay.portal.kernel.annotation.Transactional;
20  import com.liferay.portal.kernel.exception.PortalException;
21  import com.liferay.portal.kernel.exception.SystemException;
22  
23  /**
24   * <a href="BlogsEntryLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * 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.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       BlogsEntryLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface BlogsEntryLocalService {
50      public com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
51          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
55          long entryId);
56  
57      public void deleteBlogsEntry(long entryId)
58          throws com.liferay.portal.kernel.exception.PortalException,
59              com.liferay.portal.kernel.exception.SystemException;
60  
61      public void deleteBlogsEntry(
62          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      public java.util.List<Object> dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public java.util.List<Object> dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.kernel.exception.SystemException;
78  
79      public int dynamicQueryCount(
80          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81          throws com.liferay.portal.kernel.exception.SystemException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
85          long entryId)
86          throws com.liferay.portal.kernel.exception.PortalException,
87              com.liferay.portal.kernel.exception.SystemException;
88  
89      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90      public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
91          int start, int end)
92          throws com.liferay.portal.kernel.exception.SystemException;
93  
94      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95      public int getBlogsEntriesCount()
96          throws com.liferay.portal.kernel.exception.SystemException;
97  
98      public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
99          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
103         com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
104         throws com.liferay.portal.kernel.exception.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 allowPingbacks, boolean allowTrackbacks,
111         java.lang.String[] trackbacks,
112         com.liferay.portal.service.ServiceContext serviceContext)
113         throws com.liferay.portal.kernel.exception.PortalException,
114             com.liferay.portal.kernel.exception.SystemException;
115 
116     public void addEntryResources(
117         com.liferay.portlet.blogs.model.BlogsEntry entry,
118         boolean addCommunityPermissions, boolean addGuestPermissions)
119         throws com.liferay.portal.kernel.exception.PortalException,
120             com.liferay.portal.kernel.exception.SystemException;
121 
122     public void addEntryResources(
123         com.liferay.portlet.blogs.model.BlogsEntry entry,
124         java.lang.String[] communityPermissions,
125         java.lang.String[] guestPermissions)
126         throws com.liferay.portal.kernel.exception.PortalException,
127             com.liferay.portal.kernel.exception.SystemException;
128 
129     public void addEntryResources(long entryId,
130         boolean addCommunityPermissions, boolean addGuestPermissions)
131         throws com.liferay.portal.kernel.exception.PortalException,
132             com.liferay.portal.kernel.exception.SystemException;
133 
134     public void addEntryResources(long entryId,
135         java.lang.String[] communityPermissions,
136         java.lang.String[] guestPermissions)
137         throws com.liferay.portal.kernel.exception.PortalException,
138             com.liferay.portal.kernel.exception.SystemException;
139 
140     public void deleteEntries(long groupId)
141         throws com.liferay.portal.kernel.exception.PortalException,
142             com.liferay.portal.kernel.exception.SystemException;
143 
144     public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
145         throws com.liferay.portal.kernel.exception.PortalException,
146             com.liferay.portal.kernel.exception.SystemException;
147 
148     public void deleteEntry(long entryId)
149         throws com.liferay.portal.kernel.exception.PortalException,
150             com.liferay.portal.kernel.exception.SystemException;
151 
152     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
154         long companyId, int status, int start, int end)
155         throws com.liferay.portal.kernel.exception.SystemException;
156 
157     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
159         long companyId, int status, int start, int end,
160         com.liferay.portal.kernel.util.OrderByComparator obc)
161         throws com.liferay.portal.kernel.exception.SystemException;
162 
163     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164     public int getCompanyEntriesCount(long companyId, int status)
165         throws com.liferay.portal.kernel.exception.SystemException;
166 
167     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168     public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
169         long entryId)
170         throws com.liferay.portal.kernel.exception.PortalException,
171             com.liferay.portal.kernel.exception.SystemException;
172 
173     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174     public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
175         throws com.liferay.portal.kernel.exception.PortalException,
176             com.liferay.portal.kernel.exception.SystemException;
177 
178     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179     public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
180         java.lang.String urlTitle)
181         throws com.liferay.portal.kernel.exception.PortalException,
182             com.liferay.portal.kernel.exception.SystemException;
183 
184     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
186         long groupId, int status, int start, int end)
187         throws com.liferay.portal.kernel.exception.SystemException;
188 
189     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
191         long groupId, int status, int start, int end,
192         com.liferay.portal.kernel.util.OrderByComparator obc)
193         throws com.liferay.portal.kernel.exception.SystemException;
194 
195     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196     public int getGroupEntriesCount(long groupId, int status)
197         throws com.liferay.portal.kernel.exception.SystemException;
198 
199     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
201         long groupId, long userId, int status, int start, int end)
202         throws com.liferay.portal.kernel.exception.SystemException;
203 
204     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
206         long groupId, long userId, int status, int start, int end,
207         com.liferay.portal.kernel.util.OrderByComparator obc)
208         throws com.liferay.portal.kernel.exception.SystemException;
209 
210     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211     public int getGroupUserEntriesCount(long groupId, long userId, int status)
212         throws com.liferay.portal.kernel.exception.SystemException;
213 
214     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
216         throws com.liferay.portal.kernel.exception.SystemException;
217 
218     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
220         long organizationId, int status, int start, int end)
221         throws com.liferay.portal.kernel.exception.SystemException;
222 
223     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224     public int getOrganizationEntriesCount(long organizationId, int status)
225         throws com.liferay.portal.kernel.exception.SystemException;
226 
227     public void updateAsset(long userId,
228         com.liferay.portlet.blogs.model.BlogsEntry entry,
229         long[] assetCategoryIds, java.lang.String[] assetTagNames)
230         throws com.liferay.portal.kernel.exception.PortalException,
231             com.liferay.portal.kernel.exception.SystemException;
232 
233     public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
234         long entryId, java.lang.String title, java.lang.String content,
235         int displayDateMonth, int displayDateDay, int displayDateYear,
236         int displayDateHour, int displayDateMinute, boolean allowPingbacks,
237         boolean allowTrackbacks, java.lang.String[] trackbacks,
238         com.liferay.portal.service.ServiceContext serviceContext)
239         throws com.liferay.portal.kernel.exception.PortalException,
240             com.liferay.portal.kernel.exception.SystemException;
241 
242     public void updateEntryResources(
243         com.liferay.portlet.blogs.model.BlogsEntry entry,
244         java.lang.String[] communityPermissions,
245         java.lang.String[] guestPermissions)
246         throws com.liferay.portal.kernel.exception.PortalException,
247             com.liferay.portal.kernel.exception.SystemException;
248 
249     public com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
250         long userId, long entryId, java.lang.String[] trackbacks,
251         boolean pingOldTrackbaks,
252         com.liferay.portal.service.ServiceContext serviceContext)
253         throws com.liferay.portal.kernel.exception.PortalException,
254             com.liferay.portal.kernel.exception.SystemException;
255 }