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 com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery();
530    
531            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
532            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries();
533    
534            /**
535            * Returns the OSGi service identifier.
536            *
537            * @return the OSGi service identifier
538            */
539            public java.lang.String getOSGiServiceIdentifier();
540    
541            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
542            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
543                    long organizationId, java.util.Date displayDate,
544                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition);
545    
546            /**
547            * @deprecated As of 6.2.0, replaced by {@link #getOrganizationEntries(long,
548            Date, QueryDefinition)}
549            */
550            @java.lang.Deprecated
551            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
552            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
553                    long organizationId, java.util.Date displayDate, int status, int start,
554                    int end);
555    
556            /**
557            * @deprecated As of 6.2.0, replaced by {@link #getOrganizationEntries(long,
558            Date, QueryDefinition)}
559            */
560            @java.lang.Deprecated
561            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
562            public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
563                    long organizationId, java.util.Date displayDate, int status, int start,
564                    int end,
565                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc);
566    
567            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
568            public int getOrganizationEntriesCount(long organizationId,
569                    java.util.Date displayDate,
570                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition);
571    
572            /**
573            * @deprecated As of 6.2.0, replaced by {@link
574            #getOrganizationEntriesCount(long, Date, QueryDefinition)}
575            */
576            @java.lang.Deprecated
577            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
578            public int getOrganizationEntriesCount(long organizationId,
579                    java.util.Date displayDate, int status);
580    
581            @Override
582            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
583            public com.liferay.portal.model.PersistedModel getPersistedModel(
584                    java.io.Serializable primaryKeyObj) throws PortalException;
585    
586            public void moveEntriesToTrash(long groupId, long userId)
587                    throws PortalException;
588    
589            /**
590            * Moves the blogs entry to the recycle bin. Social activity counters for
591            * this entry get disabled.
592            *
593            * @param userId the primary key of the user moving the blogs entry
594            * @param entry the blogs entry to be moved
595            * @return the moved blogs entry
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            */
609            public com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
610                    long userId, long entryId) throws PortalException;
611    
612            /**
613            * Restores the blogs entry with the ID from the recycle bin. Social
614            * activity counters for this entry get activated.
615            *
616            * @param userId the primary key of the user restoring the blogs entry
617            * @param entryId the primary key of the blogs entry to be restored
618            * @return the restored blogs entry from the recycle bin
619            */
620            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
621            public com.liferay.portlet.blogs.model.BlogsEntry restoreEntryFromTrash(
622                    long userId, long entryId) throws PortalException;
623    
624            public void subscribe(long userId, long groupId) throws PortalException;
625    
626            public void unsubscribe(long userId, long groupId)
627                    throws PortalException;
628    
629            public void updateAsset(long userId,
630                    com.liferay.portlet.blogs.model.BlogsEntry entry,
631                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
632                    long[] assetLinkEntryIds) throws PortalException;
633    
634            /**
635            * Updates the blogs entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
636            *
637            * @param blogsEntry the blogs entry
638            * @return the blogs entry that was updated
639            */
640            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
641            public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
642                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry);
643    
644            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
645                    long entryId, java.lang.String title, java.lang.String content,
646                    com.liferay.portal.service.ServiceContext serviceContext)
647                    throws PortalException;
648    
649            /**
650            * @deprecated As of 7.0.0, replaced by {@link #updateEntry(long, long,
651            String, String, String, String, int, int, int, int, int,
652            boolean, boolean, String[], String, ImageSelector,
653            ImageSelector, ServiceContext)}
654            */
655            @java.lang.Deprecated
656            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
657                    long entryId, java.lang.String title, java.lang.String description,
658                    java.lang.String content, int displayDateMonth, int displayDateDay,
659                    int displayDateYear, int displayDateHour, int displayDateMinute,
660                    boolean allowPingbacks, boolean allowTrackbacks,
661                    java.lang.String[] trackbacks, boolean smallImage,
662                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
663                    java.io.InputStream smallImageInputStream,
664                    com.liferay.portal.service.ServiceContext serviceContext)
665                    throws PortalException;
666    
667            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
668            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
669                    long entryId, java.lang.String title, java.lang.String subtitle,
670                    java.lang.String description, java.lang.String content,
671                    java.util.Date displayDate, boolean allowPingbacks,
672                    boolean allowTrackbacks, java.lang.String[] trackbacks,
673                    java.lang.String coverImageCaption,
674                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
675                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
676                    com.liferay.portal.service.ServiceContext serviceContext)
677                    throws PortalException;
678    
679            public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
680                    long entryId, java.lang.String title, java.lang.String subtitle,
681                    java.lang.String description, java.lang.String content,
682                    int displayDateMonth, int displayDateDay, int displayDateYear,
683                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
684                    boolean allowTrackbacks, java.lang.String[] trackbacks,
685                    java.lang.String coverImageCaption,
686                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
687                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
688                    com.liferay.portal.service.ServiceContext serviceContext)
689                    throws PortalException;
690    
691            public void updateEntryResources(
692                    com.liferay.portlet.blogs.model.BlogsEntry entry,
693                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
694                    throws PortalException;
695    
696            public void updateEntryResources(
697                    com.liferay.portlet.blogs.model.BlogsEntry entry,
698                    com.liferay.portal.service.permission.ModelPermissions modelPermissions)
699                    throws PortalException;
700    
701            /**
702            * @deprecated As of 7.0.0, replaced by {@link #updateStatus(long, long,
703            int, ServiceContext, Map)}
704            */
705            @java.lang.Deprecated
706            public com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
707                    long userId, long entryId, int status,
708                    com.liferay.portal.service.ServiceContext serviceContext)
709                    throws PortalException;
710    
711            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
712            public com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
713                    long userId, long entryId, int status,
714                    com.liferay.portal.service.ServiceContext serviceContext,
715                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
716                    throws PortalException;
717    }