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