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