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