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