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