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 remote service utility for BlogsEntry. This utility wraps
024     * {@link com.liferay.portlet.blogs.service.impl.BlogsEntryServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
029     *
030     * @author Brian Wing Shun Chan
031     * @see BlogsEntryService
032     * @see com.liferay.portlet.blogs.service.base.BlogsEntryServiceBaseImpl
033     * @see com.liferay.portlet.blogs.service.impl.BlogsEntryServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class BlogsEntryServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.blogs.service.impl.BlogsEntryServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043    
044            /**
045            * @deprecated As of 7.0.0, replaced by {@link #addEntry(String, String,
046            String, String, int, int, int, int, int, boolean, boolean,
047            String[], String, ImageSelector, ImageSelector,
048            ServiceContext)}
049            */
050            @Deprecated
051            public static com.liferay.blogs.kernel.model.BlogsEntry addEntry(
052                    java.lang.String title, java.lang.String description,
053                    java.lang.String content, int displayDateMonth, int displayDateDay,
054                    int displayDateYear, int displayDateHour, int displayDateMinute,
055                    boolean allowPingbacks, boolean allowTrackbacks,
056                    java.lang.String[] trackbacks, boolean smallImage,
057                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
058                    java.io.InputStream smallImageInputStream,
059                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
060                    throws com.liferay.portal.kernel.exception.PortalException {
061                    return getService()
062                                       .addEntry(title, description, content, displayDateMonth,
063                            displayDateDay, displayDateYear, displayDateHour,
064                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
065                            smallImage, smallImageURL, smallImageFileName,
066                            smallImageInputStream, serviceContext);
067            }
068    
069            public static com.liferay.blogs.kernel.model.BlogsEntry addEntry(
070                    java.lang.String title, java.lang.String subtitle,
071                    java.lang.String description, java.lang.String content,
072                    int displayDateMonth, int displayDateDay, int displayDateYear,
073                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
074                    boolean allowTrackbacks, java.lang.String[] trackbacks,
075                    java.lang.String coverImageCaption,
076                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
077                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
078                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
079                    throws com.liferay.portal.kernel.exception.PortalException {
080                    return getService()
081                                       .addEntry(title, subtitle, description, content,
082                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
083                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
084                            coverImageCaption, coverImageImageSelector,
085                            smallImageImageSelector, serviceContext);
086            }
087    
088            public static com.liferay.blogs.kernel.model.BlogsEntry getEntry(
089                    long entryId)
090                    throws com.liferay.portal.kernel.exception.PortalException {
091                    return getService().getEntry(entryId);
092            }
093    
094            public static com.liferay.blogs.kernel.model.BlogsEntry getEntry(
095                    long groupId, java.lang.String urlTitle)
096                    throws com.liferay.portal.kernel.exception.PortalException {
097                    return getService().getEntry(groupId, urlTitle);
098            }
099    
100            public static com.liferay.blogs.kernel.model.BlogsEntry moveEntryToTrash(
101                    long entryId)
102                    throws com.liferay.portal.kernel.exception.PortalException {
103                    return getService().moveEntryToTrash(entryId);
104            }
105    
106            /**
107            * @deprecated As of 7.0.0, replaced by {@link #updateEntry(long, String,
108            String, String, String, int, int, int, int, int, boolean,
109            boolean, String[], String, ImageSelector, ImageSelector,
110            ServiceContext)}
111            */
112            @Deprecated
113            public static com.liferay.blogs.kernel.model.BlogsEntry updateEntry(
114                    long entryId, java.lang.String title, java.lang.String description,
115                    java.lang.String content, int displayDateMonth, int displayDateDay,
116                    int displayDateYear, int displayDateHour, int displayDateMinute,
117                    boolean allowPingbacks, boolean allowTrackbacks,
118                    java.lang.String[] trackbacks, boolean smallImage,
119                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
120                    java.io.InputStream smallImageInputStream,
121                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
122                    throws com.liferay.portal.kernel.exception.PortalException {
123                    return getService()
124                                       .updateEntry(entryId, title, description, content,
125                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
126                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
127                            smallImage, smallImageURL, smallImageFileName,
128                            smallImageInputStream, serviceContext);
129            }
130    
131            public static com.liferay.blogs.kernel.model.BlogsEntry updateEntry(
132                    long entryId, java.lang.String title, java.lang.String subtitle,
133                    java.lang.String description, java.lang.String content,
134                    int displayDateMonth, int displayDateDay, int displayDateYear,
135                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
136                    boolean allowTrackbacks, java.lang.String[] trackbacks,
137                    java.lang.String coverImageCaption,
138                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
139                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
140                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
141                    throws com.liferay.portal.kernel.exception.PortalException {
142                    return getService()
143                                       .updateEntry(entryId, title, subtitle, description, content,
144                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
145                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
146                            coverImageCaption, coverImageImageSelector,
147                            smallImageImageSelector, serviceContext);
148            }
149    
150            public static int getGroupEntriesCount(long groupId, int status) {
151                    return getService().getGroupEntriesCount(groupId, status);
152            }
153    
154            public static int getGroupEntriesCount(long groupId,
155                    java.util.Date displayDate, int status) {
156                    return getService().getGroupEntriesCount(groupId, displayDate, status);
157            }
158    
159            public static int getGroupUserEntriesCount(long groupId, long userId,
160                    int status) {
161                    return getService().getGroupUserEntriesCount(groupId, userId, status);
162            }
163    
164            public static int getGroupUserEntriesCount(long groupId, long userId,
165                    int[] statuses) {
166                    return getService().getGroupUserEntriesCount(groupId, userId, statuses);
167            }
168    
169            public static java.lang.String getCompanyEntriesRSS(long companyId,
170                    java.util.Date displayDate, int status, int max, java.lang.String type,
171                    double version, java.lang.String displayStyle,
172                    java.lang.String feedURL, java.lang.String entryURL,
173                    com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
174                    throws com.liferay.portal.kernel.exception.PortalException {
175                    return getService()
176                                       .getCompanyEntriesRSS(companyId, displayDate, status, max,
177                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
178            }
179    
180            public static java.lang.String getGroupEntriesRSS(long groupId,
181                    java.util.Date displayDate, int status, int max, java.lang.String type,
182                    double version, java.lang.String displayStyle,
183                    java.lang.String feedURL, java.lang.String entryURL,
184                    com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
185                    throws com.liferay.portal.kernel.exception.PortalException {
186                    return getService()
187                                       .getGroupEntriesRSS(groupId, displayDate, status, max, type,
188                            version, displayStyle, feedURL, entryURL, themeDisplay);
189            }
190    
191            /**
192            * Returns the OSGi service identifier.
193            *
194            * @return the OSGi service identifier
195            */
196            public static java.lang.String getOSGiServiceIdentifier() {
197                    return getService().getOSGiServiceIdentifier();
198            }
199    
200            public static java.lang.String getOrganizationEntriesRSS(
201                    long organizationId, java.util.Date displayDate, int status, int max,
202                    java.lang.String type, double version, java.lang.String displayStyle,
203                    java.lang.String feedURL, java.lang.String entryURL,
204                    com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
205                    throws com.liferay.portal.kernel.exception.PortalException {
206                    return getService()
207                                       .getOrganizationEntriesRSS(organizationId, displayDate,
208                            status, max, type, version, displayStyle, feedURL, entryURL,
209                            themeDisplay);
210            }
211    
212            public static java.util.List<com.liferay.blogs.kernel.model.BlogsEntry> getCompanyEntries(
213                    long companyId, java.util.Date displayDate, int status, int max)
214                    throws com.liferay.portal.kernel.exception.PortalException {
215                    return getService()
216                                       .getCompanyEntries(companyId, displayDate, status, max);
217            }
218    
219            public static java.util.List<com.liferay.blogs.kernel.model.BlogsEntry> getGroupEntries(
220                    long groupId, int status, int max) {
221                    return getService().getGroupEntries(groupId, status, max);
222            }
223    
224            public static java.util.List<com.liferay.blogs.kernel.model.BlogsEntry> getGroupEntries(
225                    long groupId, int status, int start, int end) {
226                    return getService().getGroupEntries(groupId, status, start, end);
227            }
228    
229            public static java.util.List<com.liferay.blogs.kernel.model.BlogsEntry> getGroupEntries(
230                    long groupId, int status, int start, int end,
231                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.blogs.kernel.model.BlogsEntry> obc) {
232                    return getService().getGroupEntries(groupId, status, start, end, obc);
233            }
234    
235            public static java.util.List<com.liferay.blogs.kernel.model.BlogsEntry> getGroupEntries(
236                    long groupId, java.util.Date displayDate, int status, int max) {
237                    return getService().getGroupEntries(groupId, displayDate, status, max);
238            }
239    
240            public static java.util.List<com.liferay.blogs.kernel.model.BlogsEntry> getGroupEntries(
241                    long groupId, java.util.Date displayDate, int status, int start, int end) {
242                    return getService()
243                                       .getGroupEntries(groupId, displayDate, status, start, end);
244            }
245    
246            public static java.util.List<com.liferay.blogs.kernel.model.BlogsEntry> getGroupUserEntries(
247                    long groupId, long userId, int status, int start, int end,
248                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.blogs.kernel.model.BlogsEntry> obc) {
249                    return getService()
250                                       .getGroupUserEntries(groupId, userId, status, start, end, obc);
251            }
252    
253            public static java.util.List<com.liferay.blogs.kernel.model.BlogsEntry> getGroupUserEntries(
254                    long groupId, long userId, int[] statuses, int start, int end,
255                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.blogs.kernel.model.BlogsEntry> obc) {
256                    return getService()
257                                       .getGroupUserEntries(groupId, userId, statuses, start, end,
258                            obc);
259            }
260    
261            public static java.util.List<com.liferay.blogs.kernel.model.BlogsEntry> getGroupsEntries(
262                    long companyId, long groupId, java.util.Date displayDate, int status,
263                    int max) throws com.liferay.portal.kernel.exception.PortalException {
264                    return getService()
265                                       .getGroupsEntries(companyId, groupId, displayDate, status,
266                            max);
267            }
268    
269            public static java.util.List<com.liferay.blogs.kernel.model.BlogsEntry> getOrganizationEntries(
270                    long organizationId, java.util.Date displayDate, int status, int max)
271                    throws com.liferay.portal.kernel.exception.PortalException {
272                    return getService()
273                                       .getOrganizationEntries(organizationId, displayDate, status,
274                            max);
275            }
276    
277            public static void deleteEntry(long entryId)
278                    throws com.liferay.portal.kernel.exception.PortalException {
279                    getService().deleteEntry(entryId);
280            }
281    
282            public static void restoreEntryFromTrash(long entryId)
283                    throws com.liferay.portal.kernel.exception.PortalException {
284                    getService().restoreEntryFromTrash(entryId);
285            }
286    
287            public static void subscribe(long groupId)
288                    throws com.liferay.portal.kernel.exception.PortalException {
289                    getService().subscribe(groupId);
290            }
291    
292            public static void unsubscribe(long groupId)
293                    throws com.liferay.portal.kernel.exception.PortalException {
294                    getService().unsubscribe(groupId);
295            }
296    
297            public static BlogsEntryService getService() {
298                    if (_service == null) {
299                            _service = (BlogsEntryService)PortalBeanLocatorUtil.locate(BlogsEntryService.class.getName());
300    
301                            ReferenceRegistry.registerReference(BlogsEntryServiceUtil.class,
302                                    "_service");
303                    }
304    
305                    return _service;
306            }
307    
308            private static BlogsEntryService _service;
309    }