001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.blogs.service;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.transaction.Isolation;
020    import com.liferay.portal.kernel.transaction.Propagation;
021    import com.liferay.portal.kernel.transaction.Transactional;
022    import com.liferay.portal.service.BaseLocalService;
023    import com.liferay.portal.service.PersistedModelLocalService;
024    
025    /**
026     * The interface for the blogs entry local service.
027     *
028     * <p>
029     * 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.
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see BlogsEntryLocalServiceUtil
034     * @see com.liferay.portlet.blogs.service.base.BlogsEntryLocalServiceBaseImpl
035     * @see com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl
036     * @generated
037     */
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface BlogsEntryLocalService extends BaseLocalService,
041            PersistedModelLocalService {
042            /*
043             * NOTE FOR DEVELOPERS:
044             *
045             * Never modify or reference this interface directly. Always use {@link BlogsEntryLocalServiceUtil} to access the blogs entry local service. Add custom service methods to {@link com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
046             */
047    
048            /**
049            * Adds the blogs entry to the database. Also notifies the appropriate model listeners.
050            *
051            * @param blogsEntry the blogs entry
052            * @return the blogs entry that was added
053            * @throws SystemException if a system exception occurred
054            */
055            public com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
056                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    
059            /**
060            * Creates a new blogs entry with the primary key. Does not add the blogs entry to the database.
061            *
062            * @param entryId the primary key for the new blogs entry
063            * @return the new blogs entry
064            */
065            public com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
066                    long entryId);
067    
068            /**
069            * Deletes the blogs entry with the primary key from the database. Also notifies the appropriate model listeners.
070            *
071            * @param entryId the primary key of the blogs entry
072            * @return the blogs entry that was removed
073            * @throws PortalException if a blogs entry with the primary key could not be found
074            * @throws SystemException if a system exception occurred
075            */
076            public com.liferay.portlet.blogs.model.BlogsEntry deleteBlogsEntry(
077                    long entryId)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException;
080    
081            /**
082            * Deletes the blogs entry from the database. Also notifies the appropriate model listeners.
083            *
084            * @param blogsEntry the blogs entry
085            * @return the blogs entry that was removed
086            * @throws SystemException if a system exception occurred
087            */
088            public com.liferay.portlet.blogs.model.BlogsEntry deleteBlogsEntry(
089                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
090                    throws com.liferay.portal.kernel.exception.SystemException;
091    
092            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
093    
094            /**
095            * Performs a dynamic query on the database and returns the matching rows.
096            *
097            * @param dynamicQuery the dynamic query
098            * @return the matching rows
099            * @throws SystemException if a system exception occurred
100            */
101            @SuppressWarnings("rawtypes")
102            public java.util.List dynamicQuery(
103                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            /**
107            * Performs a dynamic query on the database and returns a range of the matching rows.
108            *
109            * <p>
110            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.blogs.model.impl.BlogsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
111            * </p>
112            *
113            * @param dynamicQuery the dynamic query
114            * @param start the lower bound of the range of model instances
115            * @param end the upper bound of the range of model instances (not inclusive)
116            * @return the range of matching rows
117            * @throws SystemException if a system exception occurred
118            */
119            @SuppressWarnings("rawtypes")
120            public java.util.List dynamicQuery(
121                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122                    int end) throws com.liferay.portal.kernel.exception.SystemException;
123    
124            /**
125            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
126            *
127            * <p>
128            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.blogs.model.impl.BlogsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
129            * </p>
130            *
131            * @param dynamicQuery the dynamic query
132            * @param start the lower bound of the range of model instances
133            * @param end the upper bound of the range of model instances (not inclusive)
134            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
135            * @return the ordered range of matching rows
136            * @throws SystemException if a system exception occurred
137            */
138            @SuppressWarnings("rawtypes")
139            public java.util.List dynamicQuery(
140                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141                    int end,
142                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143                    throws com.liferay.portal.kernel.exception.SystemException;
144    
145            /**
146            * Returns the number of rows that match the dynamic query.
147            *
148            * @param dynamicQuery the dynamic query
149            * @return the number of rows that match the dynamic query
150            * @throws SystemException if a system exception occurred
151            */
152            public long dynamicQueryCount(
153                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
154                    throws com.liferay.portal.kernel.exception.SystemException;
155    
156            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157            public com.liferay.portlet.blogs.model.BlogsEntry fetchBlogsEntry(
158                    long entryId)
159                    throws com.liferay.portal.kernel.exception.SystemException;
160    
161            /**
162            * Returns the blogs entry with the primary key.
163            *
164            * @param entryId the primary key of the blogs entry
165            * @return the blogs entry
166            * @throws PortalException if a blogs entry with the primary key could not be found
167            * @throws SystemException if a system exception occurred
168            */
169            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170            public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
171                    long entryId)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException;
174    
175            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176            public com.liferay.portal.model.PersistedModel getPersistedModel(
177                    java.io.Serializable primaryKeyObj)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException;
180    
181            /**
182            * Returns the blogs entry with the UUID in the group.
183            *
184            * @param uuid the UUID of blogs entry
185            * @param groupId the group id of the blogs entry
186            * @return the blogs entry
187            * @throws PortalException if a blogs entry with the UUID in the group could not be found
188            * @throws SystemException if a system exception occurred
189            */
190            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191            public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndGroupId(
192                    java.lang.String uuid, long groupId)
193                    throws com.liferay.portal.kernel.exception.PortalException,
194                            com.liferay.portal.kernel.exception.SystemException;
195    
196            /**
197            * Returns a range of all the blogs entries.
198            *
199            * <p>
200            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.blogs.model.impl.BlogsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
201            * </p>
202            *
203            * @param start the lower bound of the range of blogs entries
204            * @param end the upper bound of the range of blogs entries (not inclusive)
205            * @return the range of blogs entries
206            * @throws SystemException if a system exception occurred
207            */
208            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
210                    int start, int end)
211                    throws com.liferay.portal.kernel.exception.SystemException;
212    
213            /**
214            * Returns the number of blogs entries.
215            *
216            * @return the number of blogs entries
217            * @throws SystemException if a system exception occurred
218            */
219            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220            public int getBlogsEntriesCount()
221                    throws com.liferay.portal.kernel.exception.SystemException;
222    
223            /**
224            * Updates the blogs entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
225            *
226            * @param blogsEntry the blogs entry
227            * @return the blogs entry that was updated
228            * @throws SystemException if a system exception occurred
229            */
230            public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
231                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
232                    throws com.liferay.portal.kernel.exception.SystemException;
233    
234            /**
235            * Returns the Spring bean ID for this bean.
236            *
237            * @return the Spring bean ID for this bean
238            */
239            public java.lang.String getBeanIdentifier();
240    
241            /**
242            * Sets the Spring bean ID for this bean.
243            *
244            * @param beanIdentifier the Spring bean ID for this bean
245            */
246            public void setBeanIdentifier(java.lang.String beanIdentifier);
247    
248            public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
249                    java.lang.String title, java.lang.String description,
250                    java.lang.String content, int displayDateMonth, int displayDateDay,
251                    int displayDateYear, int displayDateHour, int displayDateMinute,
252                    boolean allowPingbacks, boolean allowTrackbacks,
253                    java.lang.String[] trackbacks, boolean smallImage,
254                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
255                    java.io.InputStream smallImageInputStream,
256                    com.liferay.portal.service.ServiceContext serviceContext)
257                    throws com.liferay.portal.kernel.exception.PortalException,
258                            com.liferay.portal.kernel.exception.SystemException;
259    
260            public void addEntryResources(
261                    com.liferay.portlet.blogs.model.BlogsEntry entry,
262                    boolean addGroupPermissions, boolean addGuestPermissions)
263                    throws com.liferay.portal.kernel.exception.PortalException,
264                            com.liferay.portal.kernel.exception.SystemException;
265    
266            public void addEntryResources(
267                    com.liferay.portlet.blogs.model.BlogsEntry entry,
268                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException;
271    
272            public void addEntryResources(long entryId, boolean addGroupPermissions,
273                    boolean addGuestPermissions)
274                    throws com.liferay.portal.kernel.exception.PortalException,
275                            com.liferay.portal.kernel.exception.SystemException;
276    
277            public void addEntryResources(long entryId,
278                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException;
281    
282            public void checkEntries()
283                    throws com.liferay.portal.kernel.exception.PortalException,
284                            com.liferay.portal.kernel.exception.SystemException;
285    
286            public void deleteEntries(long groupId)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException;
289    
290            public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
291                    throws com.liferay.portal.kernel.exception.PortalException,
292                            com.liferay.portal.kernel.exception.SystemException;
293    
294            public void deleteEntry(long entryId)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException;
297    
298            /**
299            * @deprecated {@link #getCompanyEntries(long, Date, QueryDefinition)}
300            */
301            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
303                    long companyId, java.util.Date displayDate, int status, int start,
304                    int end) throws com.liferay.portal.kernel.exception.SystemException;
305    
306            /**
307            * @deprecated {@link #getCompanyEntries(long, Date, QueryDefinition)}
308            */
309            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
311                    long companyId, java.util.Date displayDate, int status, int start,
312                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
313                    throws com.liferay.portal.kernel.exception.SystemException;
314    
315            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
317                    long companyId, java.util.Date displayDate,
318                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
319                    throws com.liferay.portal.kernel.exception.SystemException;
320    
321            /**
322            * @deprecated {@link #getCompanyEntriesCount(long, Date, QueryDefinition)}
323            */
324            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325            public int getCompanyEntriesCount(long companyId,
326                    java.util.Date displayDate, int status)
327                    throws com.liferay.portal.kernel.exception.SystemException;
328    
329            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
330            public int getCompanyEntriesCount(long companyId,
331                    java.util.Date displayDate,
332                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
333                    throws com.liferay.portal.kernel.exception.SystemException;
334    
335            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
336            public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
337                    long entryId)
338                    throws com.liferay.portal.kernel.exception.PortalException,
339                            com.liferay.portal.kernel.exception.SystemException;
340    
341            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
343                    throws com.liferay.portal.kernel.exception.PortalException,
344                            com.liferay.portal.kernel.exception.SystemException;
345    
346            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
348                    java.lang.String urlTitle)
349                    throws com.liferay.portal.kernel.exception.PortalException,
350                            com.liferay.portal.kernel.exception.SystemException;
351    
352            /**
353            * @deprecated {@link #getGroupEntries(long, Date, QueryDefinition)}
354            */
355            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
356            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
357                    long groupId, java.util.Date displayDate, int status, int start, int end)
358                    throws com.liferay.portal.kernel.exception.SystemException;
359    
360            /**
361            * @deprecated {@link #getGroupEntries(long, Date, QueryDefinition)}
362            */
363            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
364            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
365                    long groupId, java.util.Date displayDate, int status, int start,
366                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
367                    throws com.liferay.portal.kernel.exception.SystemException;
368    
369            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
371                    long groupId, java.util.Date displayDate,
372                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
373                    throws com.liferay.portal.kernel.exception.SystemException;
374    
375            /**
376            * @deprecated {@link #getGroupEntries(long, QueryDefinition)}
377            */
378            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
379            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
380                    long groupId, int status, int start, int end)
381                    throws com.liferay.portal.kernel.exception.SystemException;
382    
383            /**
384            * @deprecated {@link #getGroupEntries(long, QueryDefinition)}
385            */
386            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
387            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
388                    long groupId, int status, int start, int end,
389                    com.liferay.portal.kernel.util.OrderByComparator obc)
390                    throws com.liferay.portal.kernel.exception.SystemException;
391    
392            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
393            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
394                    long groupId,
395                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
396                    throws com.liferay.portal.kernel.exception.SystemException;
397    
398            /**
399            * @deprecated {@link #getGroupEntriesCount(long, Date, QueryDefinition)}
400            */
401            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
402            public int getGroupEntriesCount(long groupId, java.util.Date displayDate,
403                    int status) throws com.liferay.portal.kernel.exception.SystemException;
404    
405            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
406            public int getGroupEntriesCount(long groupId, java.util.Date displayDate,
407                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
408                    throws com.liferay.portal.kernel.exception.SystemException;
409    
410            /**
411            * @deprecated {@link #getGroupEntriesCount(long, QueryDefinition)}
412            */
413            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
414            public int getGroupEntriesCount(long groupId, int status)
415                    throws com.liferay.portal.kernel.exception.SystemException;
416    
417            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
418            public int getGroupEntriesCount(long groupId,
419                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
420                    throws com.liferay.portal.kernel.exception.SystemException;
421    
422            /**
423            * @deprecated {@link #getGroupsEntries(long, long, Date, QueryDefinition)}
424            */
425            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
426            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
427                    long companyId, long groupId, java.util.Date displayDate, int status,
428                    int start, int end)
429                    throws com.liferay.portal.kernel.exception.SystemException;
430    
431            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
432            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
433                    long companyId, long groupId, java.util.Date displayDate,
434                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
435                    throws com.liferay.portal.kernel.exception.SystemException;
436    
437            /**
438            * @deprecated {@link #getGroupUserEntries(long, long, Date,
439            QueryDefinition)}
440            */
441            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
442            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
443                    long groupId, long userId, java.util.Date displayDate, int status,
444                    int start, int end)
445                    throws com.liferay.portal.kernel.exception.SystemException;
446    
447            /**
448            * @deprecated {@link #getGroupUserEntries(long, long, Date,
449            QueryDefinition)}
450            */
451            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
452            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
453                    long groupId, long userId, java.util.Date displayDate, int status,
454                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
455                    throws com.liferay.portal.kernel.exception.SystemException;
456    
457            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
458            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
459                    long groupId, long userId, java.util.Date displayDate,
460                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
461                    throws com.liferay.portal.kernel.exception.SystemException;
462    
463            /**
464            * @deprecated {@link #getGroupUserEntriesCount(long, long, Date,
465            QueryDefinition)}
466            */
467            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
468            public int getGroupUserEntriesCount(long groupId, long userId,
469                    java.util.Date displayDate, int status)
470                    throws com.liferay.portal.kernel.exception.SystemException;
471    
472            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
473            public int getGroupUserEntriesCount(long groupId, long userId,
474                    java.util.Date displayDate,
475                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
476                    throws com.liferay.portal.kernel.exception.SystemException;
477    
478            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
479            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
480                    throws com.liferay.portal.kernel.exception.SystemException;
481    
482            /**
483            * @deprecated {@link #getOrganizationEntries(long, Date, QueryDefinition)}
484            */
485            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
486            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
487                    long organizationId, java.util.Date displayDate, int status, int start,
488                    int end) throws com.liferay.portal.kernel.exception.SystemException;
489    
490            /**
491            * @deprecated {@link #getOrganizationEntries(long, Date, QueryDefinition)}
492            */
493            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
494            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
495                    long organizationId, java.util.Date displayDate, int status, int start,
496                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
497                    throws com.liferay.portal.kernel.exception.SystemException;
498    
499            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
500            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
501                    long organizationId, java.util.Date displayDate,
502                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
503                    throws com.liferay.portal.kernel.exception.SystemException;
504    
505            /**
506            * @deprecated {@link #getOrganizationEntriesCount(long, Date,
507            QueryDefinition)}
508            */
509            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
510            public int getOrganizationEntriesCount(long organizationId,
511                    java.util.Date displayDate, int status)
512                    throws com.liferay.portal.kernel.exception.SystemException;
513    
514            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
515            public int getOrganizationEntriesCount(long organizationId,
516                    java.util.Date displayDate,
517                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
518                    throws com.liferay.portal.kernel.exception.SystemException;
519    
520            public void moveEntriesToTrash(long groupId, long userId)
521                    throws com.liferay.portal.kernel.exception.PortalException,
522                            com.liferay.portal.kernel.exception.SystemException;
523    
524            /**
525            * Moves the blogs entry to the recycle bin. Social activity counters for
526            * this entry get disabled.
527            *
528            * @param userId the primary key of the user moving the blogs entry
529            * @param entry the blogs entry to be moved
530            * @return the moved blogs entry
531            * @throws PortalException if a user with the primary key could not be found
532            or if the blogs entry owner's social activity counter could not
533            be updated
534            * @throws SystemException if a system exception occurred
535            */
536            public com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
537                    long userId, com.liferay.portlet.blogs.model.BlogsEntry entry)
538                    throws com.liferay.portal.kernel.exception.PortalException,
539                            com.liferay.portal.kernel.exception.SystemException;
540    
541            /**
542            * Moves the blogs entry with the ID to the recycle bin.
543            *
544            * @param userId the primary key of the user moving the blogs entry
545            * @param entryId the primary key of the blogs entry to be moved
546            * @return the moved blogs entry
547            * @throws PortalException if a user or blogs entry with the primary key
548            could not be found or if the blogs entry owner's social activity
549            counter could not be updated
550            * @throws SystemException if a system exception occurred
551            */
552            public com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
553                    long userId, long entryId)
554                    throws com.liferay.portal.kernel.exception.PortalException,
555                            com.liferay.portal.kernel.exception.SystemException;
556    
557            /**
558            * Restores the blogs entry with the ID from the recycle bin. Social
559            * activity counters for this entry get activated.
560            *
561            * @param userId the primary key of the user restoring the blogs entry
562            * @param entryId the primary key of the blogs entry to be restored
563            * @throws PortalException if a user or blogs entry with the primary key
564            could not be found or if the blogs entry owner's social activity
565            counter could not be updated
566            * @throws SystemException if a system exception occurred
567            */
568            public void restoreEntryFromTrash(long userId, long entryId)
569                    throws com.liferay.portal.kernel.exception.PortalException,
570                            com.liferay.portal.kernel.exception.SystemException;
571    
572            public void subscribe(long userId, long groupId)
573                    throws com.liferay.portal.kernel.exception.PortalException,
574                            com.liferay.portal.kernel.exception.SystemException;
575    
576            public void unsubscribe(long userId, long groupId)
577                    throws com.liferay.portal.kernel.exception.PortalException,
578                            com.liferay.portal.kernel.exception.SystemException;
579    
580            public void updateAsset(long userId,
581                    com.liferay.portlet.blogs.model.BlogsEntry entry,
582                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
583                    long[] assetLinkEntryIds)
584                    throws com.liferay.portal.kernel.exception.PortalException,
585                            com.liferay.portal.kernel.exception.SystemException;
586    
587            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
588                    long entryId, java.lang.String title, java.lang.String description,
589                    java.lang.String content, int displayDateMonth, int displayDateDay,
590                    int displayDateYear, int displayDateHour, int displayDateMinute,
591                    boolean allowPingbacks, boolean allowTrackbacks,
592                    java.lang.String[] trackbacks, boolean smallImage,
593                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
594                    java.io.InputStream smallImageInputStream,
595                    com.liferay.portal.service.ServiceContext serviceContext)
596                    throws com.liferay.portal.kernel.exception.PortalException,
597                            com.liferay.portal.kernel.exception.SystemException;
598    
599            public void updateEntryResources(
600                    com.liferay.portlet.blogs.model.BlogsEntry entry,
601                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
602                    throws com.liferay.portal.kernel.exception.PortalException,
603                            com.liferay.portal.kernel.exception.SystemException;
604    
605            public com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
606                    long userId, long entryId, int status,
607                    com.liferay.portal.service.ServiceContext serviceContext)
608                    throws com.liferay.portal.kernel.exception.PortalException,
609                            com.liferay.portal.kernel.exception.SystemException;
610    }