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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.exception.PortalException;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.kernel.search.IndexableType;
022    import com.liferay.portal.kernel.transaction.Isolation;
023    import com.liferay.portal.kernel.transaction.Propagation;
024    import com.liferay.portal.kernel.transaction.Transactional;
025    import com.liferay.portal.service.BaseLocalService;
026    import com.liferay.portal.service.PersistedModelLocalService;
027    
028    /**
029     * Provides the local service interface for BlogsEntry. Methods of this
030     * service will not have security checks based on the propagated JAAS
031     * credentials because this service can only be accessed from within the same
032     * VM.
033     *
034     * @author Brian Wing Shun Chan
035     * @see BlogsEntryLocalServiceUtil
036     * @see com.liferay.portlet.blogs.service.base.BlogsEntryLocalServiceBaseImpl
037     * @see com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl
038     * @generated
039     */
040    @ProviderType
041    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
042            PortalException.class, SystemException.class})
043    public interface BlogsEntryLocalService extends BaseLocalService,
044            PersistedModelLocalService {
045            /*
046             * NOTE FOR DEVELOPERS:
047             *
048             * 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.
049             */
050    
051            /**
052            * Adds the blogs entry to the database. Also notifies the appropriate model listeners.
053            *
054            * @param blogsEntry the blogs entry
055            * @return the blogs entry that was added
056            * @throws SystemException if a system exception occurred
057            */
058            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
059            public com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
060                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            /**
064            * Creates a new blogs entry with the primary key. Does not add the blogs entry to the database.
065            *
066            * @param entryId the primary key for the new blogs entry
067            * @return the new blogs entry
068            */
069            public com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
070                    long entryId);
071    
072            /**
073            * Deletes the blogs entry with the primary key from the database. Also notifies the appropriate model listeners.
074            *
075            * @param entryId the primary key of the blogs entry
076            * @return the blogs entry that was removed
077            * @throws PortalException if a blogs entry with the primary key could not be found
078            * @throws SystemException if a system exception occurred
079            */
080            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
081            public com.liferay.portlet.blogs.model.BlogsEntry deleteBlogsEntry(
082                    long entryId)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException;
085    
086            /**
087            * Deletes the blogs entry from the database. Also notifies the appropriate model listeners.
088            *
089            * @param blogsEntry the blogs entry
090            * @return the blogs entry that was removed
091            * @throws SystemException if a system exception occurred
092            */
093            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
094            public com.liferay.portlet.blogs.model.BlogsEntry deleteBlogsEntry(
095                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
099    
100            /**
101            * Performs a dynamic query on the database and returns the matching rows.
102            *
103            * @param dynamicQuery the dynamic query
104            * @return the matching rows
105            * @throws SystemException if a system exception occurred
106            */
107            @SuppressWarnings("rawtypes")
108            public java.util.List dynamicQuery(
109                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110                    throws com.liferay.portal.kernel.exception.SystemException;
111    
112            /**
113            * Performs a dynamic query on the database and returns a range of the matching rows.
114            *
115            * <p>
116            * 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.
117            * </p>
118            *
119            * @param dynamicQuery the dynamic query
120            * @param start the lower bound of the range of model instances
121            * @param end the upper bound of the range of model instances (not inclusive)
122            * @return the range of matching rows
123            * @throws SystemException if a system exception occurred
124            */
125            @SuppressWarnings("rawtypes")
126            public java.util.List dynamicQuery(
127                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
128                    int end) throws com.liferay.portal.kernel.exception.SystemException;
129    
130            /**
131            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
132            *
133            * <p>
134            * 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.
135            * </p>
136            *
137            * @param dynamicQuery the dynamic query
138            * @param start the lower bound of the range of model instances
139            * @param end the upper bound of the range of model instances (not inclusive)
140            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
141            * @return the ordered range of matching rows
142            * @throws SystemException if a system exception occurred
143            */
144            @SuppressWarnings("rawtypes")
145            public java.util.List dynamicQuery(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147                    int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            /**
152            * Returns the number of rows that match the dynamic query.
153            *
154            * @param dynamicQuery the dynamic query
155            * @return the number of rows that match the dynamic query
156            * @throws SystemException if a system exception occurred
157            */
158            public long dynamicQueryCount(
159                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
160                    throws com.liferay.portal.kernel.exception.SystemException;
161    
162            /**
163            * Returns the number of rows that match the dynamic query.
164            *
165            * @param dynamicQuery the dynamic query
166            * @param projection the projection to apply to the query
167            * @return the number of rows that match the dynamic query
168            * @throws SystemException if a system exception occurred
169            */
170            public long dynamicQueryCount(
171                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
172                    com.liferay.portal.kernel.dao.orm.Projection projection)
173                    throws com.liferay.portal.kernel.exception.SystemException;
174    
175            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176            public com.liferay.portlet.blogs.model.BlogsEntry fetchBlogsEntry(
177                    long entryId)
178                    throws com.liferay.portal.kernel.exception.SystemException;
179    
180            /**
181            * Returns the blogs entry with the matching UUID and company.
182            *
183            * @param uuid the blogs entry's UUID
184            * @param companyId the primary key of the company
185            * @return the matching blogs entry, or <code>null</code> if a matching blogs entry could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189            public com.liferay.portlet.blogs.model.BlogsEntry fetchBlogsEntryByUuidAndCompanyId(
190                    java.lang.String uuid, long companyId)
191                    throws com.liferay.portal.kernel.exception.SystemException;
192    
193            /**
194            * Returns the blogs entry matching the UUID and group.
195            *
196            * @param uuid the blogs entry's UUID
197            * @param groupId the primary key of the group
198            * @return the matching blogs entry, or <code>null</code> if a matching blogs entry could not be found
199            * @throws SystemException if a system exception occurred
200            */
201            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202            public com.liferay.portlet.blogs.model.BlogsEntry fetchBlogsEntryByUuidAndGroupId(
203                    java.lang.String uuid, long groupId)
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            /**
207            * Returns the blogs entry with the primary key.
208            *
209            * @param entryId the primary key of the blogs entry
210            * @return the blogs entry
211            * @throws PortalException if a blogs entry with the primary key could not be found
212            * @throws SystemException if a system exception occurred
213            */
214            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215            public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
216                    long entryId)
217                    throws com.liferay.portal.kernel.exception.PortalException,
218                            com.liferay.portal.kernel.exception.SystemException;
219    
220            @Override
221            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222            public com.liferay.portal.model.PersistedModel getPersistedModel(
223                    java.io.Serializable primaryKeyObj)
224                    throws com.liferay.portal.kernel.exception.PortalException,
225                            com.liferay.portal.kernel.exception.SystemException;
226    
227            /**
228            * Returns the blogs entry with the matching UUID and company.
229            *
230            * @param uuid the blogs entry's UUID
231            * @param companyId the primary key of the company
232            * @return the matching blogs entry
233            * @throws PortalException if a matching blogs entry could not be found
234            * @throws SystemException if a system exception occurred
235            */
236            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237            public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndCompanyId(
238                    java.lang.String uuid, long companyId)
239                    throws com.liferay.portal.kernel.exception.PortalException,
240                            com.liferay.portal.kernel.exception.SystemException;
241    
242            /**
243            * Returns the blogs entry matching the UUID and group.
244            *
245            * @param uuid the blogs entry's UUID
246            * @param groupId the primary key of the group
247            * @return the matching blogs entry
248            * @throws PortalException if a matching blogs entry could not be found
249            * @throws SystemException if a system exception occurred
250            */
251            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252            public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndGroupId(
253                    java.lang.String uuid, long groupId)
254                    throws com.liferay.portal.kernel.exception.PortalException,
255                            com.liferay.portal.kernel.exception.SystemException;
256    
257            /**
258            * Returns a range of all the blogs entries.
259            *
260            * <p>
261            * 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.
262            * </p>
263            *
264            * @param start the lower bound of the range of blogs entries
265            * @param end the upper bound of the range of blogs entries (not inclusive)
266            * @return the range of blogs entries
267            * @throws SystemException if a system exception occurred
268            */
269            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
271                    int start, int end)
272                    throws com.liferay.portal.kernel.exception.SystemException;
273    
274            /**
275            * Returns the number of blogs entries.
276            *
277            * @return the number of blogs entries
278            * @throws SystemException if a system exception occurred
279            */
280            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281            public int getBlogsEntriesCount()
282                    throws com.liferay.portal.kernel.exception.SystemException;
283    
284            /**
285            * Updates the blogs entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
286            *
287            * @param blogsEntry the blogs entry
288            * @return the blogs entry that was updated
289            * @throws SystemException if a system exception occurred
290            */
291            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
292            public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
293                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
294                    throws com.liferay.portal.kernel.exception.SystemException;
295    
296            /**
297            * Returns the Spring bean ID for this bean.
298            *
299            * @return the Spring bean ID for this bean
300            */
301            public java.lang.String getBeanIdentifier();
302    
303            /**
304            * Sets the Spring bean ID for this bean.
305            *
306            * @param beanIdentifier the Spring bean ID for this bean
307            */
308            public void setBeanIdentifier(java.lang.String beanIdentifier);
309    
310            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
311            public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
312                    java.lang.String title, java.lang.String description,
313                    java.lang.String content, int displayDateMonth, int displayDateDay,
314                    int displayDateYear, int displayDateHour, int displayDateMinute,
315                    boolean allowPingbacks, boolean allowTrackbacks,
316                    java.lang.String[] trackbacks, boolean smallImage,
317                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
318                    java.io.InputStream smallImageInputStream,
319                    com.liferay.portal.service.ServiceContext serviceContext)
320                    throws com.liferay.portal.kernel.exception.PortalException,
321                            com.liferay.portal.kernel.exception.SystemException;
322    
323            public void addEntryResources(
324                    com.liferay.portlet.blogs.model.BlogsEntry entry,
325                    boolean addGroupPermissions, boolean addGuestPermissions)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException;
328    
329            public void addEntryResources(
330                    com.liferay.portlet.blogs.model.BlogsEntry entry,
331                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
332                    throws com.liferay.portal.kernel.exception.PortalException,
333                            com.liferay.portal.kernel.exception.SystemException;
334    
335            public void addEntryResources(long entryId, boolean addGroupPermissions,
336                    boolean addGuestPermissions)
337                    throws com.liferay.portal.kernel.exception.PortalException,
338                            com.liferay.portal.kernel.exception.SystemException;
339    
340            public void addEntryResources(long entryId,
341                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
342                    throws com.liferay.portal.kernel.exception.PortalException,
343                            com.liferay.portal.kernel.exception.SystemException;
344    
345            public void checkEntries()
346                    throws com.liferay.portal.kernel.exception.PortalException,
347                            com.liferay.portal.kernel.exception.SystemException;
348    
349            public void deleteEntries(long groupId)
350                    throws com.liferay.portal.kernel.exception.PortalException,
351                            com.liferay.portal.kernel.exception.SystemException;
352    
353            public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
354                    throws com.liferay.portal.kernel.exception.PortalException,
355                            com.liferay.portal.kernel.exception.SystemException;
356    
357            public void deleteEntry(long entryId)
358                    throws com.liferay.portal.kernel.exception.PortalException,
359                            com.liferay.portal.kernel.exception.SystemException;
360    
361            /**
362            * @deprecated As of 6.2.0, replaced by {@link #getCompanyEntries(long,
363            Date, QueryDefinition)}
364            */
365            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
367                    long companyId, java.util.Date displayDate, int status, int start,
368                    int end) throws com.liferay.portal.kernel.exception.SystemException;
369    
370            /**
371            * @deprecated As of 6.2.0, replaced by {@link #getCompanyEntries(long,
372            Date, QueryDefinition)}
373            */
374            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
375            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
376                    long companyId, java.util.Date displayDate, int status, int start,
377                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
378                    throws com.liferay.portal.kernel.exception.SystemException;
379    
380            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
381            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
382                    long companyId, java.util.Date displayDate,
383                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
384                    throws com.liferay.portal.kernel.exception.SystemException;
385    
386            /**
387            * @deprecated As of 6.2.0, replaced by {@link #getCompanyEntriesCount(long,
388            Date, QueryDefinition)}
389            */
390            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
391            public int getCompanyEntriesCount(long companyId,
392                    java.util.Date displayDate, int status)
393                    throws com.liferay.portal.kernel.exception.SystemException;
394    
395            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
396            public int getCompanyEntriesCount(long companyId,
397                    java.util.Date displayDate,
398                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
399                    throws com.liferay.portal.kernel.exception.SystemException;
400    
401            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
402            public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
403                    long entryId)
404                    throws com.liferay.portal.kernel.exception.PortalException,
405                            com.liferay.portal.kernel.exception.SystemException;
406    
407            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
408            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
409                    throws com.liferay.portal.kernel.exception.PortalException,
410                            com.liferay.portal.kernel.exception.SystemException;
411    
412            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
413            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
414                    java.lang.String urlTitle)
415                    throws com.liferay.portal.kernel.exception.PortalException,
416                            com.liferay.portal.kernel.exception.SystemException;
417    
418            /**
419            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntries(long, Date,
420            QueryDefinition)}
421            */
422            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
423            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
424                    long groupId, java.util.Date displayDate, int status, int start, int end)
425                    throws com.liferay.portal.kernel.exception.SystemException;
426    
427            /**
428            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntries(long, Date,
429            QueryDefinition)}
430            */
431            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
432            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
433                    long groupId, java.util.Date displayDate, int status, int start,
434                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
435                    throws com.liferay.portal.kernel.exception.SystemException;
436    
437            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
438            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
439                    long groupId, java.util.Date displayDate,
440                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
441                    throws com.liferay.portal.kernel.exception.SystemException;
442    
443            /**
444            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntries(long,
445            QueryDefinition)}
446            */
447            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
448            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
449                    long groupId, int status, int start, int end)
450                    throws com.liferay.portal.kernel.exception.SystemException;
451    
452            /**
453            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntries(long,
454            QueryDefinition)}
455            */
456            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
457            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
458                    long groupId, int status, int start, int end,
459                    com.liferay.portal.kernel.util.OrderByComparator obc)
460                    throws com.liferay.portal.kernel.exception.SystemException;
461    
462            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
463            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
464                    long groupId,
465                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
466                    throws com.liferay.portal.kernel.exception.SystemException;
467    
468            /**
469            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntriesCount(long,
470            Date, QueryDefinition)}
471            */
472            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
473            public int getGroupEntriesCount(long groupId, java.util.Date displayDate,
474                    int status) throws com.liferay.portal.kernel.exception.SystemException;
475    
476            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
477            public int getGroupEntriesCount(long groupId, java.util.Date displayDate,
478                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
479                    throws com.liferay.portal.kernel.exception.SystemException;
480    
481            /**
482            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntriesCount(long,
483            QueryDefinition)}
484            */
485            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
486            public int getGroupEntriesCount(long groupId, int status)
487                    throws com.liferay.portal.kernel.exception.SystemException;
488    
489            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
490            public int getGroupEntriesCount(long groupId,
491                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
492                    throws com.liferay.portal.kernel.exception.SystemException;
493    
494            /**
495            * @deprecated As of 6.2.0, replaced by {@link #getGroupsEntries(long, long,
496            Date, QueryDefinition)}
497            */
498            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
499            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
500                    long companyId, long groupId, java.util.Date displayDate, int status,
501                    int start, int end)
502                    throws com.liferay.portal.kernel.exception.SystemException;
503    
504            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
505            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
506                    long companyId, long groupId, java.util.Date displayDate,
507                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
508                    throws com.liferay.portal.kernel.exception.SystemException;
509    
510            /**
511            * @deprecated As of 6.2.0, replaced by {@link #getGroupUserEntries(long,
512            long, Date, QueryDefinition)}
513            */
514            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
515            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
516                    long groupId, long userId, java.util.Date displayDate, int status,
517                    int start, int end)
518                    throws com.liferay.portal.kernel.exception.SystemException;
519    
520            /**
521            * @deprecated As of 6.2.0, replaced by {@link #getGroupUserEntries(long,
522            long, Date, QueryDefinition)}
523            */
524            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
525            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
526                    long groupId, long userId, java.util.Date displayDate, int status,
527                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
528                    throws com.liferay.portal.kernel.exception.SystemException;
529    
530            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
531            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
532                    long groupId, long userId, java.util.Date displayDate,
533                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
534                    throws com.liferay.portal.kernel.exception.SystemException;
535    
536            /**
537            * @deprecated As of 6.2.0, replaced by {@link
538            #getGroupUserEntriesCount(long, long, Date, QueryDefinition)}
539            */
540            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
541            public int getGroupUserEntriesCount(long groupId, long userId,
542                    java.util.Date displayDate, int status)
543                    throws com.liferay.portal.kernel.exception.SystemException;
544    
545            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
546            public int getGroupUserEntriesCount(long groupId, long userId,
547                    java.util.Date displayDate,
548                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
549                    throws com.liferay.portal.kernel.exception.SystemException;
550    
551            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
552            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
553                    throws com.liferay.portal.kernel.exception.SystemException;
554    
555            /**
556            * @deprecated As of 6.2.0, replaced by {@link #getOrganizationEntries(long,
557            Date, QueryDefinition)}
558            */
559            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
560            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
561                    long organizationId, java.util.Date displayDate, int status, int start,
562                    int end) throws com.liferay.portal.kernel.exception.SystemException;
563    
564            /**
565            * @deprecated As of 6.2.0, replaced by {@link #getOrganizationEntries(long,
566            Date, QueryDefinition)}
567            */
568            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
569            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
570                    long organizationId, java.util.Date displayDate, int status, int start,
571                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
572                    throws com.liferay.portal.kernel.exception.SystemException;
573    
574            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
575            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
576                    long organizationId, java.util.Date displayDate,
577                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
578                    throws com.liferay.portal.kernel.exception.SystemException;
579    
580            /**
581            * @deprecated As of 6.2.0, replaced by {@link
582            #getOrganizationEntriesCount(long, Date, QueryDefinition)}
583            */
584            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
585            public int getOrganizationEntriesCount(long organizationId,
586                    java.util.Date displayDate, int status)
587                    throws com.liferay.portal.kernel.exception.SystemException;
588    
589            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
590            public int getOrganizationEntriesCount(long organizationId,
591                    java.util.Date displayDate,
592                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
593                    throws com.liferay.portal.kernel.exception.SystemException;
594    
595            public void moveEntriesToTrash(long groupId, long userId)
596                    throws com.liferay.portal.kernel.exception.PortalException,
597                            com.liferay.portal.kernel.exception.SystemException;
598    
599            /**
600            * Moves the blogs entry to the recycle bin. Social activity counters for
601            * this entry get disabled.
602            *
603            * @param userId the primary key of the user moving the blogs entry
604            * @param entry the blogs entry to be moved
605            * @return the moved blogs entry
606            * @throws PortalException if a user with the primary key could not be found
607            or if the blogs entry owner's social activity counter could not
608            be updated
609            * @throws SystemException if a system exception occurred
610            */
611            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
612            public com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
613                    long userId, com.liferay.portlet.blogs.model.BlogsEntry entry)
614                    throws com.liferay.portal.kernel.exception.PortalException,
615                            com.liferay.portal.kernel.exception.SystemException;
616    
617            /**
618            * Moves the blogs entry with the ID to the recycle bin.
619            *
620            * @param userId the primary key of the user moving the blogs entry
621            * @param entryId the primary key of the blogs entry to be moved
622            * @return the moved blogs entry
623            * @throws PortalException if a user or blogs entry with the primary key
624            could not be found or if the blogs entry owner's social activity
625            counter could not be updated
626            * @throws SystemException if a system exception occurred
627            */
628            public com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
629                    long userId, long entryId)
630                    throws com.liferay.portal.kernel.exception.PortalException,
631                            com.liferay.portal.kernel.exception.SystemException;
632    
633            /**
634            * Restores the blogs entry with the ID from the recycle bin. Social
635            * activity counters for this entry get activated.
636            *
637            * @param userId the primary key of the user restoring the blogs entry
638            * @param entryId the primary key of the blogs entry to be restored
639            * @throws PortalException if a user or blogs entry with the primary key
640            could not be found or if the blogs entry owner's social activity
641            counter could not be updated
642            * @throws SystemException if a system exception occurred
643            */
644            public void restoreEntryFromTrash(long userId, long entryId)
645                    throws com.liferay.portal.kernel.exception.PortalException,
646                            com.liferay.portal.kernel.exception.SystemException;
647    
648            public void subscribe(long userId, long groupId)
649                    throws com.liferay.portal.kernel.exception.PortalException,
650                            com.liferay.portal.kernel.exception.SystemException;
651    
652            public void unsubscribe(long userId, long groupId)
653                    throws com.liferay.portal.kernel.exception.PortalException,
654                            com.liferay.portal.kernel.exception.SystemException;
655    
656            public void updateAsset(long userId,
657                    com.liferay.portlet.blogs.model.BlogsEntry entry,
658                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
659                    long[] assetLinkEntryIds)
660                    throws com.liferay.portal.kernel.exception.PortalException,
661                            com.liferay.portal.kernel.exception.SystemException;
662    
663            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
664            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
665                    long entryId, java.lang.String title, java.lang.String description,
666                    java.lang.String content, int displayDateMonth, int displayDateDay,
667                    int displayDateYear, int displayDateHour, int displayDateMinute,
668                    boolean allowPingbacks, boolean allowTrackbacks,
669                    java.lang.String[] trackbacks, boolean smallImage,
670                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
671                    java.io.InputStream smallImageInputStream,
672                    com.liferay.portal.service.ServiceContext serviceContext)
673                    throws com.liferay.portal.kernel.exception.PortalException,
674                            com.liferay.portal.kernel.exception.SystemException;
675    
676            public void updateEntryResources(
677                    com.liferay.portlet.blogs.model.BlogsEntry entry,
678                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
679                    throws com.liferay.portal.kernel.exception.PortalException,
680                            com.liferay.portal.kernel.exception.SystemException;
681    
682            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
683            public com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
684                    long userId, long entryId, int status,
685                    com.liferay.portal.service.ServiceContext serviceContext)
686                    throws com.liferay.portal.kernel.exception.PortalException,
687                            com.liferay.portal.kernel.exception.SystemException;
688    }