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