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