001    /**
002     * Copyright (c) 2000-2012 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 with the UUID in the group.
197            *
198            * @param uuid the UUID of blogs entry
199            * @param groupId the group id of the blogs entry
200            * @return the blogs entry
201            * @throws PortalException if a blogs entry with the UUID in the group 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 {@link #getCompanyEntries(long, Date, QueryDefinition)}
350            */
351            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
352                    long companyId, java.util.Date displayDate, int status, int start,
353                    int end) throws com.liferay.portal.kernel.exception.SystemException {
354                    return getService()
355                                       .getCompanyEntries(companyId, displayDate, status, start, end);
356            }
357    
358            /**
359            * @deprecated {@link #getCompanyEntries(long, Date, QueryDefinition)}
360            */
361            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
362                    long companyId, java.util.Date displayDate, int status, int start,
363                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return getService()
366                                       .getCompanyEntries(companyId, displayDate, status, start,
367                            end, obc);
368            }
369    
370            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
371                    long companyId, java.util.Date displayDate,
372                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    return getService()
375                                       .getCompanyEntries(companyId, displayDate, queryDefinition);
376            }
377    
378            /**
379            * @deprecated {@link #getCompanyEntriesCount(long, Date, QueryDefinition)}
380            */
381            public static int getCompanyEntriesCount(long companyId,
382                    java.util.Date displayDate, int status)
383                    throws com.liferay.portal.kernel.exception.SystemException {
384                    return getService()
385                                       .getCompanyEntriesCount(companyId, displayDate, status);
386            }
387    
388            public static int getCompanyEntriesCount(long companyId,
389                    java.util.Date displayDate,
390                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
391                    throws com.liferay.portal.kernel.exception.SystemException {
392                    return getService()
393                                       .getCompanyEntriesCount(companyId, displayDate,
394                            queryDefinition);
395            }
396    
397            public static com.liferay.portlet.blogs.model.BlogsEntry[] getEntriesPrevAndNext(
398                    long entryId)
399                    throws com.liferay.portal.kernel.exception.PortalException,
400                            com.liferay.portal.kernel.exception.SystemException {
401                    return getService().getEntriesPrevAndNext(entryId);
402            }
403    
404            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
405                    long entryId)
406                    throws com.liferay.portal.kernel.exception.PortalException,
407                            com.liferay.portal.kernel.exception.SystemException {
408                    return getService().getEntry(entryId);
409            }
410    
411            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
412                    long groupId, java.lang.String urlTitle)
413                    throws com.liferay.portal.kernel.exception.PortalException,
414                            com.liferay.portal.kernel.exception.SystemException {
415                    return getService().getEntry(groupId, urlTitle);
416            }
417    
418            /**
419            * @deprecated {@link #getGroupEntries(long, Date, QueryDefinition)}
420            */
421            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
422                    long groupId, java.util.Date displayDate, int status, int start, int end)
423                    throws com.liferay.portal.kernel.exception.SystemException {
424                    return getService()
425                                       .getGroupEntries(groupId, displayDate, status, start, end);
426            }
427    
428            /**
429            * @deprecated {@link #getGroupEntries(long, Date, QueryDefinition)}
430            */
431            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
432                    long groupId, java.util.Date displayDate, int status, int start,
433                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
434                    throws com.liferay.portal.kernel.exception.SystemException {
435                    return getService()
436                                       .getGroupEntries(groupId, displayDate, status, start, end,
437                            obc);
438            }
439    
440            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
441                    long groupId, java.util.Date displayDate,
442                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
443                    throws com.liferay.portal.kernel.exception.SystemException {
444                    return getService()
445                                       .getGroupEntries(groupId, displayDate, queryDefinition);
446            }
447    
448            /**
449            * @deprecated {@link #getGroupEntries(long, QueryDefinition)}
450            */
451            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
452                    long groupId, int status, int start, int end)
453                    throws com.liferay.portal.kernel.exception.SystemException {
454                    return getService().getGroupEntries(groupId, status, start, end);
455            }
456    
457            /**
458            * @deprecated {@link #getGroupEntries(long, QueryDefinition)}
459            */
460            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
461                    long groupId, int status, int start, int end,
462                    com.liferay.portal.kernel.util.OrderByComparator obc)
463                    throws com.liferay.portal.kernel.exception.SystemException {
464                    return getService().getGroupEntries(groupId, status, start, end, obc);
465            }
466    
467            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
468                    long groupId,
469                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
470                    throws com.liferay.portal.kernel.exception.SystemException {
471                    return getService().getGroupEntries(groupId, queryDefinition);
472            }
473    
474            /**
475            * @deprecated {@link #getGroupEntriesCount(long, Date, QueryDefinition)}
476            */
477            public static int getGroupEntriesCount(long groupId,
478                    java.util.Date displayDate, int status)
479                    throws com.liferay.portal.kernel.exception.SystemException {
480                    return getService().getGroupEntriesCount(groupId, displayDate, status);
481            }
482    
483            public static int getGroupEntriesCount(long groupId,
484                    java.util.Date displayDate,
485                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
486                    throws com.liferay.portal.kernel.exception.SystemException {
487                    return getService()
488                                       .getGroupEntriesCount(groupId, displayDate, queryDefinition);
489            }
490    
491            /**
492            * @deprecated {@link #getGroupEntriesCount(long, QueryDefinition)}
493            */
494            public static int getGroupEntriesCount(long groupId, int status)
495                    throws com.liferay.portal.kernel.exception.SystemException {
496                    return getService().getGroupEntriesCount(groupId, status);
497            }
498    
499            public static int getGroupEntriesCount(long groupId,
500                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
501                    throws com.liferay.portal.kernel.exception.SystemException {
502                    return getService().getGroupEntriesCount(groupId, queryDefinition);
503            }
504    
505            /**
506            * @deprecated {@link #getGroupsEntries(long, long, Date, QueryDefinition)}
507            */
508            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
509                    long companyId, long groupId, java.util.Date displayDate, int status,
510                    int start, int end)
511                    throws com.liferay.portal.kernel.exception.SystemException {
512                    return getService()
513                                       .getGroupsEntries(companyId, groupId, displayDate, status,
514                            start, end);
515            }
516    
517            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
518                    long companyId, long groupId, java.util.Date displayDate,
519                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
520                    throws com.liferay.portal.kernel.exception.SystemException {
521                    return getService()
522                                       .getGroupsEntries(companyId, groupId, displayDate,
523                            queryDefinition);
524            }
525    
526            /**
527            * @deprecated {@link #getGroupUserEntries(long, long, Date,
528            QueryDefinition)}
529            */
530            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
531                    long groupId, long userId, java.util.Date displayDate, int status,
532                    int start, int end)
533                    throws com.liferay.portal.kernel.exception.SystemException {
534                    return getService()
535                                       .getGroupUserEntries(groupId, userId, displayDate, status,
536                            start, end);
537            }
538    
539            /**
540            * @deprecated {@link #getGroupUserEntries(long, long, Date,
541            QueryDefinition)}
542            */
543            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
544                    long groupId, long userId, java.util.Date displayDate, int status,
545                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
546                    throws com.liferay.portal.kernel.exception.SystemException {
547                    return getService()
548                                       .getGroupUserEntries(groupId, userId, displayDate, status,
549                            start, end, obc);
550            }
551    
552            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
553                    long groupId, long userId, java.util.Date displayDate,
554                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
555                    throws com.liferay.portal.kernel.exception.SystemException {
556                    return getService()
557                                       .getGroupUserEntries(groupId, userId, displayDate,
558                            queryDefinition);
559            }
560    
561            /**
562            * @deprecated {@link #getGroupUserEntriesCount(long, long, Date,
563            QueryDefinition)}
564            */
565            public static int getGroupUserEntriesCount(long groupId, long userId,
566                    java.util.Date displayDate, int status)
567                    throws com.liferay.portal.kernel.exception.SystemException {
568                    return getService()
569                                       .getGroupUserEntriesCount(groupId, userId, displayDate,
570                            status);
571            }
572    
573            public static int getGroupUserEntriesCount(long groupId, long userId,
574                    java.util.Date displayDate,
575                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
576                    throws com.liferay.portal.kernel.exception.SystemException {
577                    return getService()
578                                       .getGroupUserEntriesCount(groupId, userId, displayDate,
579                            queryDefinition);
580            }
581    
582            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
583                    throws com.liferay.portal.kernel.exception.SystemException {
584                    return getService().getNoAssetEntries();
585            }
586    
587            /**
588            * @deprecated {@link #getOrganizationEntries(long, Date, QueryDefinition)}
589            */
590            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
591                    long organizationId, java.util.Date displayDate, int status, int start,
592                    int end) throws com.liferay.portal.kernel.exception.SystemException {
593                    return getService()
594                                       .getOrganizationEntries(organizationId, displayDate, status,
595                            start, end);
596            }
597    
598            /**
599            * @deprecated {@link #getOrganizationEntries(long, 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, com.liferay.portal.kernel.util.OrderByComparator obc)
604                    throws com.liferay.portal.kernel.exception.SystemException {
605                    return getService()
606                                       .getOrganizationEntries(organizationId, displayDate, status,
607                            start, end, obc);
608            }
609    
610            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
611                    long organizationId, java.util.Date displayDate,
612                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
613                    throws com.liferay.portal.kernel.exception.SystemException {
614                    return getService()
615                                       .getOrganizationEntries(organizationId, displayDate,
616                            queryDefinition);
617            }
618    
619            /**
620            * @deprecated {@link #getOrganizationEntriesCount(long, Date,
621            QueryDefinition)}
622            */
623            public static int getOrganizationEntriesCount(long organizationId,
624                    java.util.Date displayDate, int status)
625                    throws com.liferay.portal.kernel.exception.SystemException {
626                    return getService()
627                                       .getOrganizationEntriesCount(organizationId, displayDate,
628                            status);
629            }
630    
631            public static int getOrganizationEntriesCount(long organizationId,
632                    java.util.Date displayDate,
633                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
634                    throws com.liferay.portal.kernel.exception.SystemException {
635                    return getService()
636                                       .getOrganizationEntriesCount(organizationId, displayDate,
637                            queryDefinition);
638            }
639    
640            public static void moveEntriesToTrash(long groupId, long userId)
641                    throws com.liferay.portal.kernel.exception.PortalException,
642                            com.liferay.portal.kernel.exception.SystemException {
643                    getService().moveEntriesToTrash(groupId, userId);
644            }
645    
646            /**
647            * Moves the blogs entry to the recycle bin. Social activity counters for
648            * this entry get disabled.
649            *
650            * @param userId the primary key of the user moving the blogs entry
651            * @param entry the blogs entry to be moved
652            * @return the moved blogs entry
653            * @throws PortalException if a user with the primary key could not be found
654            or if the blogs entry owner's social activity counter could not
655            be updated
656            * @throws SystemException if a system exception occurred
657            */
658            public static com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
659                    long userId, com.liferay.portlet.blogs.model.BlogsEntry entry)
660                    throws com.liferay.portal.kernel.exception.PortalException,
661                            com.liferay.portal.kernel.exception.SystemException {
662                    return getService().moveEntryToTrash(userId, entry);
663            }
664    
665            /**
666            * Moves the blogs entry with the ID to the recycle bin.
667            *
668            * @param userId the primary key of the user moving the blogs entry
669            * @param entryId the primary key of the blogs entry to be moved
670            * @return the moved blogs entry
671            * @throws PortalException if a user or blogs entry with the primary key
672            could not be found or if the blogs entry owner's social activity
673            counter could not be updated
674            * @throws SystemException if a system exception occurred
675            */
676            public static com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
677                    long userId, long entryId)
678                    throws com.liferay.portal.kernel.exception.PortalException,
679                            com.liferay.portal.kernel.exception.SystemException {
680                    return getService().moveEntryToTrash(userId, entryId);
681            }
682    
683            /**
684            * Restores the blogs entry with the ID from the recycle bin. Social
685            * activity counters for this entry get activated.
686            *
687            * @param userId the primary key of the user restoring the blogs entry
688            * @param entryId the primary key of the blogs entry to be restored
689            * @throws PortalException if a user or blogs entry with the primary key
690            could not be found or if the blogs entry owner's social activity
691            counter could not be updated
692            * @throws SystemException if a system exception occurred
693            */
694            public static void restoreEntryFromTrash(long userId, long entryId)
695                    throws com.liferay.portal.kernel.exception.PortalException,
696                            com.liferay.portal.kernel.exception.SystemException {
697                    getService().restoreEntryFromTrash(userId, entryId);
698            }
699    
700            public static void subscribe(long userId, long groupId)
701                    throws com.liferay.portal.kernel.exception.PortalException,
702                            com.liferay.portal.kernel.exception.SystemException {
703                    getService().subscribe(userId, groupId);
704            }
705    
706            public static void unsubscribe(long userId, long groupId)
707                    throws com.liferay.portal.kernel.exception.PortalException,
708                            com.liferay.portal.kernel.exception.SystemException {
709                    getService().unsubscribe(userId, groupId);
710            }
711    
712            public static void updateAsset(long userId,
713                    com.liferay.portlet.blogs.model.BlogsEntry entry,
714                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
715                    long[] assetLinkEntryIds)
716                    throws com.liferay.portal.kernel.exception.PortalException,
717                            com.liferay.portal.kernel.exception.SystemException {
718                    getService()
719                            .updateAsset(userId, entry, assetCategoryIds, assetTagNames,
720                            assetLinkEntryIds);
721            }
722    
723            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
724                    long userId, long entryId, java.lang.String title,
725                    java.lang.String description, java.lang.String content,
726                    int displayDateMonth, int displayDateDay, int displayDateYear,
727                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
728                    boolean allowTrackbacks, java.lang.String[] trackbacks,
729                    boolean smallImage, java.lang.String smallImageURL,
730                    java.lang.String smallImageFileName,
731                    java.io.InputStream smallImageInputStream,
732                    com.liferay.portal.service.ServiceContext serviceContext)
733                    throws com.liferay.portal.kernel.exception.PortalException,
734                            com.liferay.portal.kernel.exception.SystemException {
735                    return getService()
736                                       .updateEntry(userId, entryId, title, description, content,
737                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
738                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
739                            smallImage, smallImageURL, smallImageFileName,
740                            smallImageInputStream, serviceContext);
741            }
742    
743            public static void updateEntryResources(
744                    com.liferay.portlet.blogs.model.BlogsEntry entry,
745                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
746                    throws com.liferay.portal.kernel.exception.PortalException,
747                            com.liferay.portal.kernel.exception.SystemException {
748                    getService()
749                            .updateEntryResources(entry, groupPermissions, guestPermissions);
750            }
751    
752            public static com.liferay.portlet.blogs.model.BlogsEntry updateStatus(
753                    long userId, long entryId, int status,
754                    com.liferay.portal.service.ServiceContext serviceContext)
755                    throws com.liferay.portal.kernel.exception.PortalException,
756                            com.liferay.portal.kernel.exception.SystemException {
757                    return getService().updateStatus(userId, entryId, status, serviceContext);
758            }
759    
760            public static BlogsEntryLocalService getService() {
761                    if (_service == null) {
762                            _service = (BlogsEntryLocalService)PortalBeanLocatorUtil.locate(BlogsEntryLocalService.class.getName());
763    
764                            ReferenceRegistry.registerReference(BlogsEntryLocalServiceUtil.class,
765                                    "_service");
766                    }
767    
768                    return _service;
769            }
770    
771            /**
772             * @deprecated
773             */
774            public void setService(BlogsEntryLocalService service) {
775            }
776    
777            private static BlogsEntryLocalService _service;
778    }