001    /**
002     * Copyright (c) 2000-2013 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            * Returns the Spring bean ID for this bean.
046            *
047            * @return the Spring bean ID for this bean
048            */
049            public static java.lang.String getBeanIdentifier() {
050                    return getService().getBeanIdentifier();
051            }
052    
053            /**
054            * Sets the Spring bean ID for this bean.
055            *
056            * @param beanIdentifier the Spring bean ID for this bean
057            */
058            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059                    getService().setBeanIdentifier(beanIdentifier);
060            }
061    
062            public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
063                    java.lang.String title, java.lang.String description,
064                    java.lang.String content, int displayDateMonth, int displayDateDay,
065                    int displayDateYear, int displayDateHour, int displayDateMinute,
066                    boolean allowPingbacks, boolean allowTrackbacks,
067                    java.lang.String[] trackbacks, boolean smallImage,
068                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
069                    java.io.InputStream smallImageInputStream,
070                    com.liferay.portal.service.ServiceContext serviceContext)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException {
073                    return getService()
074                                       .addEntry(title, description, content, displayDateMonth,
075                            displayDateDay, displayDateYear, displayDateHour,
076                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
077                            smallImage, smallImageURL, smallImageFileName,
078                            smallImageInputStream, serviceContext);
079            }
080    
081            public static void deleteEntry(long entryId)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    getService().deleteEntry(entryId);
085            }
086    
087            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
088                    long companyId, java.util.Date displayDate, int status, int max)
089                    throws com.liferay.portal.kernel.exception.PortalException,
090                            com.liferay.portal.kernel.exception.SystemException {
091                    return getService()
092                                       .getCompanyEntries(companyId, displayDate, status, max);
093            }
094    
095            public static java.lang.String getCompanyEntriesRSS(long companyId,
096                    java.util.Date displayDate, int status, int max, java.lang.String type,
097                    double version, java.lang.String displayStyle,
098                    java.lang.String feedURL, java.lang.String entryURL,
099                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
100                    throws com.liferay.portal.kernel.exception.PortalException,
101                            com.liferay.portal.kernel.exception.SystemException {
102                    return getService()
103                                       .getCompanyEntriesRSS(companyId, displayDate, status, max,
104                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
105            }
106    
107            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
108                    long entryId)
109                    throws com.liferay.portal.kernel.exception.PortalException,
110                            com.liferay.portal.kernel.exception.SystemException {
111                    return getService().getEntry(entryId);
112            }
113    
114            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
115                    long groupId, java.lang.String urlTitle)
116                    throws com.liferay.portal.kernel.exception.PortalException,
117                            com.liferay.portal.kernel.exception.SystemException {
118                    return getService().getEntry(groupId, urlTitle);
119            }
120    
121            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
122                    long groupId, java.util.Date displayDate, int status, int max)
123                    throws com.liferay.portal.kernel.exception.SystemException {
124                    return getService().getGroupEntries(groupId, displayDate, status, max);
125            }
126    
127            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
128                    long groupId, java.util.Date displayDate, int status, int start, int end)
129                    throws com.liferay.portal.kernel.exception.SystemException {
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                    throws com.liferay.portal.kernel.exception.SystemException {
137                    return getService().getGroupEntries(groupId, status, max);
138            }
139    
140            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
141                    long groupId, int status, int start, int end)
142                    throws com.liferay.portal.kernel.exception.SystemException {
143                    return getService().getGroupEntries(groupId, status, start, end);
144            }
145    
146            public static int getGroupEntriesCount(long groupId,
147                    java.util.Date displayDate, int status)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return getService().getGroupEntriesCount(groupId, displayDate, status);
150            }
151    
152            public static int getGroupEntriesCount(long groupId, int status)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return getService().getGroupEntriesCount(groupId, status);
155            }
156    
157            public static java.lang.String getGroupEntriesRSS(long groupId,
158                    java.util.Date displayDate, int status, int max, java.lang.String type,
159                    double version, java.lang.String displayStyle,
160                    java.lang.String feedURL, java.lang.String entryURL,
161                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException {
164                    return getService()
165                                       .getGroupEntriesRSS(groupId, displayDate, status, max, type,
166                            version, displayStyle, feedURL, entryURL, themeDisplay);
167            }
168    
169            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
170                    long companyId, long groupId, java.util.Date displayDate, int status,
171                    int max)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    return getService()
175                                       .getGroupsEntries(companyId, groupId, displayDate, status,
176                            max);
177            }
178    
179            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
180                    long organizationId, java.util.Date displayDate, int status, int max)
181                    throws com.liferay.portal.kernel.exception.PortalException,
182                            com.liferay.portal.kernel.exception.SystemException {
183                    return getService()
184                                       .getOrganizationEntries(organizationId, displayDate, status,
185                            max);
186            }
187    
188            public static java.lang.String getOrganizationEntriesRSS(
189                    long organizationId, java.util.Date displayDate, int status, int max,
190                    java.lang.String type, double version, java.lang.String displayStyle,
191                    java.lang.String feedURL, java.lang.String entryURL,
192                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
193                    throws com.liferay.portal.kernel.exception.PortalException,
194                            com.liferay.portal.kernel.exception.SystemException {
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                            com.liferay.portal.kernel.exception.SystemException {
205                    return getService().moveEntryToTrash(entryId);
206            }
207    
208            public static void restoreEntryFromTrash(long entryId)
209                    throws com.liferay.portal.kernel.exception.PortalException,
210                            com.liferay.portal.kernel.exception.SystemException {
211                    getService().restoreEntryFromTrash(entryId);
212            }
213    
214            public static void subscribe(long groupId)
215                    throws com.liferay.portal.kernel.exception.PortalException,
216                            com.liferay.portal.kernel.exception.SystemException {
217                    getService().subscribe(groupId);
218            }
219    
220            public static void unsubscribe(long groupId)
221                    throws com.liferay.portal.kernel.exception.PortalException,
222                            com.liferay.portal.kernel.exception.SystemException {
223                    getService().unsubscribe(groupId);
224            }
225    
226            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
227                    long entryId, java.lang.String title, java.lang.String description,
228                    java.lang.String content, int displayDateMonth, int displayDateDay,
229                    int displayDateYear, int displayDateHour, int displayDateMinute,
230                    boolean allowPingbacks, boolean allowTrackbacks,
231                    java.lang.String[] trackbacks, boolean smallImage,
232                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
233                    java.io.InputStream smallImageInputStream,
234                    com.liferay.portal.service.ServiceContext serviceContext)
235                    throws com.liferay.portal.kernel.exception.PortalException,
236                            com.liferay.portal.kernel.exception.SystemException {
237                    return getService()
238                                       .updateEntry(entryId, title, description, content,
239                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
240                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
241                            smallImage, smallImageURL, smallImageFileName,
242                            smallImageInputStream, serviceContext);
243            }
244    
245            public static BlogsEntryService getService() {
246                    if (_service == null) {
247                            _service = (BlogsEntryService)PortalBeanLocatorUtil.locate(BlogsEntryService.class.getName());
248    
249                            ReferenceRegistry.registerReference(BlogsEntryServiceUtil.class,
250                                    "_service");
251                    }
252    
253                    return _service;
254            }
255    
256            /**
257             * @deprecated As of 6.2.0
258             */
259            public void setService(BlogsEntryService service) {
260            }
261    
262            private static BlogsEntryService _service;
263    }