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