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