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     * The utility for the theme local service. This utility wraps {@link com.liferay.portal.service.impl.ThemeLocalServiceImpl} and is the primary access point for service operations in application layer code running on the local server.
021     *
022     * <p>
023     * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.ThemeLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
024     * </p>
025     *
026     * <p>
027     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see ThemeLocalService
032     * @see com.liferay.portal.service.base.ThemeLocalServiceBaseImpl
033     * @see com.liferay.portal.service.impl.ThemeLocalServiceImpl
034     * @generated
035     */
036    public class ThemeLocalServiceUtil {
037            public static com.liferay.portal.model.ColorScheme getColorScheme(
038                    long companyId, java.lang.String themeId,
039                    java.lang.String colorSchemeId, boolean wapTheme)
040                    throws com.liferay.portal.kernel.exception.SystemException {
041                    return getService()
042                                       .getColorScheme(companyId, themeId, colorSchemeId, wapTheme);
043            }
044    
045            public static com.liferay.portal.model.Theme getTheme(long companyId,
046                    java.lang.String themeId, boolean wapTheme)
047                    throws com.liferay.portal.kernel.exception.SystemException {
048                    return getService().getTheme(companyId, themeId, wapTheme);
049            }
050    
051            public static java.util.List<com.liferay.portal.model.Theme> getThemes(
052                    long companyId) {
053                    return getService().getThemes(companyId);
054            }
055    
056            public static java.util.List<com.liferay.portal.model.Theme> getThemes(
057                    long companyId, long groupId, long userId, boolean wapTheme)
058                    throws com.liferay.portal.kernel.exception.SystemException {
059                    return getService().getThemes(companyId, groupId, userId, wapTheme);
060            }
061    
062            public static java.util.List<com.liferay.portal.model.Theme> getWARThemes() {
063                    return getService().getWARThemes();
064            }
065    
066            public static java.util.List<java.lang.String> init(
067                    javax.servlet.ServletContext servletContext,
068                    java.lang.String themesPath, boolean loadFromServletContext,
069                    java.lang.String[] xmls,
070                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
071                    return getService()
072                                       .init(servletContext, themesPath, loadFromServletContext,
073                            xmls, pluginPackage);
074            }
075    
076            public static java.util.List<java.lang.String> init(
077                    java.lang.String servletContextName,
078                    javax.servlet.ServletContext servletContext,
079                    java.lang.String themesPath, boolean loadFromServletContext,
080                    java.lang.String[] xmls,
081                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
082                    return getService()
083                                       .init(servletContextName, servletContext, themesPath,
084                            loadFromServletContext, xmls, pluginPackage);
085            }
086    
087            public static void uninstallThemes(
088                    java.util.List<java.lang.String> themeIds) {
089                    getService().uninstallThemes(themeIds);
090            }
091    
092            public static ThemeLocalService getService() {
093                    if (_service == null) {
094                            _service = (ThemeLocalService)PortalBeanLocatorUtil.locate(ThemeLocalService.class.getName());
095                    }
096    
097                    return _service;
098            }
099    
100            public void setService(ThemeLocalService service) {
101                    _service = service;
102            }
103    
104            private static ThemeLocalService _service;
105    }