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