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