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            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
362            public int getCompanyEntriesCount(long companyId,
363                    java.util.Date displayDate,
364                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition);
365    
366            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
367            public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
368                    long entryId) throws PortalException;
369    
370            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
371            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
372                    throws PortalException;
373    
374            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
375            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
376                    java.lang.String urlTitle) throws PortalException;
377    
378            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
379            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
380                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext);
381    
382            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
383            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
384                    long groupId, java.util.Date displayDate,
385                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition);
386    
387            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
388            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
389                    long groupId,
390                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition);
391    
392            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
393            public int getGroupEntriesCount(long groupId, java.util.Date displayDate,
394                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition);
395    
396            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
397            public int getGroupEntriesCount(long groupId,
398                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition);
399    
400            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
401            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
402                    long groupId, long userId, java.util.Date displayDate,
403                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition);
404    
405            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
406            public int getGroupUserEntriesCount(long groupId, long userId,
407                    java.util.Date displayDate,
408                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition);
409    
410            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
411            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
412                    long companyId, long groupId, java.util.Date displayDate,
413                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition);
414    
415            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
416            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery();
417    
418            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
419            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries();
420    
421            /**
422            * Returns the OSGi service identifier.
423            *
424            * @return the OSGi service identifier
425            */
426            public java.lang.String getOSGiServiceIdentifier();
427    
428            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
429            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
430                    long organizationId, java.util.Date displayDate,
431                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition);
432    
433            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
434            public int getOrganizationEntriesCount(long organizationId,
435                    java.util.Date displayDate,
436                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition);
437    
438            @Override
439            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
440            public com.liferay.portal.model.PersistedModel getPersistedModel(
441                    java.io.Serializable primaryKeyObj) throws PortalException;
442    
443            public void moveEntriesToTrash(long groupId, long userId)
444                    throws PortalException;
445    
446            /**
447            * Moves the blogs entry to the recycle bin. Social activity counters for
448            * this entry get disabled.
449            *
450            * @param userId the primary key of the user moving the blogs entry
451            * @param entry the blogs entry to be moved
452            * @return the moved blogs entry
453            */
454            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
455            public com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
456                    long userId, com.liferay.portlet.blogs.model.BlogsEntry entry)
457                    throws PortalException;
458    
459            /**
460            * Moves the blogs entry with the ID to the recycle bin.
461            *
462            * @param userId the primary key of the user moving the blogs entry
463            * @param entryId the primary key of the blogs entry to be moved
464            * @return the moved blogs entry
465            */
466            public com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
467                    long userId, long entryId) throws PortalException;
468    
469            /**
470            * Restores the blogs entry with the ID from the recycle bin. Social
471            * activity counters for this entry get activated.
472            *
473            * @param userId the primary key of the user restoring the blogs entry
474            * @param entryId the primary key of the blogs entry to be restored
475            * @return the restored blogs entry from the recycle bin
476            */
477            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
478            public com.liferay.portlet.blogs.model.BlogsEntry restoreEntryFromTrash(
479                    long userId, long entryId) throws PortalException;
480    
481            public void subscribe(long userId, long groupId) throws PortalException;
482    
483            public void unsubscribe(long userId, long groupId)
484                    throws PortalException;
485    
486            public void updateAsset(long userId,
487                    com.liferay.portlet.blogs.model.BlogsEntry entry,
488                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
489                    long[] assetLinkEntryIds, java.lang.Double priority)
490                    throws PortalException;
491    
492            /**
493            * Updates the blogs entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
494            *
495            * @param blogsEntry the blogs entry
496            * @return the blogs entry that was updated
497            */
498            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
499            public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
500                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry);
501    
502            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
503                    long entryId, java.lang.String title, java.lang.String content,
504                    com.liferay.portal.service.ServiceContext serviceContext)
505                    throws PortalException;
506    
507            /**
508            * @deprecated As of 7.0.0, replaced by {@link #updateEntry(long, long,
509            String, String, String, String, int, int, int, int, int,
510            boolean, boolean, String[], String, ImageSelector,
511            ImageSelector, ServiceContext)}
512            */
513            @java.lang.Deprecated
514            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
515                    long entryId, java.lang.String title, java.lang.String description,
516                    java.lang.String content, int displayDateMonth, int displayDateDay,
517                    int displayDateYear, int displayDateHour, int displayDateMinute,
518                    boolean allowPingbacks, boolean allowTrackbacks,
519                    java.lang.String[] trackbacks, boolean smallImage,
520                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
521                    java.io.InputStream smallImageInputStream,
522                    com.liferay.portal.service.ServiceContext serviceContext)
523                    throws PortalException;
524    
525            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
526            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
527                    long entryId, java.lang.String title, java.lang.String subtitle,
528                    java.lang.String description, java.lang.String content,
529                    java.util.Date displayDate, boolean allowPingbacks,
530                    boolean allowTrackbacks, java.lang.String[] trackbacks,
531                    java.lang.String coverImageCaption,
532                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
533                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
534                    com.liferay.portal.service.ServiceContext serviceContext)
535                    throws PortalException;
536    
537            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
538                    long entryId, java.lang.String title, java.lang.String subtitle,
539                    java.lang.String description, java.lang.String content,
540                    int displayDateMonth, int displayDateDay, int displayDateYear,
541                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
542                    boolean allowTrackbacks, java.lang.String[] trackbacks,
543                    java.lang.String coverImageCaption,
544                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
545                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
546                    com.liferay.portal.service.ServiceContext serviceContext)
547                    throws PortalException;
548    
549            public void updateEntryResources(
550                    com.liferay.portlet.blogs.model.BlogsEntry entry,
551                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
552                    throws PortalException;
553    
554            public void updateEntryResources(
555                    com.liferay.portlet.blogs.model.BlogsEntry entry,
556                    com.liferay.portal.service.permission.ModelPermissions modelPermissions)
557                    throws PortalException;
558    
559            /**
560            * @deprecated As of 7.0.0, replaced by {@link #updateStatus(long, long,
561            int, ServiceContext, Map)}
562            */
563            @java.lang.Deprecated
564            public com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
565                    long userId, long entryId, int status,
566                    com.liferay.portal.service.ServiceContext serviceContext)
567                    throws PortalException;
568    
569            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
570            public com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
571                    long userId, long entryId, int status,
572                    com.liferay.portal.service.ServiceContext serviceContext,
573                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
574                    throws PortalException;
575    }