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            /**
094            * Returns the Spring bean ID for this bean.
095            *
096            * @return the Spring bean ID for this bean
097            */
098            public static java.lang.String getBeanIdentifier() {
099                    return getService().getBeanIdentifier();
100            }
101    
102            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
103                    long companyId, java.util.Date displayDate, int status, int max)
104                    throws com.liferay.portal.kernel.exception.PortalException {
105                    return getService()
106                                       .getCompanyEntries(companyId, displayDate, status, max);
107            }
108    
109            public static java.lang.String getCompanyEntriesRSS(long companyId,
110                    java.util.Date displayDate, int status, int max, java.lang.String type,
111                    double version, java.lang.String displayStyle,
112                    java.lang.String feedURL, java.lang.String entryURL,
113                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
114                    throws com.liferay.portal.kernel.exception.PortalException {
115                    return getService()
116                                       .getCompanyEntriesRSS(companyId, displayDate, status, max,
117                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
118            }
119    
120            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
121                    long entryId)
122                    throws com.liferay.portal.kernel.exception.PortalException {
123                    return getService().getEntry(entryId);
124            }
125    
126            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
127                    long groupId, java.lang.String urlTitle)
128                    throws com.liferay.portal.kernel.exception.PortalException {
129                    return getService().getEntry(groupId, urlTitle);
130            }
131    
132            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
133                    long groupId, java.util.Date displayDate, int status, int max) {
134                    return getService().getGroupEntries(groupId, displayDate, status, max);
135            }
136    
137            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
138                    long groupId, java.util.Date displayDate, int status, int start, int end) {
139                    return getService()
140                                       .getGroupEntries(groupId, displayDate, status, start, end);
141            }
142    
143            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
144                    long groupId, int status, int max) {
145                    return getService().getGroupEntries(groupId, status, max);
146            }
147    
148            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
149                    long groupId, int status, int start, int end) {
150                    return getService().getGroupEntries(groupId, status, start, end);
151            }
152    
153            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
154                    long groupId, int status, int start, int end,
155                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc) {
156                    return getService().getGroupEntries(groupId, status, start, end, obc);
157            }
158    
159            public static int getGroupEntriesCount(long groupId,
160                    java.util.Date displayDate, int status) {
161                    return getService().getGroupEntriesCount(groupId, displayDate, status);
162            }
163    
164            public static int getGroupEntriesCount(long groupId, int status) {
165                    return getService().getGroupEntriesCount(groupId, status);
166            }
167    
168            public static java.lang.String getGroupEntriesRSS(long groupId,
169                    java.util.Date displayDate, int status, int max, java.lang.String type,
170                    double version, java.lang.String displayStyle,
171                    java.lang.String feedURL, java.lang.String entryURL,
172                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
173                    throws com.liferay.portal.kernel.exception.PortalException {
174                    return getService()
175                                       .getGroupEntriesRSS(groupId, displayDate, status, max, type,
176                            version, displayStyle, feedURL, entryURL, themeDisplay);
177            }
178    
179            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
180                    long groupId, long userId, int status, int start, int end,
181                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.blogs.model.BlogsEntry> obc) {
182                    return getService()
183                                       .getGroupUserEntries(groupId, userId, status, start, end, obc);
184            }
185    
186            public static int getGroupUserEntriesCount(long groupId, long userId,
187                    int status) {
188                    return getService().getGroupUserEntriesCount(groupId, userId, status);
189            }
190    
191            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
192                    long companyId, long groupId, java.util.Date displayDate, int status,
193                    int max) throws com.liferay.portal.kernel.exception.PortalException {
194                    return getService()
195                                       .getGroupsEntries(companyId, groupId, displayDate, status,
196                            max);
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            /**
231            * Sets the Spring bean ID for this bean.
232            *
233            * @param beanIdentifier the Spring bean ID for this bean
234            */
235            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
236                    getService().setBeanIdentifier(beanIdentifier);
237            }
238    
239            public static void subscribe(long groupId)
240                    throws com.liferay.portal.kernel.exception.PortalException {
241                    getService().subscribe(groupId);
242            }
243    
244            public static void unsubscribe(long groupId)
245                    throws com.liferay.portal.kernel.exception.PortalException {
246                    getService().unsubscribe(groupId);
247            }
248    
249            /**
250            * @deprecated As of 7.0.0, replaced by {@link #updateEntry(long, String,
251            String, String, String, int, int, int, int, int, boolean,
252            boolean, String[], String, ImageSelector, ImageSelector,
253            ServiceContext)}
254            */
255            @Deprecated
256            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
257                    long entryId, java.lang.String title, java.lang.String description,
258                    java.lang.String content, int displayDateMonth, int displayDateDay,
259                    int displayDateYear, int displayDateHour, int displayDateMinute,
260                    boolean allowPingbacks, boolean allowTrackbacks,
261                    java.lang.String[] trackbacks, boolean smallImage,
262                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
263                    java.io.InputStream smallImageInputStream,
264                    com.liferay.portal.service.ServiceContext serviceContext)
265                    throws com.liferay.portal.kernel.exception.PortalException {
266                    return getService()
267                                       .updateEntry(entryId, title, description, content,
268                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
269                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
270                            smallImage, smallImageURL, smallImageFileName,
271                            smallImageInputStream, serviceContext);
272            }
273    
274            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
275                    long entryId, java.lang.String title, java.lang.String subtitle,
276                    java.lang.String description, java.lang.String content,
277                    int displayDateMonth, int displayDateDay, int displayDateYear,
278                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
279                    boolean allowTrackbacks, java.lang.String[] trackbacks,
280                    java.lang.String coverImageCaption,
281                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
282                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
283                    com.liferay.portal.service.ServiceContext serviceContext)
284                    throws com.liferay.portal.kernel.exception.PortalException {
285                    return getService()
286                                       .updateEntry(entryId, title, subtitle, description, content,
287                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
288                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
289                            coverImageCaption, coverImageImageSelector,
290                            smallImageImageSelector, serviceContext);
291            }
292    
293            public static BlogsEntryService getService() {
294                    if (_service == null) {
295                            _service = (BlogsEntryService)PortalBeanLocatorUtil.locate(BlogsEntryService.class.getName());
296    
297                            ReferenceRegistry.registerReference(BlogsEntryServiceUtil.class,
298                                    "_service");
299                    }
300    
301                    return _service;
302            }
303    
304            /**
305             * @deprecated As of 6.2.0
306             */
307            @Deprecated
308            public void setService(BlogsEntryService service) {
309            }
310    
311            private static BlogsEntryService _service;
312    }