1
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
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 java.lang.String title, java.lang.String content, int displayDateMonth,
101 int displayDateDay, int displayDateYear, int displayDateHour,
102 int displayDateMinute, boolean draft, boolean allowTrackbacks,
103 java.lang.String[] trackbacks,
104 com.liferay.portal.service.ServiceContext serviceContext)
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, 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 com.liferay.portal.service.ServiceContext serviceContext)
114 throws com.liferay.portal.PortalException,
115 com.liferay.portal.SystemException;
116
117 public void addEntryResources(long entryId,
118 boolean addCommunityPermissions, boolean addGuestPermissions)
119 throws com.liferay.portal.PortalException,
120 com.liferay.portal.SystemException;
121
122 public void addEntryResources(
123 com.liferay.portlet.blogs.model.BlogsEntry entry,
124 boolean addCommunityPermissions, boolean addGuestPermissions)
125 throws com.liferay.portal.PortalException,
126 com.liferay.portal.SystemException;
127
128 public void addEntryResources(long entryId,
129 java.lang.String[] communityPermissions,
130 java.lang.String[] guestPermissions)
131 throws com.liferay.portal.PortalException,
132 com.liferay.portal.SystemException;
133
134 public void addEntryResources(
135 com.liferay.portlet.blogs.model.BlogsEntry entry,
136 java.lang.String[] communityPermissions,
137 java.lang.String[] guestPermissions)
138 throws com.liferay.portal.PortalException,
139 com.liferay.portal.SystemException;
140
141 public void deleteEntries(long groupId)
142 throws com.liferay.portal.PortalException,
143 com.liferay.portal.SystemException;
144
145 public void deleteEntry(long entryId)
146 throws com.liferay.portal.PortalException,
147 com.liferay.portal.SystemException;
148
149 public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
150 throws com.liferay.portal.PortalException,
151 com.liferay.portal.SystemException;
152
153 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
155 long companyId, int start, int end)
156 throws com.liferay.portal.SystemException;
157
158 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
160 long companyId, int start, int end,
161 com.liferay.portal.kernel.util.OrderByComparator obc)
162 throws com.liferay.portal.SystemException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
166 long companyId, boolean draft, int start, int end)
167 throws com.liferay.portal.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
171 long companyId, boolean draft, int start, int end,
172 com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public int getCompanyEntriesCount(long companyId)
177 throws com.liferay.portal.SystemException;
178
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public int getCompanyEntriesCount(long companyId, boolean draft)
181 throws com.liferay.portal.SystemException;
182
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
185 long entryId)
186 throws com.liferay.portal.PortalException,
187 com.liferay.portal.SystemException;
188
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
191 throws com.liferay.portal.PortalException,
192 com.liferay.portal.SystemException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
196 java.lang.String urlTitle)
197 throws com.liferay.portal.PortalException,
198 com.liferay.portal.SystemException;
199
200 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
202 long groupId, int start, int end)
203 throws com.liferay.portal.SystemException;
204
205 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
213 long groupId, boolean draft, int start, int end)
214 throws com.liferay.portal.SystemException;
215
216 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
218 long groupId, boolean draft, int start, int end,
219 com.liferay.portal.kernel.util.OrderByComparator obc)
220 throws com.liferay.portal.SystemException;
221
222 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223 public int getGroupEntriesCount(long groupId)
224 throws com.liferay.portal.SystemException;
225
226 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227 public int getGroupEntriesCount(long groupId, boolean draft)
228 throws com.liferay.portal.SystemException;
229
230 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
232 long groupId, long userId, 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> getGroupUserEntries(
237 long groupId, long userId, 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> getGroupUserEntries(
243 long groupId, long userId, 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> getGroupUserEntries(
248 long groupId, long userId, 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 getGroupUserEntriesCount(long groupId, long userId)
254 throws com.liferay.portal.SystemException;
255
256 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257 public int getGroupUserEntriesCount(long groupId, long userId, 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> getNoAssetEntries()
262 throws com.liferay.portal.SystemException;
263
264 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
266 long organizationId, boolean draft, int start, int end)
267 throws com.liferay.portal.SystemException;
268
269 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270 public int getOrganizationEntriesCount(long organizationId, boolean draft)
271 throws com.liferay.portal.SystemException;
272
273 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274 public java.lang.String getUrlTitle(long entryId, java.lang.String title);
275
276 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277 public void reIndex(long entryId) throws com.liferay.portal.SystemException;
278
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public void reIndex(com.liferay.portlet.blogs.model.BlogsEntry entry)
281 throws com.liferay.portal.SystemException;
282
283 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
284 public void reIndex(java.lang.String[] ids)
285 throws com.liferay.portal.SystemException;
286
287 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288 public com.liferay.portal.kernel.search.Hits search(long companyId,
289 long groupId, long userId, long ownerUserId, java.lang.String keywords,
290 int start, int end) throws com.liferay.portal.SystemException;
291
292 public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
293 long entryId, java.lang.String title, java.lang.String content,
294 int displayDateMonth, int displayDateDay, int displayDateYear,
295 int displayDateHour, int displayDateMinute, boolean draft,
296 boolean allowTrackbacks, java.lang.String[] trackbacks,
297 com.liferay.portal.service.ServiceContext serviceContext)
298 throws com.liferay.portal.PortalException,
299 com.liferay.portal.SystemException;
300
301 public void updateEntryResources(
302 com.liferay.portlet.blogs.model.BlogsEntry entry,
303 java.lang.String[] communityPermissions,
304 java.lang.String[] guestPermissions)
305 throws com.liferay.portal.PortalException,
306 com.liferay.portal.SystemException;
307
308 public void updateTagsAsset(long userId,
309 com.liferay.portlet.blogs.model.BlogsEntry entry,
310 java.lang.String[] tagsEntries)
311 throws com.liferay.portal.PortalException,
312 com.liferay.portal.SystemException;
313 }