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 com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * Provides the remote service utility for BlogsEntry. This utility wraps
022     * {@link com.liferay.portlet.blogs.service.impl.BlogsEntryServiceImpl} and is the
023     * primary access point for service operations in application layer code running
024     * on a remote server. Methods of this service are expected to have security
025     * checks based on the propagated JAAS credentials because this service can be
026     * accessed remotely.
027     *
028     * @author Brian Wing Shun Chan
029     * @see BlogsEntryService
030     * @see com.liferay.portlet.blogs.service.base.BlogsEntryServiceBaseImpl
031     * @see com.liferay.portlet.blogs.service.impl.BlogsEntryServiceImpl
032     * @generated
033     */
034    public class BlogsEntryServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * 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.
039             */
040    
041            /**
042            * Returns the Spring bean ID for this bean.
043            *
044            * @return the Spring bean ID for this bean
045            */
046            public static java.lang.String getBeanIdentifier() {
047                    return getService().getBeanIdentifier();
048            }
049    
050            /**
051            * Sets the Spring bean ID for this bean.
052            *
053            * @param beanIdentifier the Spring bean ID for this bean
054            */
055            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056                    getService().setBeanIdentifier(beanIdentifier);
057            }
058    
059            public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
060                    java.lang.String title, java.lang.String description,
061                    java.lang.String content, int displayDateMonth, int displayDateDay,
062                    int displayDateYear, int displayDateHour, int displayDateMinute,
063                    boolean allowPingbacks, boolean allowTrackbacks,
064                    java.lang.String[] trackbacks, boolean smallImage,
065                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
066                    java.io.InputStream smallImageInputStream,
067                    com.liferay.portal.service.ServiceContext serviceContext)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return getService()
071                                       .addEntry(title, description, content, displayDateMonth,
072                            displayDateDay, displayDateYear, displayDateHour,
073                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
074                            smallImage, smallImageURL, smallImageFileName,
075                            smallImageInputStream, serviceContext);
076            }
077    
078            public static void deleteEntry(long entryId)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException {
081                    getService().deleteEntry(entryId);
082            }
083    
084            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
085                    long companyId, java.util.Date displayDate, int status, int max)
086                    throws com.liferay.portal.kernel.exception.PortalException,
087                            com.liferay.portal.kernel.exception.SystemException {
088                    return getService()
089                                       .getCompanyEntries(companyId, displayDate, status, max);
090            }
091    
092            public static java.lang.String getCompanyEntriesRSS(long companyId,
093                    java.util.Date displayDate, int status, int max, java.lang.String type,
094                    double version, java.lang.String displayStyle,
095                    java.lang.String feedURL, java.lang.String entryURL,
096                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
097                    throws com.liferay.portal.kernel.exception.PortalException,
098                            com.liferay.portal.kernel.exception.SystemException {
099                    return getService()
100                                       .getCompanyEntriesRSS(companyId, displayDate, status, max,
101                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
102            }
103    
104            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
105                    long entryId)
106                    throws com.liferay.portal.kernel.exception.PortalException,
107                            com.liferay.portal.kernel.exception.SystemException {
108                    return getService().getEntry(entryId);
109            }
110    
111            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
112                    long groupId, java.lang.String urlTitle)
113                    throws com.liferay.portal.kernel.exception.PortalException,
114                            com.liferay.portal.kernel.exception.SystemException {
115                    return getService().getEntry(groupId, urlTitle);
116            }
117    
118            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
119                    long groupId, java.util.Date displayDate, int status, int max)
120                    throws com.liferay.portal.kernel.exception.SystemException {
121                    return getService().getGroupEntries(groupId, displayDate, status, max);
122            }
123    
124            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
125                    long groupId, java.util.Date displayDate, int status, int start, int end)
126                    throws com.liferay.portal.kernel.exception.SystemException {
127                    return getService()
128                                       .getGroupEntries(groupId, displayDate, status, start, end);
129            }
130    
131            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
132                    long groupId, int status, int max)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return getService().getGroupEntries(groupId, status, max);
135            }
136    
137            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
138                    long groupId, int status, int start, int end)
139                    throws com.liferay.portal.kernel.exception.SystemException {
140                    return getService().getGroupEntries(groupId, status, start, end);
141            }
142    
143            public static int getGroupEntriesCount(long groupId,
144                    java.util.Date displayDate, int status)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    return getService().getGroupEntriesCount(groupId, displayDate, status);
147            }
148    
149            public static int getGroupEntriesCount(long groupId, int status)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return getService().getGroupEntriesCount(groupId, status);
152            }
153    
154            public static java.lang.String getGroupEntriesRSS(long groupId,
155                    java.util.Date displayDate, int status, int max, java.lang.String type,
156                    double version, java.lang.String displayStyle,
157                    java.lang.String feedURL, java.lang.String entryURL,
158                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
159                    throws com.liferay.portal.kernel.exception.PortalException,
160                            com.liferay.portal.kernel.exception.SystemException {
161                    return getService()
162                                       .getGroupEntriesRSS(groupId, displayDate, status, max, type,
163                            version, displayStyle, feedURL, entryURL, themeDisplay);
164            }
165    
166            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
167                    long companyId, long groupId, java.util.Date displayDate, int status,
168                    int max)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException {
171                    return getService()
172                                       .getGroupsEntries(companyId, groupId, displayDate, status,
173                            max);
174            }
175    
176            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
177                    long organizationId, java.util.Date displayDate, int status, int max)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return getService()
181                                       .getOrganizationEntries(organizationId, displayDate, status,
182                            max);
183            }
184    
185            public static java.lang.String getOrganizationEntriesRSS(
186                    long organizationId, java.util.Date displayDate, int status, int max,
187                    java.lang.String type, double version, java.lang.String displayStyle,
188                    java.lang.String feedURL, java.lang.String entryURL,
189                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
190                    throws com.liferay.portal.kernel.exception.PortalException,
191                            com.liferay.portal.kernel.exception.SystemException {
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                            com.liferay.portal.kernel.exception.SystemException {
202                    return getService().moveEntryToTrash(entryId);
203            }
204    
205            public static void restoreEntryFromTrash(long entryId)
206                    throws com.liferay.portal.kernel.exception.PortalException,
207                            com.liferay.portal.kernel.exception.SystemException {
208                    getService().restoreEntryFromTrash(entryId);
209            }
210    
211            public static void subscribe(long groupId)
212                    throws com.liferay.portal.kernel.exception.PortalException,
213                            com.liferay.portal.kernel.exception.SystemException {
214                    getService().subscribe(groupId);
215            }
216    
217            public static void unsubscribe(long groupId)
218                    throws com.liferay.portal.kernel.exception.PortalException,
219                            com.liferay.portal.kernel.exception.SystemException {
220                    getService().unsubscribe(groupId);
221            }
222    
223            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
224                    long entryId, java.lang.String title, java.lang.String description,
225                    java.lang.String content, int displayDateMonth, int displayDateDay,
226                    int displayDateYear, int displayDateHour, int displayDateMinute,
227                    boolean allowPingbacks, boolean allowTrackbacks,
228                    java.lang.String[] trackbacks, boolean smallImage,
229                    java.lang.String smallImageURL, java.lang.String smallImageFileName,
230                    java.io.InputStream smallImageInputStream,
231                    com.liferay.portal.service.ServiceContext serviceContext)
232                    throws com.liferay.portal.kernel.exception.PortalException,
233                            com.liferay.portal.kernel.exception.SystemException {
234                    return getService()
235                                       .updateEntry(entryId, title, description, content,
236                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
237                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
238                            smallImage, smallImageURL, smallImageFileName,
239                            smallImageInputStream, serviceContext);
240            }
241    
242            public static BlogsEntryService getService() {
243                    if (_service == null) {
244                            _service = (BlogsEntryService)PortalBeanLocatorUtil.locate(BlogsEntryService.class.getName());
245    
246                            ReferenceRegistry.registerReference(BlogsEntryServiceUtil.class,
247                                    "_service");
248                    }
249    
250                    return _service;
251            }
252    
253            /**
254             * @deprecated As of 6.2.0
255             */
256            public void setService(BlogsEntryService service) {
257            }
258    
259            private static BlogsEntryService _service;
260    }