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