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 a range of all the blogs entries.
273            *
274            * <p>
275            * 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.
276            * </p>
277            *
278            * @param start the lower bound of the range of blogs entries
279            * @param end the upper bound of the range of blogs entries (not inclusive)
280            * @return the range of blogs entries
281            */
282            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
284                    int start, int end);
285    
286            /**
287            * Returns all the blogs entries matching the UUID and company.
288            *
289            * @param uuid the UUID of the blogs entries
290            * @param companyId the primary key of the company
291            * @return the matching blogs entries, or an empty list if no matches were found
292            */
293            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntriesByUuidAndCompanyId(
295                    java.lang.String uuid, long companyId);
296    
297            /**
298            * Returns a range of blogs entries matching the UUID and company.
299            *
300            * @param uuid the UUID of the blogs entries
301            * @param companyId the primary key of the company
302            * @param start the lower bound of the range of blogs entries
303            * @param end the upper bound of the range of blogs entries (not inclusive)
304            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
305            * @return the range of matching blogs entries, or an empty list if no matches were found
306            */
307            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
308            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntriesByUuidAndCompanyId(
309                    java.lang.String uuid, long companyId, int start, int end,
310                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> orderByComparator);
311    
312            /**
313            * Returns the number of blogs entries.
314            *
315            * @return the number of blogs entries
316            */
317            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318            public int getBlogsEntriesCount();
319    
320            /**
321            * Returns the blogs entry with the primary key.
322            *
323            * @param entryId the primary key of the blogs entry
324            * @return the blogs entry
325            * @throws PortalException if a blogs entry with the primary key could not be found
326            */
327            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328            public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
329                    long entryId) throws PortalException;
330    
331            /**
332            * Returns the blogs entry matching the UUID and group.
333            *
334            * @param uuid the blogs entry's UUID
335            * @param groupId the primary key of the group
336            * @return the matching blogs entry
337            * @throws PortalException if a matching blogs entry could not be found
338            */
339            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
340            public com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndGroupId(
341                    java.lang.String uuid, long groupId) throws PortalException;
342    
343            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
344            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
345                    long companyId, java.util.Date displayDate,
346                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition);
347    
348            /**
349            * @deprecated As of 6.2.0, replaced by {@link #getCompanyEntries(long,
350            Date, QueryDefinition)}
351            */
352            @java.lang.Deprecated
353            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
354            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
355                    long companyId, java.util.Date displayDate, int status, int start,
356                    int end);
357    
358            /**
359            * @deprecated As of 6.2.0, replaced by {@link #getCompanyEntries(long,
360            Date, QueryDefinition)}
361            */
362            @java.lang.Deprecated
363            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
364            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
365                    long companyId, java.util.Date displayDate, int status, int start,
366                    int end,
367                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc);
368    
369            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370            public int getCompanyEntriesCount(long companyId,
371                    java.util.Date displayDate,
372                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition);
373    
374            /**
375            * @deprecated As of 6.2.0, replaced by {@link #getCompanyEntriesCount(long,
376            Date, QueryDefinition)}
377            */
378            @java.lang.Deprecated
379            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
380            public int getCompanyEntriesCount(long companyId,
381                    java.util.Date displayDate, int status);
382    
383            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
384            public com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
385                    long entryId) throws PortalException;
386    
387            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
388            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
389                    throws PortalException;
390    
391            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
392            public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
393                    java.lang.String urlTitle) throws PortalException;
394    
395            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
396            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
397                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext);
398    
399            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
400            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
401                    long groupId, java.util.Date displayDate,
402                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition);
403    
404            /**
405            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntries(long, Date,
406            QueryDefinition)}
407            */
408            @java.lang.Deprecated
409            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
410            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
411                    long groupId, java.util.Date displayDate, int status, int start, int end);
412    
413            /**
414            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntries(long, Date,
415            QueryDefinition)}
416            */
417            @java.lang.Deprecated
418            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
419            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
420                    long groupId, java.util.Date displayDate, int status, int start,
421                    int end,
422                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc);
423    
424            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
425            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
426                    long groupId,
427                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition);
428    
429            /**
430            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntries(long,
431            QueryDefinition)}
432            */
433            @java.lang.Deprecated
434            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
435            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
436                    long groupId, int status, int start, int end);
437    
438            /**
439            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntries(long,
440            QueryDefinition)}
441            */
442            @java.lang.Deprecated
443            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
444            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
445                    long groupId, int status, int start, int end,
446                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc);
447    
448            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
449            public int getGroupEntriesCount(long groupId, java.util.Date displayDate,
450                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition);
451    
452            /**
453            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntriesCount(long,
454            Date, QueryDefinition)}
455            */
456            @java.lang.Deprecated
457            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
458            public int getGroupEntriesCount(long groupId, java.util.Date displayDate,
459                    int status);
460    
461            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
462            public int getGroupEntriesCount(long groupId,
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            QueryDefinition)}
468            */
469            @java.lang.Deprecated
470            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
471            public int getGroupEntriesCount(long groupId, int status);
472    
473            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
474            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
475                    long groupId, long userId, java.util.Date displayDate,
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 #getGroupUserEntries(long,
480            long, Date, QueryDefinition)}
481            */
482            @java.lang.Deprecated
483            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
484            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
485                    long groupId, long userId, java.util.Date displayDate, int status,
486                    int start, int end);
487    
488            /**
489            * @deprecated As of 6.2.0, replaced by {@link #getGroupUserEntries(long,
490            long, Date, QueryDefinition)}
491            */
492            @java.lang.Deprecated
493            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
494            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
495                    long groupId, long userId, java.util.Date displayDate, int status,
496                    int start, int end,
497                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc);
498    
499            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
500            public int getGroupUserEntriesCount(long groupId, long userId,
501                    java.util.Date displayDate,
502                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition);
503    
504            /**
505            * @deprecated As of 6.2.0, replaced by {@link
506            #getGroupUserEntriesCount(long, long, Date, QueryDefinition)}
507            */
508            @java.lang.Deprecated
509            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
510            public int getGroupUserEntriesCount(long groupId, long userId,
511                    java.util.Date displayDate, int status);
512    
513            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
514            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
515                    long companyId, long groupId, java.util.Date displayDate,
516                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition);
517    
518            /**
519            * @deprecated As of 6.2.0, replaced by {@link #getGroupsEntries(long, long,
520            Date, QueryDefinition)}
521            */
522            @java.lang.Deprecated
523            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
524            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
525                    long companyId, long groupId, java.util.Date displayDate, int status,
526                    int start, int end);
527    
528            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
529            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries();
530    
531            /**
532            * Returns the OSGi service identifier.
533            *
534            * @return the OSGi service identifier
535            */
536            public java.lang.String getOSGiServiceIdentifier();
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            */
594            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
595            public com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
596                    long userId, com.liferay.portlet.blogs.model.BlogsEntry entry)
597                    throws PortalException;
598    
599            /**
600            * Moves the blogs entry with the ID to the recycle bin.
601            *
602            * @param userId the primary key of the user moving the blogs entry
603            * @param entryId the primary key of the blogs entry to be moved
604            * @return the moved blogs entry
605            */
606            public com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
607                    long userId, long entryId) throws PortalException;
608    
609            /**
610            * Restores the blogs entry with the ID from the recycle bin. Social
611            * activity counters for this entry get activated.
612            *
613            * @param userId the primary key of the user restoring the blogs entry
614            * @param entryId the primary key of the blogs entry to be restored
615            * @return the restored blogs entry from the recycle bin
616            */
617            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
618            public com.liferay.portlet.blogs.model.BlogsEntry restoreEntryFromTrash(
619                    long userId, long entryId) throws PortalException;
620    
621            public void subscribe(long userId, long groupId) throws PortalException;
622    
623            public void unsubscribe(long userId, long groupId)
624                    throws PortalException;
625    
626            public void updateAsset(long userId,
627                    com.liferay.portlet.blogs.model.BlogsEntry entry,
628                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
629                    long[] assetLinkEntryIds) throws PortalException;
630    
631            /**
632            * Updates the blogs entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
633            *
634            * @param blogsEntry the blogs entry
635            * @return the blogs entry that was updated
636            */
637            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
638            public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
639                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry);
640    
641            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
642                    long entryId, java.lang.String title, java.lang.String content,
643                    com.liferay.portal.service.ServiceContext serviceContext)
644                    throws PortalException;
645    
646            /**
647            * @deprecated As of 7.0.0, replaced by {@link #updateEntry(long, long,
648            String, String, String, String, int, int, int, int, int,
649            boolean, boolean, String[], String, ImageSelector,
650            ImageSelector, ServiceContext)}
651            */
652            @java.lang.Deprecated
653            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
654                    long entryId, java.lang.String title, java.lang.String description,
655                    java.lang.String content, int displayDateMonth, int displayDateDay,
656                    int displayDateYear, int displayDateHour, int displayDateMinute,
657                    boolean allowPingbacks, boolean allowTrackbacks,
658                    java.lang.String[] trackbacks, boolean smallImage,
659                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
660                    java.io.InputStream smallImageInputStream,
661                    com.liferay.portal.service.ServiceContext serviceContext)
662                    throws PortalException;
663    
664            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
665            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
666                    long entryId, java.lang.String title, java.lang.String subtitle,
667                    java.lang.String description, java.lang.String content,
668                    java.util.Date displayDate, boolean allowPingbacks,
669                    boolean allowTrackbacks, java.lang.String[] trackbacks,
670                    java.lang.String coverImageCaption,
671                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
672                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
673                    com.liferay.portal.service.ServiceContext serviceContext)
674                    throws PortalException;
675    
676            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
677                    long entryId, java.lang.String title, java.lang.String subtitle,
678                    java.lang.String description, java.lang.String content,
679                    int displayDateMonth, int displayDateDay, int displayDateYear,
680                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
681                    boolean allowTrackbacks, java.lang.String[] trackbacks,
682                    java.lang.String coverImageCaption,
683                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
684                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
685                    com.liferay.portal.service.ServiceContext serviceContext)
686                    throws PortalException;
687    
688            public void updateEntryResources(
689                    com.liferay.portlet.blogs.model.BlogsEntry entry,
690                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
691                    throws PortalException;
692    
693            public void updateEntryResources(
694                    com.liferay.portlet.blogs.model.BlogsEntry entry,
695                    com.liferay.portal.service.permission.ModelPermissions modelPermissions)
696                    throws PortalException;
697    
698            /**
699            * @deprecated As of 7.0.0, replaced by {@link #updateStatus(long, long,
700            int, ServiceContext, Map)}
701            */
702            @java.lang.Deprecated
703            public com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
704                    long userId, long entryId, int status,
705                    com.liferay.portal.service.ServiceContext serviceContext)
706                    throws PortalException;
707    
708            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
709            public com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
710                    long userId, long entryId, int status,
711                    com.liferay.portal.service.ServiceContext serviceContext,
712                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
713                    throws PortalException;
714    }