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 int getGroupEntriesCount(long groupId,
154                    java.util.Date displayDate, int status) {
155                    return getService().getGroupEntriesCount(groupId, displayDate, status);
156            }
157    
158            public static int getGroupEntriesCount(long groupId, int status) {
159                    return getService().getGroupEntriesCount(groupId, status);
160            }
161    
162            public static java.lang.String getGroupEntriesRSS(long groupId,
163                    java.util.Date displayDate, int status, int max, java.lang.String type,
164                    double version, java.lang.String displayStyle,
165                    java.lang.String feedURL, java.lang.String entryURL,
166                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
167                    throws com.liferay.portal.kernel.exception.PortalException {
168                    return getService()
169                                       .getGroupEntriesRSS(groupId, displayDate, status, max, type,
170                            version, displayStyle, feedURL, entryURL, themeDisplay);
171            }
172    
173            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
174                    long companyId, long groupId, java.util.Date displayDate, int status,
175                    int max) throws com.liferay.portal.kernel.exception.PortalException {
176                    return getService()
177                                       .getGroupsEntries(companyId, groupId, displayDate, status,
178                            max);
179            }
180    
181            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
182                    long organizationId, java.util.Date displayDate, int status, int max)
183                    throws com.liferay.portal.kernel.exception.PortalException {
184                    return getService()
185                                       .getOrganizationEntries(organizationId, displayDate, status,
186                            max);
187            }
188    
189            public static java.lang.String getOrganizationEntriesRSS(
190                    long organizationId, java.util.Date displayDate, int status, int max,
191                    java.lang.String type, double version, java.lang.String displayStyle,
192                    java.lang.String feedURL, java.lang.String entryURL,
193                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
194                    throws com.liferay.portal.kernel.exception.PortalException {
195                    return getService()
196                                       .getOrganizationEntriesRSS(organizationId, displayDate,
197                            status, max, type, version, displayStyle, feedURL, entryURL,
198                            themeDisplay);
199            }
200    
201            public static com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
202                    long entryId)
203                    throws com.liferay.portal.kernel.exception.PortalException {
204                    return getService().moveEntryToTrash(entryId);
205            }
206    
207            public static void restoreEntryFromTrash(long entryId)
208                    throws com.liferay.portal.kernel.exception.PortalException {
209                    getService().restoreEntryFromTrash(entryId);
210            }
211    
212            /**
213            * Sets the Spring bean ID for this bean.
214            *
215            * @param beanIdentifier the Spring bean ID for this bean
216            */
217            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
218                    getService().setBeanIdentifier(beanIdentifier);
219            }
220    
221            public static void subscribe(long groupId)
222                    throws com.liferay.portal.kernel.exception.PortalException {
223                    getService().subscribe(groupId);
224            }
225    
226            public static void unsubscribe(long groupId)
227                    throws com.liferay.portal.kernel.exception.PortalException {
228                    getService().unsubscribe(groupId);
229            }
230    
231            /**
232            * @deprecated As of 7.0.0, replaced by {@link #updateEntry(long, String,
233            String, String, String, int, int, int, int, int, boolean,
234            boolean, String[], String, ImageSelector, ImageSelector,
235            ServiceContext)}
236            */
237            @Deprecated
238            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
239                    long entryId, java.lang.String title, java.lang.String description,
240                    java.lang.String content, int displayDateMonth, int displayDateDay,
241                    int displayDateYear, int displayDateHour, int displayDateMinute,
242                    boolean allowPingbacks, boolean allowTrackbacks,
243                    java.lang.String[] trackbacks, boolean smallImage,
244                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
245                    java.io.InputStream smallImageInputStream,
246                    com.liferay.portal.service.ServiceContext serviceContext)
247                    throws com.liferay.portal.kernel.exception.PortalException {
248                    return getService()
249                                       .updateEntry(entryId, title, description, content,
250                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
251                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
252                            smallImage, smallImageURL, smallImageFileName,
253                            smallImageInputStream, serviceContext);
254            }
255    
256            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
257                    long entryId, java.lang.String title, java.lang.String subtitle,
258                    java.lang.String description, java.lang.String content,
259                    int displayDateMonth, int displayDateDay, int displayDateYear,
260                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
261                    boolean allowTrackbacks, java.lang.String[] trackbacks,
262                    java.lang.String coverImageCaption,
263                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
264                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
265                    com.liferay.portal.service.ServiceContext serviceContext)
266                    throws com.liferay.portal.kernel.exception.PortalException {
267                    return getService()
268                                       .updateEntry(entryId, title, subtitle, description, content,
269                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
270                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
271                            coverImageCaption, coverImageImageSelector,
272                            smallImageImageSelector, serviceContext);
273            }
274    
275            public static BlogsEntryService getService() {
276                    if (_service == null) {
277                            _service = (BlogsEntryService)PortalBeanLocatorUtil.locate(BlogsEntryService.class.getName());
278    
279                            ReferenceRegistry.registerReference(BlogsEntryServiceUtil.class,
280                                    "_service");
281                    }
282    
283                    return _service;
284            }
285    
286            /**
287             * @deprecated As of 6.2.0
288             */
289            @Deprecated
290            public void setService(BlogsEntryService service) {
291            }
292    
293            private static BlogsEntryService _service;
294    }