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