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.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the local service utility for BlogsEntry. This utility wraps
024     * {@link com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on the local server. Methods of this service will not have security checks
027     * based on the propagated JAAS credentials because this service can only be
028     * accessed from within the same VM.
029     *
030     * @author Brian Wing Shun Chan
031     * @see BlogsEntryLocalService
032     * @see com.liferay.portlet.blogs.service.base.BlogsEntryLocalServiceBaseImpl
033     * @see com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class BlogsEntryLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043            public static com.liferay.portal.kernel.repository.model.Folder addAttachmentsFolder(
044                    long userId, long groupId)
045                    throws com.liferay.portal.kernel.exception.PortalException {
046                    return getService().addAttachmentsFolder(userId, groupId);
047            }
048    
049            /**
050            * Adds the blogs entry to the database. Also notifies the appropriate model listeners.
051            *
052            * @param blogsEntry the blogs entry
053            * @return the blogs entry that was added
054            */
055            public static com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
056                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry) {
057                    return getService().addBlogsEntry(blogsEntry);
058            }
059    
060            public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
061                    long userId, java.lang.String title, java.lang.String content,
062                    java.util.Date displayDate,
063                    com.liferay.portal.service.ServiceContext serviceContext)
064                    throws com.liferay.portal.kernel.exception.PortalException {
065                    return getService()
066                                       .addEntry(userId, title, content, displayDate, serviceContext);
067            }
068    
069            public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
070                    long userId, java.lang.String title, java.lang.String content,
071                    com.liferay.portal.service.ServiceContext serviceContext)
072                    throws com.liferay.portal.kernel.exception.PortalException {
073                    return getService().addEntry(userId, title, content, serviceContext);
074            }
075    
076            /**
077            * @deprecated As of 7.0.0, replaced by {@link #addEntry(long, String,
078            String, String, String, int, int, int, int, int, boolean,
079            boolean, String[], String, ImageSelector, ImageSelector,
080            ServiceContext)}
081            */
082            @Deprecated
083            public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
084                    long userId, java.lang.String title, java.lang.String description,
085                    java.lang.String content, int displayDateMonth, int displayDateDay,
086                    int displayDateYear, int displayDateHour, int displayDateMinute,
087                    boolean allowPingbacks, boolean allowTrackbacks,
088                    java.lang.String[] trackbacks, boolean smallImage,
089                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
090                    java.io.InputStream smallImageInputStream,
091                    com.liferay.portal.service.ServiceContext serviceContext)
092                    throws com.liferay.portal.kernel.exception.PortalException {
093                    return getService()
094                                       .addEntry(userId, title, description, content,
095                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
096                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
097                            smallImage, smallImageURL, smallImageFileName,
098                            smallImageInputStream, serviceContext);
099            }
100    
101            public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
102                    long userId, java.lang.String title, java.lang.String subtitle,
103                    java.lang.String description, java.lang.String content,
104                    java.util.Date displayDate, boolean allowPingbacks,
105                    boolean allowTrackbacks, java.lang.String[] trackbacks,
106                    java.lang.String coverImageCaption,
107                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
108                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
109                    com.liferay.portal.service.ServiceContext serviceContext)
110                    throws com.liferay.portal.kernel.exception.PortalException {
111                    return getService()
112                                       .addEntry(userId, title, subtitle, description, content,
113                            displayDate, allowPingbacks, allowTrackbacks, trackbacks,
114                            coverImageCaption, coverImageImageSelector,
115                            smallImageImageSelector, serviceContext);
116            }
117    
118            public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
119                    long userId, java.lang.String title, java.lang.String subtitle,
120                    java.lang.String description, java.lang.String content,
121                    int displayDateMonth, int displayDateDay, int displayDateYear,
122                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
123                    boolean allowTrackbacks, java.lang.String[] trackbacks,
124                    java.lang.String coverImageCaption,
125                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
126                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
127                    com.liferay.portal.service.ServiceContext serviceContext)
128                    throws com.liferay.portal.kernel.exception.PortalException {
129                    return getService()
130                                       .addEntry(userId, title, subtitle, description, content,
131                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
132                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
133                            coverImageCaption, coverImageImageSelector,
134                            smallImageImageSelector, serviceContext);
135            }
136    
137            public static void addEntryResources(
138                    com.liferay.portlet.blogs.model.BlogsEntry entry,
139                    boolean addGroupPermissions, boolean addGuestPermissions)
140                    throws com.liferay.portal.kernel.exception.PortalException {
141                    getService()
142                            .addEntryResources(entry, addGroupPermissions, addGuestPermissions);
143            }
144    
145            public static void addEntryResources(
146                    com.liferay.portlet.blogs.model.BlogsEntry entry,
147                    com.liferay.portal.service.permission.ModelPermissions modelPermissions)
148                    throws com.liferay.portal.kernel.exception.PortalException {
149                    getService().addEntryResources(entry, modelPermissions);
150            }
151    
152            public static void addEntryResources(long entryId,
153                    boolean addGroupPermissions, boolean addGuestPermissions)
154                    throws com.liferay.portal.kernel.exception.PortalException {
155                    getService()
156                            .addEntryResources(entryId, addGroupPermissions, addGuestPermissions);
157            }
158    
159            public static void addEntryResources(long entryId,
160                    com.liferay.portal.service.permission.ModelPermissions modelPermissions)
161                    throws com.liferay.portal.kernel.exception.PortalException {
162                    getService().addEntryResources(entryId, modelPermissions);
163            }
164    
165            public static void checkEntries()
166                    throws com.liferay.portal.kernel.exception.PortalException {
167                    getService().checkEntries();
168            }
169    
170            /**
171            * Creates a new blogs entry with the primary key. Does not add the blogs entry to the database.
172            *
173            * @param entryId the primary key for the new blogs entry
174            * @return the new blogs entry
175            */
176            public static com.liferay.portlet.blogs.model.BlogsEntry createBlogsEntry(
177                    long entryId) {
178                    return getService().createBlogsEntry(entryId);
179            }
180    
181            /**
182            * Deletes the blogs entry from the database. Also notifies the appropriate model listeners.
183            *
184            * @param blogsEntry the blogs entry
185            * @return the blogs entry that was removed
186            */
187            public static com.liferay.portlet.blogs.model.BlogsEntry deleteBlogsEntry(
188                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry) {
189                    return getService().deleteBlogsEntry(blogsEntry);
190            }
191    
192            /**
193            * Deletes the blogs entry with the primary key from the database. Also notifies the appropriate model listeners.
194            *
195            * @param entryId the primary key of the blogs entry
196            * @return the blogs entry that was removed
197            * @throws PortalException if a blogs entry with the primary key could not be found
198            */
199            public static com.liferay.portlet.blogs.model.BlogsEntry deleteBlogsEntry(
200                    long entryId)
201                    throws com.liferay.portal.kernel.exception.PortalException {
202                    return getService().deleteBlogsEntry(entryId);
203            }
204    
205            public static void deleteEntries(long groupId)
206                    throws com.liferay.portal.kernel.exception.PortalException {
207                    getService().deleteEntries(groupId);
208            }
209    
210            public static com.liferay.portlet.blogs.model.BlogsEntry deleteEntry(
211                    com.liferay.portlet.blogs.model.BlogsEntry entry)
212                    throws com.liferay.portal.kernel.exception.PortalException {
213                    return getService().deleteEntry(entry);
214            }
215    
216            public static void deleteEntry(long entryId)
217                    throws com.liferay.portal.kernel.exception.PortalException {
218                    getService().deleteEntry(entryId);
219            }
220    
221            /**
222            * @throws PortalException
223            */
224            public static com.liferay.portal.model.PersistedModel deletePersistedModel(
225                    com.liferay.portal.model.PersistedModel persistedModel)
226                    throws com.liferay.portal.kernel.exception.PortalException {
227                    return getService().deletePersistedModel(persistedModel);
228            }
229    
230            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
231                    return getService().dynamicQuery();
232            }
233    
234            /**
235            * Performs a dynamic query on the database and returns the matching rows.
236            *
237            * @param dynamicQuery the dynamic query
238            * @return the matching rows
239            */
240            public static <T> java.util.List<T> dynamicQuery(
241                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
242                    return getService().dynamicQuery(dynamicQuery);
243            }
244    
245            /**
246            * Performs a dynamic query on the database and returns a range of the matching rows.
247            *
248            * <p>
249            * 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.
250            * </p>
251            *
252            * @param dynamicQuery the dynamic query
253            * @param start the lower bound of the range of model instances
254            * @param end the upper bound of the range of model instances (not inclusive)
255            * @return the range of matching rows
256            */
257            public static <T> java.util.List<T> dynamicQuery(
258                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
259                    int end) {
260                    return getService().dynamicQuery(dynamicQuery, start, end);
261            }
262    
263            /**
264            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
265            *
266            * <p>
267            * 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.
268            * </p>
269            *
270            * @param dynamicQuery the dynamic query
271            * @param start the lower bound of the range of model instances
272            * @param end the upper bound of the range of model instances (not inclusive)
273            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
274            * @return the ordered range of matching rows
275            */
276            public static <T> java.util.List<T> dynamicQuery(
277                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
278                    int end,
279                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
280                    return getService()
281                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
282            }
283    
284            /**
285            * Returns the number of rows matching the dynamic query.
286            *
287            * @param dynamicQuery the dynamic query
288            * @return the number of rows matching the dynamic query
289            */
290            public static long dynamicQueryCount(
291                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
292                    return getService().dynamicQueryCount(dynamicQuery);
293            }
294    
295            /**
296            * Returns the number of rows matching the dynamic query.
297            *
298            * @param dynamicQuery the dynamic query
299            * @param projection the projection to apply to the query
300            * @return the number of rows matching the dynamic query
301            */
302            public static long dynamicQueryCount(
303                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
304                    com.liferay.portal.kernel.dao.orm.Projection projection) {
305                    return getService().dynamicQueryCount(dynamicQuery, projection);
306            }
307    
308            public static com.liferay.portal.kernel.repository.model.Folder fetchAttachmentsFolder(
309                    long userId, long groupId) {
310                    return getService().fetchAttachmentsFolder(userId, groupId);
311            }
312    
313            public static com.liferay.portlet.blogs.model.BlogsEntry fetchBlogsEntry(
314                    long entryId) {
315                    return getService().fetchBlogsEntry(entryId);
316            }
317    
318            /**
319            * Returns the blogs entry matching the UUID and group.
320            *
321            * @param uuid the blogs entry's UUID
322            * @param groupId the primary key of the group
323            * @return the matching blogs entry, or <code>null</code> if a matching blogs entry could not be found
324            */
325            public static com.liferay.portlet.blogs.model.BlogsEntry fetchBlogsEntryByUuidAndGroupId(
326                    java.lang.String uuid, long groupId) {
327                    return getService().fetchBlogsEntryByUuidAndGroupId(uuid, groupId);
328            }
329    
330            public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
331                    return getService().getActionableDynamicQuery();
332            }
333    
334            /**
335            * Returns the Spring bean ID for this bean.
336            *
337            * @return the Spring bean ID for this bean
338            */
339            public static java.lang.String getBeanIdentifier() {
340                    return getService().getBeanIdentifier();
341            }
342    
343            /**
344            * Returns a range of all the blogs entries.
345            *
346            * <p>
347            * 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.
348            * </p>
349            *
350            * @param start the lower bound of the range of blogs entries
351            * @param end the upper bound of the range of blogs entries (not inclusive)
352            * @return the range of blogs entries
353            */
354            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntries(
355                    int start, int end) {
356                    return getService().getBlogsEntries(start, end);
357            }
358    
359            /**
360            * Returns all the blogs entries matching the UUID and company.
361            *
362            * @param uuid the UUID of the blogs entries
363            * @param companyId the primary key of the company
364            * @return the matching blogs entries, or an empty list if no matches were found
365            */
366            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntriesByUuidAndCompanyId(
367                    java.lang.String uuid, long companyId) {
368                    return getService().getBlogsEntriesByUuidAndCompanyId(uuid, companyId);
369            }
370    
371            /**
372            * Returns a range of blogs entries matching the UUID and company.
373            *
374            * @param uuid the UUID of the blogs entries
375            * @param companyId the primary key of the company
376            * @param start the lower bound of the range of blogs entries
377            * @param end the upper bound of the range of blogs entries (not inclusive)
378            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
379            * @return the range of matching blogs entries, or an empty list if no matches were found
380            */
381            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getBlogsEntriesByUuidAndCompanyId(
382                    java.lang.String uuid, long companyId, int start, int end,
383                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> orderByComparator) {
384                    return getService()
385                                       .getBlogsEntriesByUuidAndCompanyId(uuid, companyId, start,
386                            end, orderByComparator);
387            }
388    
389            /**
390            * Returns the number of blogs entries.
391            *
392            * @return the number of blogs entries
393            */
394            public static int getBlogsEntriesCount() {
395                    return getService().getBlogsEntriesCount();
396            }
397    
398            /**
399            * Returns the blogs entry with the primary key.
400            *
401            * @param entryId the primary key of the blogs entry
402            * @return the blogs entry
403            * @throws PortalException if a blogs entry with the primary key could not be found
404            */
405            public static com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntry(
406                    long entryId)
407                    throws com.liferay.portal.kernel.exception.PortalException {
408                    return getService().getBlogsEntry(entryId);
409            }
410    
411            /**
412            * Returns the blogs entry matching the UUID and group.
413            *
414            * @param uuid the blogs entry's UUID
415            * @param groupId the primary key of the group
416            * @return the matching blogs entry
417            * @throws PortalException if a matching blogs entry could not be found
418            */
419            public static com.liferay.portlet.blogs.model.BlogsEntry getBlogsEntryByUuidAndGroupId(
420                    java.lang.String uuid, long groupId)
421                    throws com.liferay.portal.kernel.exception.PortalException {
422                    return getService().getBlogsEntryByUuidAndGroupId(uuid, groupId);
423            }
424    
425            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
426                    long companyId, java.util.Date displayDate,
427                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
428                    return getService()
429                                       .getCompanyEntries(companyId, displayDate, queryDefinition);
430            }
431    
432            /**
433            * @deprecated As of 6.2.0, replaced by {@link #getCompanyEntries(long,
434            Date, QueryDefinition)}
435            */
436            @Deprecated
437            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
438                    long companyId, java.util.Date displayDate, int status, int start,
439                    int end) {
440                    return getService()
441                                       .getCompanyEntries(companyId, displayDate, status, start, end);
442            }
443    
444            /**
445            * @deprecated As of 6.2.0, replaced by {@link #getCompanyEntries(long,
446            Date, QueryDefinition)}
447            */
448            @Deprecated
449            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
450                    long companyId, java.util.Date displayDate, int status, int start,
451                    int end,
452                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc) {
453                    return getService()
454                                       .getCompanyEntries(companyId, displayDate, status, start,
455                            end, obc);
456            }
457    
458            public static int getCompanyEntriesCount(long companyId,
459                    java.util.Date displayDate,
460                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
461                    return getService()
462                                       .getCompanyEntriesCount(companyId, displayDate,
463                            queryDefinition);
464            }
465    
466            /**
467            * @deprecated As of 6.2.0, replaced by {@link #getCompanyEntriesCount(long,
468            Date, QueryDefinition)}
469            */
470            @Deprecated
471            public static int getCompanyEntriesCount(long companyId,
472                    java.util.Date displayDate, int status) {
473                    return getService()
474                                       .getCompanyEntriesCount(companyId, displayDate, status);
475            }
476    
477            public static com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
478                    long entryId)
479                    throws com.liferay.portal.kernel.exception.PortalException {
480                    return getService().getEntriesPrevAndNext(entryId);
481            }
482    
483            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
484                    long entryId)
485                    throws com.liferay.portal.kernel.exception.PortalException {
486                    return getService().getEntry(entryId);
487            }
488    
489            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
490                    long groupId, java.lang.String urlTitle)
491                    throws com.liferay.portal.kernel.exception.PortalException {
492                    return getService().getEntry(groupId, urlTitle);
493            }
494    
495            public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
496                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
497                    return getService().getExportActionableDynamicQuery(portletDataContext);
498            }
499    
500            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
501                    long groupId, java.util.Date displayDate,
502                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
503                    return getService()
504                                       .getGroupEntries(groupId, displayDate, queryDefinition);
505            }
506    
507            /**
508            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntries(long, Date,
509            QueryDefinition)}
510            */
511            @Deprecated
512            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
513                    long groupId, java.util.Date displayDate, int status, int start, int end) {
514                    return getService()
515                                       .getGroupEntries(groupId, displayDate, status, start, end);
516            }
517    
518            /**
519            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntries(long, Date,
520            QueryDefinition)}
521            */
522            @Deprecated
523            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
524                    long groupId, java.util.Date displayDate, int status, int start,
525                    int end,
526                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc) {
527                    return getService()
528                                       .getGroupEntries(groupId, displayDate, status, start, end,
529                            obc);
530            }
531    
532            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
533                    long groupId,
534                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
535                    return getService().getGroupEntries(groupId, queryDefinition);
536            }
537    
538            /**
539            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntries(long,
540            QueryDefinition)}
541            */
542            @Deprecated
543            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
544                    long groupId, int status, int start, int end) {
545                    return getService().getGroupEntries(groupId, status, start, end);
546            }
547    
548            /**
549            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntries(long,
550            QueryDefinition)}
551            */
552            @Deprecated
553            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
554                    long groupId, int status, int start, int end,
555                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc) {
556                    return getService().getGroupEntries(groupId, status, start, end, obc);
557            }
558    
559            public static int getGroupEntriesCount(long groupId,
560                    java.util.Date displayDate,
561                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
562                    return getService()
563                                       .getGroupEntriesCount(groupId, displayDate, queryDefinition);
564            }
565    
566            /**
567            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntriesCount(long,
568            Date, QueryDefinition)}
569            */
570            @Deprecated
571            public static int getGroupEntriesCount(long groupId,
572                    java.util.Date displayDate, int status) {
573                    return getService().getGroupEntriesCount(groupId, displayDate, status);
574            }
575    
576            public static int getGroupEntriesCount(long groupId,
577                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
578                    return getService().getGroupEntriesCount(groupId, queryDefinition);
579            }
580    
581            /**
582            * @deprecated As of 6.2.0, replaced by {@link #getGroupEntriesCount(long,
583            QueryDefinition)}
584            */
585            @Deprecated
586            public static int getGroupEntriesCount(long groupId, int status) {
587                    return getService().getGroupEntriesCount(groupId, status);
588            }
589    
590            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
591                    long groupId, long userId, java.util.Date displayDate,
592                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
593                    return getService()
594                                       .getGroupUserEntries(groupId, userId, displayDate,
595                            queryDefinition);
596            }
597    
598            /**
599            * @deprecated As of 6.2.0, replaced by {@link #getGroupUserEntries(long,
600            long, Date, QueryDefinition)}
601            */
602            @Deprecated
603            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
604                    long groupId, long userId, java.util.Date displayDate, int status,
605                    int start, int end) {
606                    return getService()
607                                       .getGroupUserEntries(groupId, userId, displayDate, status,
608                            start, end);
609            }
610    
611            /**
612            * @deprecated As of 6.2.0, replaced by {@link #getGroupUserEntries(long,
613            long, Date, QueryDefinition)}
614            */
615            @Deprecated
616            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
617                    long groupId, long userId, java.util.Date displayDate, int status,
618                    int start, int end,
619                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc) {
620                    return getService()
621                                       .getGroupUserEntries(groupId, userId, displayDate, status,
622                            start, end, obc);
623            }
624    
625            public static int getGroupUserEntriesCount(long groupId, long userId,
626                    java.util.Date displayDate,
627                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
628                    return getService()
629                                       .getGroupUserEntriesCount(groupId, userId, displayDate,
630                            queryDefinition);
631            }
632    
633            /**
634            * @deprecated As of 6.2.0, replaced by {@link
635            #getGroupUserEntriesCount(long, long, Date, QueryDefinition)}
636            */
637            @Deprecated
638            public static int getGroupUserEntriesCount(long groupId, long userId,
639                    java.util.Date displayDate, int status) {
640                    return getService()
641                                       .getGroupUserEntriesCount(groupId, userId, displayDate,
642                            status);
643            }
644    
645            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
646                    long companyId, long groupId, java.util.Date displayDate,
647                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
648                    return getService()
649                                       .getGroupsEntries(companyId, groupId, displayDate,
650                            queryDefinition);
651            }
652    
653            /**
654            * @deprecated As of 6.2.0, replaced by {@link #getGroupsEntries(long, long,
655            Date, QueryDefinition)}
656            */
657            @Deprecated
658            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
659                    long companyId, long groupId, java.util.Date displayDate, int status,
660                    int start, int end) {
661                    return getService()
662                                       .getGroupsEntries(companyId, groupId, displayDate, status,
663                            start, end);
664            }
665    
666            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries() {
667                    return getService().getNoAssetEntries();
668            }
669    
670            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
671                    long organizationId, java.util.Date displayDate,
672                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
673                    return getService()
674                                       .getOrganizationEntries(organizationId, displayDate,
675                            queryDefinition);
676            }
677    
678            /**
679            * @deprecated As of 6.2.0, replaced by {@link #getOrganizationEntries(long,
680            Date, QueryDefinition)}
681            */
682            @Deprecated
683            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
684                    long organizationId, java.util.Date displayDate, int status, int start,
685                    int end) {
686                    return getService()
687                                       .getOrganizationEntries(organizationId, displayDate, status,
688                            start, end);
689            }
690    
691            /**
692            * @deprecated As of 6.2.0, replaced by {@link #getOrganizationEntries(long,
693            Date, QueryDefinition)}
694            */
695            @Deprecated
696            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
697                    long organizationId, java.util.Date displayDate, int status, int start,
698                    int end,
699                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc) {
700                    return getService()
701                                       .getOrganizationEntries(organizationId, displayDate, status,
702                            start, end, obc);
703            }
704    
705            public static int getOrganizationEntriesCount(long organizationId,
706                    java.util.Date displayDate,
707                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
708                    return getService()
709                                       .getOrganizationEntriesCount(organizationId, displayDate,
710                            queryDefinition);
711            }
712    
713            /**
714            * @deprecated As of 6.2.0, replaced by {@link
715            #getOrganizationEntriesCount(long, Date, QueryDefinition)}
716            */
717            @Deprecated
718            public static int getOrganizationEntriesCount(long organizationId,
719                    java.util.Date displayDate, int status) {
720                    return getService()
721                                       .getOrganizationEntriesCount(organizationId, displayDate,
722                            status);
723            }
724    
725            public static com.liferay.portal.model.PersistedModel getPersistedModel(
726                    java.io.Serializable primaryKeyObj)
727                    throws com.liferay.portal.kernel.exception.PortalException {
728                    return getService().getPersistedModel(primaryKeyObj);
729            }
730    
731            public static void moveEntriesToTrash(long groupId, long userId)
732                    throws com.liferay.portal.kernel.exception.PortalException {
733                    getService().moveEntriesToTrash(groupId, userId);
734            }
735    
736            /**
737            * Moves the blogs entry to the recycle bin. Social activity counters for
738            * this entry get disabled.
739            *
740            * @param userId the primary key of the user moving the blogs entry
741            * @param entry the blogs entry to be moved
742            * @return the moved blogs entry
743            * @throws PortalException if a user with the primary key could not be found
744            or if the blogs entry owner's social activity counter could not
745            be updated
746            */
747            public static com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
748                    long userId, com.liferay.portlet.blogs.model.BlogsEntry entry)
749                    throws com.liferay.portal.kernel.exception.PortalException {
750                    return getService().moveEntryToTrash(userId, entry);
751            }
752    
753            /**
754            * Moves the blogs entry with the ID to the recycle bin.
755            *
756            * @param userId the primary key of the user moving the blogs entry
757            * @param entryId the primary key of the blogs entry to be moved
758            * @return the moved blogs entry
759            * @throws PortalException if a user or blogs entry with the primary key
760            could not be found or if the blogs entry owner's social activity
761            counter could not be updated
762            */
763            public static com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
764                    long userId, long entryId)
765                    throws com.liferay.portal.kernel.exception.PortalException {
766                    return getService().moveEntryToTrash(userId, entryId);
767            }
768    
769            /**
770            * Restores the blogs entry with the ID from the recycle bin. Social
771            * activity counters for this entry get activated.
772            *
773            * @param userId the primary key of the user restoring the blogs entry
774            * @param entryId the primary key of the blogs entry to be restored
775            * @return the restored blogs entry from the recycle bin
776            * @throws PortalException if a user or blogs entry with the primary key
777            could not be found or if the blogs entry owner's social activity
778            counter could not be updated
779            */
780            public static com.liferay.portlet.blogs.model.BlogsEntry restoreEntryFromTrash(
781                    long userId, long entryId)
782                    throws com.liferay.portal.kernel.exception.PortalException {
783                    return getService().restoreEntryFromTrash(userId, entryId);
784            }
785    
786            /**
787            * Sets the Spring bean ID for this bean.
788            *
789            * @param beanIdentifier the Spring bean ID for this bean
790            */
791            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
792                    getService().setBeanIdentifier(beanIdentifier);
793            }
794    
795            public static void subscribe(long userId, long groupId)
796                    throws com.liferay.portal.kernel.exception.PortalException {
797                    getService().subscribe(userId, groupId);
798            }
799    
800            public static void unsubscribe(long userId, long groupId)
801                    throws com.liferay.portal.kernel.exception.PortalException {
802                    getService().unsubscribe(userId, groupId);
803            }
804    
805            public static void updateAsset(long userId,
806                    com.liferay.portlet.blogs.model.BlogsEntry entry,
807                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
808                    long[] assetLinkEntryIds)
809                    throws com.liferay.portal.kernel.exception.PortalException {
810                    getService()
811                            .updateAsset(userId, entry, assetCategoryIds, assetTagNames,
812                            assetLinkEntryIds);
813            }
814    
815            /**
816            * Updates the blogs entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
817            *
818            * @param blogsEntry the blogs entry
819            * @return the blogs entry that was updated
820            */
821            public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
822                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry) {
823                    return getService().updateBlogsEntry(blogsEntry);
824            }
825    
826            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
827                    long userId, long entryId, java.lang.String title,
828                    java.lang.String content,
829                    com.liferay.portal.service.ServiceContext serviceContext)
830                    throws com.liferay.portal.kernel.exception.PortalException {
831                    return getService()
832                                       .updateEntry(userId, entryId, title, content, serviceContext);
833            }
834    
835            /**
836            * @deprecated As of 7.0.0, replaced by {@link #updateEntry(long, long,
837            String, String, String, String, int, int, int, int, int,
838            boolean, boolean, String[], String, ImageSelector,
839            ImageSelector, ServiceContext)}
840            */
841            @Deprecated
842            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
843                    long userId, long entryId, java.lang.String title,
844                    java.lang.String description, java.lang.String content,
845                    int displayDateMonth, int displayDateDay, int displayDateYear,
846                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
847                    boolean allowTrackbacks, java.lang.String[] trackbacks,
848                    boolean smallImage, java.lang.String smallImageURL,
849                    java.lang.String smallImageFileName,
850                    java.io.InputStream smallImageInputStream,
851                    com.liferay.portal.service.ServiceContext serviceContext)
852                    throws com.liferay.portal.kernel.exception.PortalException {
853                    return getService()
854                                       .updateEntry(userId, entryId, title, description, content,
855                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
856                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
857                            smallImage, smallImageURL, smallImageFileName,
858                            smallImageInputStream, serviceContext);
859            }
860    
861            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
862                    long userId, long entryId, java.lang.String title,
863                    java.lang.String subtitle, java.lang.String description,
864                    java.lang.String content, java.util.Date displayDate,
865                    boolean allowPingbacks, boolean allowTrackbacks,
866                    java.lang.String[] trackbacks, java.lang.String coverImageCaption,
867                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
868                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
869                    com.liferay.portal.service.ServiceContext serviceContext)
870                    throws com.liferay.portal.kernel.exception.PortalException {
871                    return getService()
872                                       .updateEntry(userId, entryId, title, subtitle, description,
873                            content, displayDate, allowPingbacks, allowTrackbacks, trackbacks,
874                            coverImageCaption, coverImageImageSelector,
875                            smallImageImageSelector, serviceContext);
876            }
877    
878            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
879                    long userId, long entryId, java.lang.String title,
880                    java.lang.String subtitle, java.lang.String description,
881                    java.lang.String content, int displayDateMonth, int displayDateDay,
882                    int displayDateYear, int displayDateHour, int displayDateMinute,
883                    boolean allowPingbacks, boolean allowTrackbacks,
884                    java.lang.String[] trackbacks, java.lang.String coverImageCaption,
885                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
886                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
887                    com.liferay.portal.service.ServiceContext serviceContext)
888                    throws com.liferay.portal.kernel.exception.PortalException {
889                    return getService()
890                                       .updateEntry(userId, entryId, title, subtitle, description,
891                            content, displayDateMonth, displayDateDay, displayDateYear,
892                            displayDateHour, displayDateMinute, allowPingbacks,
893                            allowTrackbacks, trackbacks, coverImageCaption,
894                            coverImageImageSelector, smallImageImageSelector, serviceContext);
895            }
896    
897            public static void updateEntryResources(
898                    com.liferay.portlet.blogs.model.BlogsEntry entry,
899                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
900                    throws com.liferay.portal.kernel.exception.PortalException {
901                    getService()
902                            .updateEntryResources(entry, groupPermissions, guestPermissions);
903            }
904    
905            public static void updateEntryResources(
906                    com.liferay.portlet.blogs.model.BlogsEntry entry,
907                    com.liferay.portal.service.permission.ModelPermissions modelPermissions)
908                    throws com.liferay.portal.kernel.exception.PortalException {
909                    getService().updateEntryResources(entry, modelPermissions);
910            }
911    
912            /**
913            * @deprecated As of 7.0.0, replaced by {@link #updateStatus(long, long,
914            int, ServiceContext, Map)}
915            */
916            @Deprecated
917            public static com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
918                    long userId, long entryId, int status,
919                    com.liferay.portal.service.ServiceContext serviceContext)
920                    throws com.liferay.portal.kernel.exception.PortalException {
921                    return getService().updateStatus(userId, entryId, status, serviceContext);
922            }
923    
924            public static com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
925                    long userId, long entryId, int status,
926                    com.liferay.portal.service.ServiceContext serviceContext,
927                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
928                    throws com.liferay.portal.kernel.exception.PortalException {
929                    return getService()
930                                       .updateStatus(userId, entryId, status, serviceContext,
931                            workflowContext);
932            }
933    
934            public static BlogsEntryLocalService getService() {
935                    if (_service == null) {
936                            _service = (BlogsEntryLocalService)PortalBeanLocatorUtil.locate(BlogsEntryLocalService.class.getName());
937    
938                            ReferenceRegistry.registerReference(BlogsEntryLocalServiceUtil.class,
939                                    "_service");
940                    }
941    
942                    return _service;
943            }
944    
945            /**
946             * @deprecated As of 6.2.0
947             */
948            @Deprecated
949            public void setService(BlogsEntryLocalService service) {
950            }
951    
952            private static BlogsEntryLocalService _service;
953    }