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 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.blogs.kernel.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.kernel.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.blogs.kernel.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.blogs.kernel.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.blogs.kernel.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.blogs.kernel.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.blogs.kernel.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.blogs.kernel.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.blogs.kernel.model.BlogsEntry> getGroupEntries(
145                    long groupId, int status, int start, int end,
146                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.blogs.kernel.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.kernel.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.blogs.kernel.model.BlogsEntry> getGroupUserEntries(
171                    long groupId, long userId, int status, int start, int end,
172                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.blogs.kernel.model.BlogsEntry> obc) {
173                    return getService()
174                                       .getGroupUserEntries(groupId, userId, status, start, end, obc);
175            }
176    
177            public static java.util.List<com.liferay.blogs.kernel.model.BlogsEntry> getGroupUserEntries(
178                    long groupId, long userId, int[] statuses, int start, int end,
179                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.blogs.kernel.model.BlogsEntry> obc) {
180                    return getService()
181                                       .getGroupUserEntries(groupId, userId, statuses, start, end,
182                            obc);
183            }
184    
185            public static int getGroupUserEntriesCount(long groupId, long userId,
186                    int status) {
187                    return getService().getGroupUserEntriesCount(groupId, userId, status);
188            }
189    
190            public static int getGroupUserEntriesCount(long groupId, long userId,
191                    int[] statuses) {
192                    return getService().getGroupUserEntriesCount(groupId, userId, statuses);
193            }
194    
195            public static java.util.List<com.liferay.blogs.kernel.model.BlogsEntry> getGroupsEntries(
196                    long companyId, long groupId, java.util.Date displayDate, int status,
197                    int max) throws com.liferay.portal.kernel.exception.PortalException {
198                    return getService()
199                                       .getGroupsEntries(companyId, groupId, displayDate, status,
200                            max);
201            }
202    
203            /**
204            * Returns the OSGi service identifier.
205            *
206            * @return the OSGi service identifier
207            */
208            public static java.lang.String getOSGiServiceIdentifier() {
209                    return getService().getOSGiServiceIdentifier();
210            }
211    
212            public static java.util.List<com.liferay.blogs.kernel.model.BlogsEntry> getOrganizationEntries(
213                    long organizationId, java.util.Date displayDate, int status, int max)
214                    throws com.liferay.portal.kernel.exception.PortalException {
215                    return getService()
216                                       .getOrganizationEntries(organizationId, displayDate, status,
217                            max);
218            }
219    
220            public static java.lang.String getOrganizationEntriesRSS(
221                    long organizationId, java.util.Date displayDate, int status, int max,
222                    java.lang.String type, double version, java.lang.String displayStyle,
223                    java.lang.String feedURL, java.lang.String entryURL,
224                    com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
225                    throws com.liferay.portal.kernel.exception.PortalException {
226                    return getService()
227                                       .getOrganizationEntriesRSS(organizationId, displayDate,
228                            status, max, type, version, displayStyle, feedURL, entryURL,
229                            themeDisplay);
230            }
231    
232            public static com.liferay.blogs.kernel.model.BlogsEntry moveEntryToTrash(
233                    long entryId)
234                    throws com.liferay.portal.kernel.exception.PortalException {
235                    return getService().moveEntryToTrash(entryId);
236            }
237    
238            public static void restoreEntryFromTrash(long entryId)
239                    throws com.liferay.portal.kernel.exception.PortalException {
240                    getService().restoreEntryFromTrash(entryId);
241            }
242    
243            public static void subscribe(long groupId)
244                    throws com.liferay.portal.kernel.exception.PortalException {
245                    getService().subscribe(groupId);
246            }
247    
248            public static void unsubscribe(long groupId)
249                    throws com.liferay.portal.kernel.exception.PortalException {
250                    getService().unsubscribe(groupId);
251            }
252    
253            /**
254            * @deprecated As of 7.0.0, replaced by {@link #updateEntry(long, String,
255            String, String, String, int, int, int, int, int, boolean,
256            boolean, String[], String, ImageSelector, ImageSelector,
257            ServiceContext)}
258            */
259            @Deprecated
260            public static com.liferay.blogs.kernel.model.BlogsEntry updateEntry(
261                    long entryId, java.lang.String title, java.lang.String description,
262                    java.lang.String content, int displayDateMonth, int displayDateDay,
263                    int displayDateYear, int displayDateHour, int displayDateMinute,
264                    boolean allowPingbacks, boolean allowTrackbacks,
265                    java.lang.String[] trackbacks, boolean smallImage,
266                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
267                    java.io.InputStream smallImageInputStream,
268                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
269                    throws com.liferay.portal.kernel.exception.PortalException {
270                    return getService()
271                                       .updateEntry(entryId, title, description, content,
272                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
273                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
274                            smallImage, smallImageURL, smallImageFileName,
275                            smallImageInputStream, serviceContext);
276            }
277    
278            public static com.liferay.blogs.kernel.model.BlogsEntry updateEntry(
279                    long entryId, java.lang.String title, java.lang.String subtitle,
280                    java.lang.String description, java.lang.String content,
281                    int displayDateMonth, int displayDateDay, int displayDateYear,
282                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
283                    boolean allowTrackbacks, java.lang.String[] trackbacks,
284                    java.lang.String coverImageCaption,
285                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector,
286                    com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector,
287                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
288                    throws com.liferay.portal.kernel.exception.PortalException {
289                    return getService()
290                                       .updateEntry(entryId, title, subtitle, description, content,
291                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
292                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
293                            coverImageCaption, coverImageImageSelector,
294                            smallImageImageSelector, serviceContext);
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    }