001    /**
002     * Copyright (c) 2000-2010 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    
019    /**
020     * 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.
021     *
022     * <p>
023     * 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.
024     * </p>
025     *
026     * <p>
027     * 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.
028     * </p>
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    public class BlogsEntryServiceUtil {
037            public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
038                    java.lang.String title, java.lang.String content, int displayDateMonth,
039                    int displayDateDay, int displayDateYear, int displayDateHour,
040                    int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks,
041                    java.lang.String[] trackbacks,
042                    com.liferay.portal.service.ServiceContext serviceContext)
043                    throws com.liferay.portal.kernel.exception.PortalException,
044                            com.liferay.portal.kernel.exception.SystemException {
045                    return getService()
046                                       .addEntry(title, content, displayDateMonth, displayDateDay,
047                            displayDateYear, displayDateHour, displayDateMinute,
048                            allowPingbacks, allowTrackbacks, trackbacks, serviceContext);
049            }
050    
051            public static void deleteEntry(long entryId)
052                    throws com.liferay.portal.kernel.exception.PortalException,
053                            com.liferay.portal.kernel.exception.SystemException {
054                    getService().deleteEntry(entryId);
055            }
056    
057            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
058                    long companyId, int status, int max)
059                    throws com.liferay.portal.kernel.exception.PortalException,
060                            com.liferay.portal.kernel.exception.SystemException {
061                    return getService().getCompanyEntries(companyId, status, max);
062            }
063    
064            public static java.lang.String getCompanyEntriesRSS(long companyId,
065                    int status, int max, java.lang.String type, double version,
066                    java.lang.String displayStyle, java.lang.String feedURL,
067                    java.lang.String entryURL,
068                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return getService()
072                                       .getCompanyEntriesRSS(companyId, status, max, type, version,
073                            displayStyle, feedURL, entryURL, themeDisplay);
074            }
075    
076            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
077                    long entryId)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException {
080                    return getService().getEntry(entryId);
081            }
082    
083            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
084                    long groupId, java.lang.String urlTitle)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException {
087                    return getService().getEntry(groupId, urlTitle);
088            }
089    
090            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
091                    long groupId, int status, int max)
092                    throws com.liferay.portal.kernel.exception.PortalException,
093                            com.liferay.portal.kernel.exception.SystemException {
094                    return getService().getGroupEntries(groupId, status, max);
095            }
096    
097            public static java.lang.String getGroupEntriesRSS(long groupId, int status,
098                    int max, java.lang.String type, double version,
099                    java.lang.String displayStyle, java.lang.String feedURL,
100                    java.lang.String entryURL,
101                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
102                    throws com.liferay.portal.kernel.exception.PortalException,
103                            com.liferay.portal.kernel.exception.SystemException {
104                    return getService()
105                                       .getGroupEntriesRSS(groupId, status, max, type, version,
106                            displayStyle, feedURL, entryURL, themeDisplay);
107            }
108    
109            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
110                    long companyId, long groupId, int status, int max)
111                    throws com.liferay.portal.kernel.exception.PortalException,
112                            com.liferay.portal.kernel.exception.SystemException {
113                    return getService().getGroupsEntries(companyId, groupId, status, max);
114            }
115    
116            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
117                    long organizationId, int status, int max)
118                    throws com.liferay.portal.kernel.exception.PortalException,
119                            com.liferay.portal.kernel.exception.SystemException {
120                    return getService().getOrganizationEntries(organizationId, status, max);
121            }
122    
123            public static java.lang.String getOrganizationEntriesRSS(
124                    long organizationId, int status, int max, java.lang.String type,
125                    double version, java.lang.String displayStyle,
126                    java.lang.String feedURL, java.lang.String entryURL,
127                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
128                    throws com.liferay.portal.kernel.exception.PortalException,
129                            com.liferay.portal.kernel.exception.SystemException {
130                    return getService()
131                                       .getOrganizationEntriesRSS(organizationId, status, max,
132                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
133            }
134    
135            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
136                    long entryId, java.lang.String title, java.lang.String content,
137                    int displayDateMonth, int displayDateDay, int displayDateYear,
138                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
139                    boolean allowTrackbacks, java.lang.String[] trackbacks,
140                    com.liferay.portal.service.ServiceContext serviceContext)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException {
143                    return getService()
144                                       .updateEntry(entryId, title, content, displayDateMonth,
145                            displayDateDay, displayDateYear, displayDateHour,
146                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
147                            serviceContext);
148            }
149    
150            public static BlogsEntryService getService() {
151                    if (_service == null) {
152                            _service = (BlogsEntryService)PortalBeanLocatorUtil.locate(BlogsEntryService.class.getName());
153                    }
154    
155                    return _service;
156            }
157    
158            public void setService(BlogsEntryService service) {
159                    _service = service;
160            }
161    
162            private static BlogsEntryService _service;
163    }