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