001    /**
002     * Copyright (c) 2000-2013 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 matching the UUID and group.
183            *
184            * @param uuid the blogs entry's UUID
185            * @param groupId the primary key of the group
186            * @return the matching blogs entry
187            * @throws PortalException if a matching blogs entry 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 As of 6.2.0, replaced by {@link #getCompanyEntries(long,
300            Date, QueryDefinition)}
301            */
302            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
304                    long companyId, java.util.Date displayDate, int status, int start,
305                    int end) throws com.liferay.portal.kernel.exception.SystemException;
306    
307            /**
308            * @deprecated As of 6.2.0, replaced by {@link #getCompanyEntries(long,
309            Date, QueryDefinition)}
310            */
311            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
313                    long companyId, java.util.Date displayDate, int status, int start,
314                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
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> getCompanyEntries(
319                    long companyId, java.util.Date displayDate,
320                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
321                    throws com.liferay.portal.kernel.exception.SystemException;
322    
323            /**
324            * @deprecated As of 6.2.0, replaced by {@link #getCompanyEntriesCount(long,
325            Date, QueryDefinition)}
326            */
327            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328            public int getCompanyEntriesCount(long companyId,
329                    java.util.Date displayDate, int status)
330                    throws com.liferay.portal.kernel.exception.SystemException;
331    
332            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333            public int getCompanyEntriesCount(long companyId,
334                    java.util.Date displayDate,
335                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
336                    throws com.liferay.portal.kernel.exception.SystemException;
337    
338            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
339            public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
340                    long entryId)
341                    throws com.liferay.portal.kernel.exception.PortalException,
342                            com.liferay.portal.kernel.exception.SystemException;
343    
344            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
345            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
346                    throws com.liferay.portal.kernel.exception.PortalException,
347                            com.liferay.portal.kernel.exception.SystemException;
348    
349            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
350            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
351                    java.lang.String urlTitle)
352                    throws com.liferay.portal.kernel.exception.PortalException,
353                            com.liferay.portal.kernel.exception.SystemException;
354    
355            /**
356            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntries(long, Date,
357            QueryDefinition)}
358            */
359            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
360            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
361                    long groupId, java.util.Date displayDate, int status, int start, int end)
362                    throws com.liferay.portal.kernel.exception.SystemException;
363    
364            /**
365            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntries(long, Date,
366            QueryDefinition)}
367            */
368            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
369            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
370                    long groupId, java.util.Date displayDate, int status, int start,
371                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
372                    throws com.liferay.portal.kernel.exception.SystemException;
373    
374            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
375            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
376                    long groupId, java.util.Date displayDate,
377                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
378                    throws com.liferay.portal.kernel.exception.SystemException;
379    
380            /**
381            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntries(long,
382            QueryDefinition)}
383            */
384            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
385            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
386                    long groupId, int status, int start, int end)
387                    throws com.liferay.portal.kernel.exception.SystemException;
388    
389            /**
390            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntries(long,
391            QueryDefinition)}
392            */
393            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
395                    long groupId, int status, int start, int end,
396                    com.liferay.portal.kernel.util.OrderByComparator obc)
397                    throws com.liferay.portal.kernel.exception.SystemException;
398    
399            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
400            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
401                    long groupId,
402                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
403                    throws com.liferay.portal.kernel.exception.SystemException;
404    
405            /**
406            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntriesCount(long,
407            Date, QueryDefinition)}
408            */
409            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
410            public int getGroupEntriesCount(long groupId, java.util.Date displayDate,
411                    int status) throws com.liferay.portal.kernel.exception.SystemException;
412    
413            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
414            public int getGroupEntriesCount(long groupId, java.util.Date displayDate,
415                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
416                    throws com.liferay.portal.kernel.exception.SystemException;
417    
418            /**
419            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntriesCount(long,
420            QueryDefinition)}
421            */
422            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
423            public int getGroupEntriesCount(long groupId, int status)
424                    throws com.liferay.portal.kernel.exception.SystemException;
425    
426            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
427            public int getGroupEntriesCount(long groupId,
428                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
429                    throws com.liferay.portal.kernel.exception.SystemException;
430    
431            /**
432            * @deprecated As of 6.2.0, replaced by {@link #getGroupsEntries(long, long,
433            Date, QueryDefinition)}
434            */
435            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
436            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
437                    long companyId, long groupId, java.util.Date displayDate, int status,
438                    int start, int end)
439                    throws com.liferay.portal.kernel.exception.SystemException;
440    
441            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
442            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
443                    long companyId, long groupId, java.util.Date displayDate,
444                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
445                    throws com.liferay.portal.kernel.exception.SystemException;
446    
447            /**
448            * @deprecated As of 6.2.0, replaced by {@link #getGroupUserEntries(long,
449            long, Date, 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)
455                    throws com.liferay.portal.kernel.exception.SystemException;
456    
457            /**
458            * @deprecated As of 6.2.0, replaced by {@link #getGroupUserEntries(long,
459            long, Date, QueryDefinition)}
460            */
461            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
462            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
463                    long groupId, long userId, java.util.Date displayDate, int status,
464                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
465                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
468            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
469                    long groupId, long userId, java.util.Date displayDate,
470                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
471                    throws com.liferay.portal.kernel.exception.SystemException;
472    
473            /**
474            * @deprecated As of 6.2.0, replaced by {@link
475            #getGroupUserEntriesCount(long, long, Date, QueryDefinition)}
476            */
477            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
478            public int getGroupUserEntriesCount(long groupId, long userId,
479                    java.util.Date displayDate, int status)
480                    throws com.liferay.portal.kernel.exception.SystemException;
481    
482            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
483            public int getGroupUserEntriesCount(long groupId, long userId,
484                    java.util.Date displayDate,
485                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
486                    throws com.liferay.portal.kernel.exception.SystemException;
487    
488            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
489            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
490                    throws com.liferay.portal.kernel.exception.SystemException;
491    
492            /**
493            * @deprecated As of 6.2.0, replaced by {@link #getOrganizationEntries(long,
494            Date, QueryDefinition)}
495            */
496            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
497            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
498                    long organizationId, java.util.Date displayDate, int status, int start,
499                    int end) throws com.liferay.portal.kernel.exception.SystemException;
500    
501            /**
502            * @deprecated As of 6.2.0, replaced by {@link #getOrganizationEntries(long,
503            Date, QueryDefinition)}
504            */
505            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
506            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
507                    long organizationId, java.util.Date displayDate, int status, int start,
508                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
509                    throws com.liferay.portal.kernel.exception.SystemException;
510    
511            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
512            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
513                    long organizationId, java.util.Date displayDate,
514                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
515                    throws com.liferay.portal.kernel.exception.SystemException;
516    
517            /**
518            * @deprecated As of 6.2.0, replaced by {@link
519            #getOrganizationEntriesCount(long, Date, QueryDefinition)}
520            */
521            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
522            public int getOrganizationEntriesCount(long organizationId,
523                    java.util.Date displayDate, int status)
524                    throws com.liferay.portal.kernel.exception.SystemException;
525    
526            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
527            public int getOrganizationEntriesCount(long organizationId,
528                    java.util.Date displayDate,
529                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
530                    throws com.liferay.portal.kernel.exception.SystemException;
531    
532            public void moveEntriesToTrash(long groupId, long userId)
533                    throws com.liferay.portal.kernel.exception.PortalException,
534                            com.liferay.portal.kernel.exception.SystemException;
535    
536            /**
537            * Moves the blogs entry to the recycle bin. Social activity counters for
538            * this entry get disabled.
539            *
540            * @param userId the primary key of the user moving the blogs entry
541            * @param entry the blogs entry to be moved
542            * @return the moved blogs entry
543            * @throws PortalException if a user with the primary key could not be found
544            or if the blogs entry owner's social activity counter could not
545            be updated
546            * @throws SystemException if a system exception occurred
547            */
548            public com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
549                    long userId, com.liferay.portlet.blogs.model.BlogsEntry entry)
550                    throws com.liferay.portal.kernel.exception.PortalException,
551                            com.liferay.portal.kernel.exception.SystemException;
552    
553            /**
554            * Moves the blogs entry with the ID to the recycle bin.
555            *
556            * @param userId the primary key of the user moving the blogs entry
557            * @param entryId the primary key of the blogs entry to be moved
558            * @return the moved blogs entry
559            * @throws PortalException if a user or blogs entry with the primary key
560            could not be found or if the blogs entry owner's social activity
561            counter could not be updated
562            * @throws SystemException if a system exception occurred
563            */
564            public com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
565                    long userId, long entryId)
566                    throws com.liferay.portal.kernel.exception.PortalException,
567                            com.liferay.portal.kernel.exception.SystemException;
568    
569            /**
570            * Restores the blogs entry with the ID from the recycle bin. Social
571            * activity counters for this entry get activated.
572            *
573            * @param userId the primary key of the user restoring the blogs entry
574            * @param entryId the primary key of the blogs entry to be restored
575            * @throws PortalException if a user or blogs entry with the primary key
576            could not be found or if the blogs entry owner's social activity
577            counter could not be updated
578            * @throws SystemException if a system exception occurred
579            */
580            public void restoreEntryFromTrash(long userId, long entryId)
581                    throws com.liferay.portal.kernel.exception.PortalException,
582                            com.liferay.portal.kernel.exception.SystemException;
583    
584            public void subscribe(long userId, long groupId)
585                    throws com.liferay.portal.kernel.exception.PortalException,
586                            com.liferay.portal.kernel.exception.SystemException;
587    
588            public void unsubscribe(long userId, long groupId)
589                    throws com.liferay.portal.kernel.exception.PortalException,
590                            com.liferay.portal.kernel.exception.SystemException;
591    
592            public void updateAsset(long userId,
593                    com.liferay.portlet.blogs.model.BlogsEntry entry,
594                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
595                    long[] assetLinkEntryIds)
596                    throws com.liferay.portal.kernel.exception.PortalException,
597                            com.liferay.portal.kernel.exception.SystemException;
598    
599            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
600                    long entryId, java.lang.String title, java.lang.String description,
601                    java.lang.String content, int displayDateMonth, int displayDateDay,
602                    int displayDateYear, int displayDateHour, int displayDateMinute,
603                    boolean allowPingbacks, boolean allowTrackbacks,
604                    java.lang.String[] trackbacks, boolean smallImage,
605                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
606                    java.io.InputStream smallImageInputStream,
607                    com.liferay.portal.service.ServiceContext serviceContext)
608                    throws com.liferay.portal.kernel.exception.PortalException,
609                            com.liferay.portal.kernel.exception.SystemException;
610    
611            public void updateEntryResources(
612                    com.liferay.portlet.blogs.model.BlogsEntry entry,
613                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
614                    throws com.liferay.portal.kernel.exception.PortalException,
615                            com.liferay.portal.kernel.exception.SystemException;
616    
617            public com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
618                    long userId, long entryId, int status,
619                    com.liferay.portal.service.ServiceContext serviceContext)
620                    throws com.liferay.portal.kernel.exception.PortalException,
621                            com.liferay.portal.kernel.exception.SystemException;
622    }