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 ThemeLocalService} 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       ThemeLocalService
030     * @generated
031     */
032    public class ThemeLocalServiceUtil {
033            public static com.liferay.portal.model.ColorScheme getColorScheme(
034                    long companyId, java.lang.String themeId,
035                    java.lang.String colorSchemeId, boolean wapTheme)
036                    throws com.liferay.portal.kernel.exception.SystemException {
037                    return getService()
038                                       .getColorScheme(companyId, themeId, colorSchemeId, wapTheme);
039            }
040    
041            public static com.liferay.portal.model.Theme getTheme(long companyId,
042                    java.lang.String themeId, boolean wapTheme)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return getService().getTheme(companyId, themeId, wapTheme);
045            }
046    
047            public static java.util.List<com.liferay.portal.model.Theme> getThemes(
048                    long companyId) {
049                    return getService().getThemes(companyId);
050            }
051    
052            public static java.util.List<com.liferay.portal.model.Theme> getThemes(
053                    long companyId, long groupId, long userId, boolean wapTheme)
054                    throws com.liferay.portal.kernel.exception.SystemException {
055                    return getService().getThemes(companyId, groupId, userId, wapTheme);
056            }
057    
058            public static java.util.List<com.liferay.portal.model.Theme> getWARThemes() {
059                    return getService().getWARThemes();
060            }
061    
062            public static java.util.List<java.lang.String> init(
063                    javax.servlet.ServletContext servletContext,
064                    java.lang.String themesPath, boolean loadFromServletContext,
065                    java.lang.String[] xmls,
066                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
067                    return getService()
068                                       .init(servletContext, themesPath, loadFromServletContext,
069                            xmls, pluginPackage);
070            }
071    
072            public static java.util.List<java.lang.String> init(
073                    java.lang.String servletContextName,
074                    javax.servlet.ServletContext servletContext,
075                    java.lang.String themesPath, boolean loadFromServletContext,
076                    java.lang.String[] xmls,
077                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
078                    return getService()
079                                       .init(servletContextName, servletContext, themesPath,
080                            loadFromServletContext, xmls, pluginPackage);
081            }
082    
083            public static void uninstallThemes(
084                    java.util.List<java.lang.String> themeIds) {
085                    getService().uninstallThemes(themeIds);
086            }
087    
088            public static ThemeLocalService getService() {
089                    if (_service == null) {
090                            _service = (ThemeLocalService)PortalBeanLocatorUtil.locate(ThemeLocalService.class.getName());
091                    }
092    
093                    return _service;
094            }
095    
096            public void setService(ThemeLocalService service) {
097                    _service = service;
098            }
099    
100            private static ThemeLocalService _service;
101    }