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            public static int getCompanyEntriesCount(long companyId,
445                    java.util.Date displayDate,
446                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
447                    return getService()
448                                       .getCompanyEntriesCount(companyId, displayDate,
449                            queryDefinition);
450            }
451    
452            public static com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
453                    long entryId)
454                    throws com.liferay.portal.kernel.exception.PortalException {
455                    return getService().getEntriesPrevAndNext(entryId);
456            }
457    
458            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
459                    long entryId)
460                    throws com.liferay.portal.kernel.exception.PortalException {
461                    return getService().getEntry(entryId);
462            }
463    
464            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
465                    long groupId, java.lang.String urlTitle)
466                    throws com.liferay.portal.kernel.exception.PortalException {
467                    return getService().getEntry(groupId, urlTitle);
468            }
469    
470            public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
471                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
472                    return getService().getExportActionableDynamicQuery(portletDataContext);
473            }
474    
475            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
476                    long groupId, java.util.Date displayDate,
477                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
478                    return getService()
479                                       .getGroupEntries(groupId, displayDate, queryDefinition);
480            }
481    
482            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
483                    long groupId,
484                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
485                    return getService().getGroupEntries(groupId, queryDefinition);
486            }
487    
488            public static int getGroupEntriesCount(long groupId,
489                    java.util.Date displayDate,
490                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
491                    return getService()
492                                       .getGroupEntriesCount(groupId, displayDate, queryDefinition);
493            }
494    
495            public static int getGroupEntriesCount(long groupId,
496                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
497                    return getService().getGroupEntriesCount(groupId, queryDefinition);
498            }
499    
500            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
501                    long groupId, long userId, java.util.Date displayDate,
502                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
503                    return getService()
504                                       .getGroupUserEntries(groupId, userId, displayDate,
505                            queryDefinition);
506            }
507    
508            public static int getGroupUserEntriesCount(long groupId, long userId,
509                    java.util.Date displayDate,
510                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
511                    return getService()
512                                       .getGroupUserEntriesCount(groupId, userId, displayDate,
513                            queryDefinition);
514            }
515    
516            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
517                    long companyId, long groupId, java.util.Date displayDate,
518                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
519                    return getService()
520                                       .getGroupsEntries(companyId, groupId, displayDate,
521                            queryDefinition);
522            }
523    
524            public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
525                    return getService().getIndexableActionableDynamicQuery();
526            }
527    
528            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries() {
529                    return getService().getNoAssetEntries();
530            }
531    
532            /**
533            * Returns the OSGi service identifier.
534            *
535            * @return the OSGi service identifier
536            */
537            public static java.lang.String getOSGiServiceIdentifier() {
538                    return getService().getOSGiServiceIdentifier();
539            }
540    
541            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
542                    long organizationId, java.util.Date displayDate,
543                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
544                    return getService()
545                                       .getOrganizationEntries(organizationId, displayDate,
546                            queryDefinition);
547            }
548    
549            public static int getOrganizationEntriesCount(long organizationId,
550                    java.util.Date displayDate,
551                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.blogs.model.BlogsEntry> queryDefinition) {
552                    return getService()
553                                       .getOrganizationEntriesCount(organizationId, displayDate,
554                            queryDefinition);
555            }
556    
557            public static com.liferay.portal.model.PersistedModel getPersistedModel(
558                    java.io.Serializable primaryKeyObj)
559                    throws com.liferay.portal.kernel.exception.PortalException {
560                    return getService().getPersistedModel(primaryKeyObj);
561            }
562    
563            public static void moveEntriesToTrash(long groupId, long userId)
564                    throws com.liferay.portal.kernel.exception.PortalException {
565                    getService().moveEntriesToTrash(groupId, userId);
566            }
567    
568            /**
569            * Moves the blogs entry to the recycle bin. Social activity counters for
570            * this entry get disabled.
571            *
572            * @param userId the primary key of the user moving the blogs entry
573            * @param entry the blogs entry to be moved
574            * @return the moved blogs entry
575            */
576            public static com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
577                    long userId, com.liferay.portlet.blogs.model.BlogsEntry entry)
578                    throws com.liferay.portal.kernel.exception.PortalException {
579                    return getService().moveEntryToTrash(userId, entry);
580            }
581    
582            /**
583            * Moves the blogs entry with the ID to the recycle bin.
584            *
585            * @param userId the primary key of the user moving the blogs entry
586            * @param entryId the primary key of the blogs entry to be moved
587            * @return the moved blogs entry
588            */
589            public static com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
590                    long userId, long entryId)
591                    throws com.liferay.portal.kernel.exception.PortalException {
592                    return getService().moveEntryToTrash(userId, entryId);
593            }
594    
595            /**
596            * Restores the blogs entry with the ID from the recycle bin. Social
597            * activity counters for this entry get activated.
598            *
599            * @param userId the primary key of the user restoring the blogs entry
600            * @param entryId the primary key of the blogs entry to be restored
601            * @return the restored blogs entry from the recycle bin
602            */
603            public static com.liferay.portlet.blogs.model.BlogsEntry restoreEntryFromTrash(
604                    long userId, long entryId)
605                    throws com.liferay.portal.kernel.exception.PortalException {
606                    return getService().restoreEntryFromTrash(userId, entryId);
607            }
608    
609            public static void subscribe(long userId, long groupId)
610                    throws com.liferay.portal.kernel.exception.PortalException {
611                    getService().subscribe(userId, groupId);
612            }
613    
614            public static void unsubscribe(long userId, long groupId)
615                    throws com.liferay.portal.kernel.exception.PortalException {
616                    getService().unsubscribe(userId, groupId);
617            }
618    
619            public static void updateAsset(long userId,
620                    com.liferay.portlet.blogs.model.BlogsEntry entry,
621                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
622                    long[] assetLinkEntryIds, java.lang.Double priority)
623                    throws com.liferay.portal.kernel.exception.PortalException {
624                    getService()
625                            .updateAsset(userId, entry, assetCategoryIds, assetTagNames,
626                            assetLinkEntryIds, priority);
627            }
628    
629            /**
630            * Updates the blogs entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
631            *
632            * @param blogsEntry the blogs entry
633            * @return the blogs entry that was updated
634            */
635            public static com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
636                    com.liferay.portlet.blogs.model.BlogsEntry blogsEntry) {
637                    return getService().updateBlogsEntry(blogsEntry);
638            }
639    
640            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
641                    long userId, long entryId, java.lang.String title,
642                    java.lang.String content,
643                    com.liferay.portal.service.ServiceContext serviceContext)
644                    throws com.liferay.portal.kernel.exception.PortalException {
645                    return getService()
646                                       .updateEntry(userId, entryId, title, content, serviceContext);
647            }
648    
649            /**
650            * @deprecated As of 7.0.0, replaced by {@link #updateEntry(long, long,
651            String, String, String, String, int, int, int, int, int,
652            boolean, boolean, String[], String, ImageSelector,
653            ImageSelector, ServiceContext)}
654            */
655            @Deprecated
656            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
657                    long userId, long entryId, java.lang.String title,
658                    java.lang.String description, java.lang.String content,
659                    int displayDateMonth, int displayDateDay, int displayDateYear,
660                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
661                    boolean allowTrackbacks, java.lang.String[] trackbacks,
662                    boolean smallImage, java.lang.String smallImageURL,
663                    java.lang.String smallImageFileName,
664                    java.io.InputStream smallImageInputStream,
665                    com.liferay.portal.service.ServiceContext serviceContext)
666                    throws com.liferay.portal.kernel.exception.PortalException {
667                    return getService()
668                                       .updateEntry(userId, entryId, title, description, content,
669                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
670                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
671                            smallImage, smallImageURL, smallImageFileName,
672                            smallImageInputStream, serviceContext);
673            }
674    
675            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
676                    long userId, long entryId, java.lang.String title,
677                    java.lang.String subtitle, java.lang.String description,
678                    java.lang.String content, java.util.Date displayDate,
679                    boolean allowPingbacks, boolean allowTrackbacks,
680                    java.lang.String[] trackbacks, java.lang.String coverImageCaption,
681                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
682                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
683                    com.liferay.portal.service.ServiceContext serviceContext)
684                    throws com.liferay.portal.kernel.exception.PortalException {
685                    return getService()
686                                       .updateEntry(userId, entryId, title, subtitle, description,
687                            content, displayDate, allowPingbacks, allowTrackbacks, trackbacks,
688                            coverImageCaption, coverImageImageSelector,
689                            smallImageImageSelector, serviceContext);
690            }
691    
692            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
693                    long userId, long entryId, java.lang.String title,
694                    java.lang.String subtitle, java.lang.String description,
695                    java.lang.String content, int displayDateMonth, int displayDateDay,
696                    int displayDateYear, int displayDateHour, int displayDateMinute,
697                    boolean allowPingbacks, boolean allowTrackbacks,
698                    java.lang.String[] trackbacks, java.lang.String coverImageCaption,
699                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
700                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
701                    com.liferay.portal.service.ServiceContext serviceContext)
702                    throws com.liferay.portal.kernel.exception.PortalException {
703                    return getService()
704                                       .updateEntry(userId, entryId, title, subtitle, description,
705                            content, displayDateMonth, displayDateDay, displayDateYear,
706                            displayDateHour, displayDateMinute, allowPingbacks,
707                            allowTrackbacks, trackbacks, coverImageCaption,
708                            coverImageImageSelector, smallImageImageSelector, serviceContext);
709            }
710    
711            public static void updateEntryResources(
712                    com.liferay.portlet.blogs.model.BlogsEntry entry,
713                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
714                    throws com.liferay.portal.kernel.exception.PortalException {
715                    getService()
716                            .updateEntryResources(entry, groupPermissions, guestPermissions);
717            }
718    
719            public static void updateEntryResources(
720                    com.liferay.portlet.blogs.model.BlogsEntry entry,
721                    com.liferay.portal.service.permission.ModelPermissions modelPermissions)
722                    throws com.liferay.portal.kernel.exception.PortalException {
723                    getService().updateEntryResources(entry, modelPermissions);
724            }
725    
726            /**
727            * @deprecated As of 7.0.0, replaced by {@link #updateStatus(long, long,
728            int, ServiceContext, Map)}
729            */
730            @Deprecated
731            public static com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
732                    long userId, long entryId, int status,
733                    com.liferay.portal.service.ServiceContext serviceContext)
734                    throws com.liferay.portal.kernel.exception.PortalException {
735                    return getService().updateStatus(userId, entryId, status, serviceContext);
736            }
737    
738            public static com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
739                    long userId, long entryId, int status,
740                    com.liferay.portal.service.ServiceContext serviceContext,
741                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
742                    throws com.liferay.portal.kernel.exception.PortalException {
743                    return getService()
744                                       .updateStatus(userId, entryId, status, serviceContext,
745                            workflowContext);
746            }
747    
748            public static BlogsEntryLocalService getService() {
749                    if (_service == null) {
750                            _service = (BlogsEntryLocalService)PortalBeanLocatorUtil.locate(BlogsEntryLocalService.class.getName());
751    
752                            ReferenceRegistry.registerReference(BlogsEntryLocalServiceUtil.class,
753                                    "_service");
754                    }
755    
756                    return _service;
757            }
758    
759            private static BlogsEntryLocalService _service;
760    }