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