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     * <p>
021     * This class provides static methods for the
022     * {@link BlogsEntryService} bean. The static methods of
023     * this class calls the same methods of the bean instance. It's convenient to be
024     * able to just write one line to call a method on a bean instead of writing a
025     * lookup call and a method call.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       BlogsEntryService
030     * @generated
031     */
032    public class BlogsEntryServiceUtil {
033            public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
034                    java.lang.String title, java.lang.String content, int displayDateMonth,
035                    int displayDateDay, int displayDateYear, int displayDateHour,
036                    int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks,
037                    java.lang.String[] trackbacks,
038                    com.liferay.portal.service.ServiceContext serviceContext)
039                    throws com.liferay.portal.kernel.exception.PortalException,
040                            com.liferay.portal.kernel.exception.SystemException {
041                    return getService()
042                                       .addEntry(title, content, displayDateMonth, displayDateDay,
043                            displayDateYear, displayDateHour, displayDateMinute,
044                            allowPingbacks, allowTrackbacks, trackbacks, serviceContext);
045            }
046    
047            public static void deleteEntry(long entryId)
048                    throws com.liferay.portal.kernel.exception.PortalException,
049                            com.liferay.portal.kernel.exception.SystemException {
050                    getService().deleteEntry(entryId);
051            }
052    
053            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
054                    long companyId, int status, int max)
055                    throws com.liferay.portal.kernel.exception.PortalException,
056                            com.liferay.portal.kernel.exception.SystemException {
057                    return getService().getCompanyEntries(companyId, status, max);
058            }
059    
060            public static java.lang.String getCompanyEntriesRSS(long companyId,
061                    int status, int max, java.lang.String type, double version,
062                    java.lang.String displayStyle, java.lang.String feedURL,
063                    java.lang.String entryURL,
064                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    return getService()
068                                       .getCompanyEntriesRSS(companyId, status, max, type, version,
069                            displayStyle, feedURL, entryURL, themeDisplay);
070            }
071    
072            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
073                    long entryId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return getService().getEntry(entryId);
077            }
078    
079            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
080                    long groupId, java.lang.String urlTitle)
081                    throws com.liferay.portal.kernel.exception.PortalException,
082                            com.liferay.portal.kernel.exception.SystemException {
083                    return getService().getEntry(groupId, urlTitle);
084            }
085    
086            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
087                    long groupId, int status, int max)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return getService().getGroupEntries(groupId, status, max);
091            }
092    
093            public static java.lang.String getGroupEntriesRSS(long groupId, int status,
094                    int max, java.lang.String type, double version,
095                    java.lang.String displayStyle, java.lang.String feedURL,
096                    java.lang.String entryURL,
097                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
098                    throws com.liferay.portal.kernel.exception.PortalException,
099                            com.liferay.portal.kernel.exception.SystemException {
100                    return getService()
101                                       .getGroupEntriesRSS(groupId, status, max, type, version,
102                            displayStyle, feedURL, entryURL, themeDisplay);
103            }
104    
105            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
106                    long companyId, long groupId, int status, int max)
107                    throws com.liferay.portal.kernel.exception.PortalException,
108                            com.liferay.portal.kernel.exception.SystemException {
109                    return getService().getGroupsEntries(companyId, groupId, status, max);
110            }
111    
112            public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
113                    long organizationId, int status, int max)
114                    throws com.liferay.portal.kernel.exception.PortalException,
115                            com.liferay.portal.kernel.exception.SystemException {
116                    return getService().getOrganizationEntries(organizationId, status, max);
117            }
118    
119            public static java.lang.String getOrganizationEntriesRSS(
120                    long organizationId, int status, int max, java.lang.String type,
121                    double version, java.lang.String displayStyle,
122                    java.lang.String feedURL, java.lang.String entryURL,
123                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
124                    throws com.liferay.portal.kernel.exception.PortalException,
125                            com.liferay.portal.kernel.exception.SystemException {
126                    return getService()
127                                       .getOrganizationEntriesRSS(organizationId, status, max,
128                            type, version, displayStyle, feedURL, entryURL, themeDisplay);
129            }
130    
131            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
132                    long entryId, java.lang.String title, java.lang.String content,
133                    int displayDateMonth, int displayDateDay, int displayDateYear,
134                    int displayDateHour, int displayDateMinute, boolean allowPingbacks,
135                    boolean allowTrackbacks, java.lang.String[] trackbacks,
136                    com.liferay.portal.service.ServiceContext serviceContext)
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException {
139                    return getService()
140                                       .updateEntry(entryId, title, content, displayDateMonth,
141                            displayDateDay, displayDateYear, displayDateHour,
142                            displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
143                            serviceContext);
144            }
145    
146            public static BlogsEntryService getService() {
147                    if (_service == null) {
148                            _service = (BlogsEntryService)PortalBeanLocatorUtil.locate(BlogsEntryService.class.getName());
149                    }
150    
151                    return _service;
152            }
153    
154            public void setService(BlogsEntryService service) {
155                    _service = service;
156            }
157    
158            private static BlogsEntryService _service;
159    }