001
014
015 package com.liferay.portlet.blogs.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface BlogsEntryLocalService {
043
050 public com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
051 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054
060 public com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
061 long entryId);
062
063
070 public void deleteBlogsEntry(long entryId)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074
080 public void deleteBlogsEntry(
081 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084
091 @SuppressWarnings("rawtypes")
092 public java.util.List dynamicQuery(
093 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096
109 @SuppressWarnings("rawtypes")
110 public java.util.List dynamicQuery(
111 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112 int end) throws com.liferay.portal.kernel.exception.SystemException;
113
114
128 @SuppressWarnings("rawtypes")
129 public java.util.List dynamicQuery(
130 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131 int end,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135
142 public long dynamicQueryCount(
143 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
156 long entryId)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException;
159
160
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndGroupId(
171 java.lang.String uuid, long groupId)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
189 int start, int end)
190 throws com.liferay.portal.kernel.exception.SystemException;
191
192
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public int getBlogsEntriesCount()
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202
209 public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
210 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
211 throws com.liferay.portal.kernel.exception.SystemException;
212
213
221 public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
222 com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
223 throws com.liferay.portal.kernel.exception.SystemException;
224
225 public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
226 java.lang.String title, java.lang.String content, int displayDateMonth,
227 int displayDateDay, int displayDateYear, int displayDateHour,
228 int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks,
229 java.lang.String[] trackbacks,
230 com.liferay.portal.service.ServiceContext serviceContext)
231 throws com.liferay.portal.kernel.exception.PortalException,
232 com.liferay.portal.kernel.exception.SystemException;
233
234 public void addEntryResources(
235 com.liferay.portlet.blogs.model.BlogsEntry entry,
236 boolean addCommunityPermissions, boolean addGuestPermissions)
237 throws com.liferay.portal.kernel.exception.PortalException,
238 com.liferay.portal.kernel.exception.SystemException;
239
240 public void addEntryResources(
241 com.liferay.portlet.blogs.model.BlogsEntry entry,
242 java.lang.String[] communityPermissions,
243 java.lang.String[] guestPermissions)
244 throws com.liferay.portal.kernel.exception.PortalException,
245 com.liferay.portal.kernel.exception.SystemException;
246
247 public void addEntryResources(long entryId,
248 boolean addCommunityPermissions, boolean addGuestPermissions)
249 throws com.liferay.portal.kernel.exception.PortalException,
250 com.liferay.portal.kernel.exception.SystemException;
251
252 public void addEntryResources(long entryId,
253 java.lang.String[] communityPermissions,
254 java.lang.String[] guestPermissions)
255 throws com.liferay.portal.kernel.exception.PortalException,
256 com.liferay.portal.kernel.exception.SystemException;
257
258 public void deleteEntries(long groupId)
259 throws com.liferay.portal.kernel.exception.PortalException,
260 com.liferay.portal.kernel.exception.SystemException;
261
262 public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
263 throws com.liferay.portal.kernel.exception.PortalException,
264 com.liferay.portal.kernel.exception.SystemException;
265
266 public void deleteEntry(long entryId)
267 throws com.liferay.portal.kernel.exception.PortalException,
268 com.liferay.portal.kernel.exception.SystemException;
269
270 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
272 long companyId, int status, int start, int end)
273 throws com.liferay.portal.kernel.exception.SystemException;
274
275 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
277 long companyId, int status, int start, int end,
278 com.liferay.portal.kernel.util.OrderByComparator obc)
279 throws com.liferay.portal.kernel.exception.SystemException;
280
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public int getCompanyEntriesCount(long companyId, int status)
283 throws com.liferay.portal.kernel.exception.SystemException;
284
285 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286 public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
287 long entryId)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException;
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
293 throws com.liferay.portal.kernel.exception.PortalException,
294 com.liferay.portal.kernel.exception.SystemException;
295
296 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
297 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
298 java.lang.String urlTitle)
299 throws com.liferay.portal.kernel.exception.PortalException,
300 com.liferay.portal.kernel.exception.SystemException;
301
302 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
304 long groupId, int status, int start, int end)
305 throws com.liferay.portal.kernel.exception.SystemException;
306
307 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
308 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
309 long groupId, int status, int start, int end,
310 com.liferay.portal.kernel.util.OrderByComparator obc)
311 throws com.liferay.portal.kernel.exception.SystemException;
312
313 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314 public int getGroupEntriesCount(long groupId, int status)
315 throws com.liferay.portal.kernel.exception.SystemException;
316
317 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
319 long companyId, long groupId, int status, int start, int end)
320 throws com.liferay.portal.kernel.exception.SystemException;
321
322 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
323 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
324 long groupId, long userId, int status, int start, int end)
325 throws com.liferay.portal.kernel.exception.SystemException;
326
327 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
329 long groupId, long userId, int status, int start, int end,
330 com.liferay.portal.kernel.util.OrderByComparator obc)
331 throws com.liferay.portal.kernel.exception.SystemException;
332
333 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
334 public int getGroupUserEntriesCount(long groupId, long userId, int status)
335 throws com.liferay.portal.kernel.exception.SystemException;
336
337 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
338 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
339 throws com.liferay.portal.kernel.exception.SystemException;
340
341 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
343 long organizationId, int status, int start, int end)
344 throws com.liferay.portal.kernel.exception.SystemException;
345
346 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347 public int getOrganizationEntriesCount(long organizationId, int status)
348 throws com.liferay.portal.kernel.exception.SystemException;
349
350 public void updateAsset(long userId,
351 com.liferay.portlet.blogs.model.BlogsEntry entry,
352 long[] assetCategoryIds, java.lang.String[] assetTagNames)
353 throws com.liferay.portal.kernel.exception.PortalException,
354 com.liferay.portal.kernel.exception.SystemException;
355
356 public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
357 long entryId, java.lang.String title, java.lang.String content,
358 int displayDateMonth, int displayDateDay, int displayDateYear,
359 int displayDateHour, int displayDateMinute, boolean allowPingbacks,
360 boolean allowTrackbacks, java.lang.String[] trackbacks,
361 com.liferay.portal.service.ServiceContext serviceContext)
362 throws com.liferay.portal.kernel.exception.PortalException,
363 com.liferay.portal.kernel.exception.SystemException;
364
365 public void updateEntryResources(
366 com.liferay.portlet.blogs.model.BlogsEntry entry,
367 java.lang.String[] communityPermissions,
368 java.lang.String[] guestPermissions)
369 throws com.liferay.portal.kernel.exception.PortalException,
370 com.liferay.portal.kernel.exception.SystemException;
371
372 public com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
373 long userId, long entryId, int status,
374 com.liferay.portal.service.ServiceContext serviceContext)
375 throws com.liferay.portal.kernel.exception.PortalException,
376 com.liferay.portal.kernel.exception.SystemException;
377 }