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.portlet.blogs.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.portlet.blogs.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.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.portlet.blogs.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.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 void deleteEntry(long entryId)
089                    throws com.liferay.portal.kernel.exception.PortalException {
090                    getService().deleteEntry(entryId);
091            }
092    
093            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
094                    long companyId, java.util.Date displayDate, int status, int max)
095                    throws com.liferay.portal.kernel.exception.PortalException {
096                    return getService()
097                                       .getCompanyEntries(companyId, displayDate, status, max);
098            }
099    
100            public static java.lang.String getCompanyEntriesRSS(long companyId,
101                    java.util.Date displayDate, int status, int max, java.lang.String type,
102                    double version, java.lang.String displayStyle,
103                    java.lang.String feedURL, java.lang.String entryURL,
104                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
105                    throws com.liferay.portal.kernel.exception.PortalException {
106                    return getService()
107                                       .getCompanyEntriesRSS(companyId, displayDate, status, max,
108                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
109            }
110    
111            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
112                    long entryId)
113                    throws com.liferay.portal.kernel.exception.PortalException {
114                    return getService().getEntry(entryId);
115            }
116    
117            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
118                    long groupId, java.lang.String urlTitle)
119                    throws com.liferay.portal.kernel.exception.PortalException {
120                    return getService().getEntry(groupId, urlTitle);
121            }
122    
123            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
124                    long groupId, java.util.Date displayDate, int status, int max) {
125                    return getService().getGroupEntries(groupId, displayDate, status, max);
126            }
127    
128            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
129                    long groupId, java.util.Date displayDate, int status, int start, int end) {
130                    return getService()
131                                       .getGroupEntries(groupId, displayDate, status, start, end);
132            }
133    
134            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
135                    long groupId, int status, int max) {
136                    return getService().getGroupEntries(groupId, status, max);
137            }
138    
139            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
140                    long groupId, int status, int start, int end) {
141                    return getService().getGroupEntries(groupId, status, start, end);
142            }
143    
144            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
145                    long groupId, int status, int start, int end,
146                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc) {
147                    return getService().getGroupEntries(groupId, status, start, end, obc);
148            }
149    
150            public static int getGroupEntriesCount(long groupId,
151                    java.util.Date displayDate, int status) {
152                    return getService().getGroupEntriesCount(groupId, displayDate, status);
153            }
154    
155            public static int getGroupEntriesCount(long groupId, int status) {
156                    return getService().getGroupEntriesCount(groupId, status);
157            }
158    
159            public static java.lang.String getGroupEntriesRSS(long groupId,
160                    java.util.Date displayDate, int status, int max, java.lang.String type,
161                    double version, java.lang.String displayStyle,
162                    java.lang.String feedURL, java.lang.String entryURL,
163                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
164                    throws com.liferay.portal.kernel.exception.PortalException {
165                    return getService()
166                                       .getGroupEntriesRSS(groupId, displayDate, status, max, type,
167                            version, displayStyle, feedURL, entryURL, themeDisplay);
168            }
169    
170            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
171                    long groupId, long userId, int status, int start, int end,
172                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc) {
173                    return getService()
174                                       .getGroupUserEntries(groupId, userId, status, start, end, obc);
175            }
176    
177            public static int getGroupUserEntriesCount(long groupId, long userId,
178                    int status) {
179                    return getService().getGroupUserEntriesCount(groupId, userId, status);
180            }
181    
182            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
183                    long companyId, long groupId, java.util.Date displayDate, int status,
184                    int max) throws com.liferay.portal.kernel.exception.PortalException {
185                    return getService()
186                                       .getGroupsEntries(companyId, groupId, displayDate, status,
187                            max);
188            }
189    
190            /**
191            * Returns the OSGi service identifier.
192            *
193            * @return the OSGi service identifier
194            */
195            public static java.lang.String getOSGiServiceIdentifier() {
196                    return getService().getOSGiServiceIdentifier();
197            }
198    
199            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
200                    long organizationId, java.util.Date displayDate, int status, int max)
201                    throws com.liferay.portal.kernel.exception.PortalException {
202                    return getService()
203                                       .getOrganizationEntries(organizationId, displayDate, status,
204                            max);
205            }
206    
207            public static java.lang.String getOrganizationEntriesRSS(
208                    long organizationId, java.util.Date displayDate, int status, int max,
209                    java.lang.String type, double version, java.lang.String displayStyle,
210                    java.lang.String feedURL, java.lang.String entryURL,
211                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
212                    throws com.liferay.portal.kernel.exception.PortalException {
213                    return getService()
214                                       .getOrganizationEntriesRSS(organizationId, displayDate,
215                            status, max, type, version, displayStyle, feedURL, entryURL,
216                            themeDisplay);
217            }
218    
219            public static com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
220                    long entryId)
221                    throws com.liferay.portal.kernel.exception.PortalException {
222                    return getService().moveEntryToTrash(entryId);
223            }
224    
225            public static void restoreEntryFromTrash(long entryId)
226                    throws com.liferay.portal.kernel.exception.PortalException {
227                    getService().restoreEntryFromTrash(entryId);
228            }
229    
230            public static void subscribe(long groupId)
231                    throws com.liferay.portal.kernel.exception.PortalException {
232                    getService().subscribe(groupId);
233            }
234    
235            public static void unsubscribe(long groupId)
236                    throws com.liferay.portal.kernel.exception.PortalException {
237                    getService().unsubscribe(groupId);
238            }
239    
240            /**
241            * @deprecated As of 7.0.0, replaced by {@link #updateEntry(long, String,
242            String, String, String, int, int, int, int, int, boolean,
243            boolean, String[], String, ImageSelector, ImageSelector,
244            ServiceContext)}
245            */
246            @Deprecated
247            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
248                    long entryId, java.lang.String title, java.lang.String description,
249                    java.lang.String content, int displayDateMonth, int displayDateDay,
250                    int displayDateYear, int displayDateHour, int displayDateMinute,
251                    boolean allowPingbacks, boolean allowTrackbacks,
252                    java.lang.String[] trackbacks, boolean smallImage,
253                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
254                    java.io.InputStream smallImageInputStream,
255                    com.liferay.portal.service.ServiceContext serviceContext)
256                    throws com.liferay.portal.kernel.exception.PortalException {
257                    return getService()
258                                       .updateEntry(entryId, title, description, content,
259                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
260                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
261                            smallImage, smallImageURL, smallImageFileName,
262                            smallImageInputStream, serviceContext);
263            }
264    
265            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
266                    long entryId, java.lang.String title, java.lang.String subtitle,
267                    java.lang.String description, java.lang.String content,
268                    int displayDateMonth, int displayDateDay, int displayDateYear,
269                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
270                    boolean allowTrackbacks, java.lang.String[] trackbacks,
271                    java.lang.String coverImageCaption,
272                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
273                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
274                    com.liferay.portal.service.ServiceContext serviceContext)
275                    throws com.liferay.portal.kernel.exception.PortalException {
276                    return getService()
277                                       .updateEntry(entryId, title, subtitle, description, content,
278                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
279                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
280                            coverImageCaption, coverImageImageSelector,
281                            smallImageImageSelector, serviceContext);
282            }
283    
284            public static BlogsEntryService getService() {
285                    if (_service == null) {
286                            _service = (BlogsEntryService)PortalBeanLocatorUtil.locate(BlogsEntryService.class.getName());
287    
288                            ReferenceRegistry.registerReference(BlogsEntryServiceUtil.class,
289                                    "_service");
290                    }
291    
292                    return _service;
293            }
294    
295            private static BlogsEntryService _service;
296    }