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