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.portal.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * <p>
021     * This class provides static methods for the
022     * {@link WebsiteLocalService} 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       WebsiteLocalService
030     * @generated
031     */
032    public class WebsiteLocalServiceUtil {
033            public static com.liferay.portal.model.Website addWebsite(
034                    com.liferay.portal.model.Website website)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return getService().addWebsite(website);
037            }
038    
039            public static com.liferay.portal.model.Website createWebsite(long websiteId) {
040                    return getService().createWebsite(websiteId);
041            }
042    
043            public static void deleteWebsite(long websiteId)
044                    throws com.liferay.portal.kernel.exception.PortalException,
045                            com.liferay.portal.kernel.exception.SystemException {
046                    getService().deleteWebsite(websiteId);
047            }
048    
049            public static void deleteWebsite(com.liferay.portal.model.Website website)
050                    throws com.liferay.portal.kernel.exception.SystemException {
051                    getService().deleteWebsite(website);
052            }
053    
054            @SuppressWarnings("unchecked")
055            public static java.util.List dynamicQuery(
056                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
057                    throws com.liferay.portal.kernel.exception.SystemException {
058                    return getService().dynamicQuery(dynamicQuery);
059            }
060    
061            @SuppressWarnings("unchecked")
062            public static java.util.List dynamicQuery(
063                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
064                    int end) throws com.liferay.portal.kernel.exception.SystemException {
065                    return getService().dynamicQuery(dynamicQuery, start, end);
066            }
067    
068            @SuppressWarnings("unchecked")
069            public static java.util.List dynamicQuery(
070                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071                    int end,
072                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073                    throws com.liferay.portal.kernel.exception.SystemException {
074                    return getService()
075                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
076            }
077    
078            public static long dynamicQueryCount(
079                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
080                    throws com.liferay.portal.kernel.exception.SystemException {
081                    return getService().dynamicQueryCount(dynamicQuery);
082            }
083    
084            public static com.liferay.portal.model.Website getWebsite(long websiteId)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException {
087                    return getService().getWebsite(websiteId);
088            }
089    
090            public static java.util.List<com.liferay.portal.model.Website> getWebsites(
091                    int start, int end)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return getService().getWebsites(start, end);
094            }
095    
096            public static int getWebsitesCount()
097                    throws com.liferay.portal.kernel.exception.SystemException {
098                    return getService().getWebsitesCount();
099            }
100    
101            public static com.liferay.portal.model.Website updateWebsite(
102                    com.liferay.portal.model.Website website)
103                    throws com.liferay.portal.kernel.exception.SystemException {
104                    return getService().updateWebsite(website);
105            }
106    
107            public static com.liferay.portal.model.Website updateWebsite(
108                    com.liferay.portal.model.Website website, boolean merge)
109                    throws com.liferay.portal.kernel.exception.SystemException {
110                    return getService().updateWebsite(website, merge);
111            }
112    
113            public static com.liferay.portal.model.Website addWebsite(long userId,
114                    java.lang.String className, long classPK, java.lang.String url,
115                    int typeId, boolean primary)
116                    throws com.liferay.portal.kernel.exception.PortalException,
117                            com.liferay.portal.kernel.exception.SystemException {
118                    return getService()
119                                       .addWebsite(userId, className, classPK, url, typeId, primary);
120            }
121    
122            public static void deleteWebsites(long companyId,
123                    java.lang.String className, long classPK)
124                    throws com.liferay.portal.kernel.exception.SystemException {
125                    getService().deleteWebsites(companyId, className, classPK);
126            }
127    
128            public static java.util.List<com.liferay.portal.model.Website> getWebsites()
129                    throws com.liferay.portal.kernel.exception.SystemException {
130                    return getService().getWebsites();
131            }
132    
133            public static java.util.List<com.liferay.portal.model.Website> getWebsites(
134                    long companyId, java.lang.String className, long classPK)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    return getService().getWebsites(companyId, className, classPK);
137            }
138    
139            public static com.liferay.portal.model.Website updateWebsite(
140                    long websiteId, java.lang.String url, int typeId, boolean primary)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException {
143                    return getService().updateWebsite(websiteId, url, typeId, primary);
144            }
145    
146            public static WebsiteLocalService getService() {
147                    if (_service == null) {
148                            _service = (WebsiteLocalService)PortalBeanLocatorUtil.locate(WebsiteLocalService.class.getName());
149                    }
150    
151                    return _service;
152            }
153    
154            public void setService(WebsiteLocalService service) {
155                    _service = service;
156            }
157    
158            private static WebsiteLocalService _service;
159    }