001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the local service utility for Theme. This utility wraps
024     * {@link com.liferay.portal.service.impl.ThemeLocalServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on the local server. Methods of this service will not have security checks
027     * based on the propagated JAAS credentials because this service can only be
028     * accessed from within the same VM.
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    @ProviderType
037    public class ThemeLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.ThemeLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043            public static com.liferay.portal.model.ColorScheme fetchColorScheme(
044                    long companyId, java.lang.String themeId, java.lang.String colorSchemeId) {
045                    return getService().fetchColorScheme(companyId, themeId, colorSchemeId);
046            }
047    
048            public static com.liferay.portal.model.Theme fetchTheme(long companyId,
049                    java.lang.String themeId) {
050                    return getService().fetchTheme(companyId, themeId);
051            }
052    
053            /**
054            * Returns the Spring bean ID for this bean.
055            *
056            * @return the Spring bean ID for this bean
057            */
058            public static java.lang.String getBeanIdentifier() {
059                    return getService().getBeanIdentifier();
060            }
061    
062            public static com.liferay.portal.model.ColorScheme getColorScheme(
063                    long companyId, java.lang.String themeId,
064                    java.lang.String colorSchemeId, boolean wapTheme) {
065                    return getService()
066                                       .getColorScheme(companyId, themeId, colorSchemeId, wapTheme);
067            }
068    
069            public static java.util.List<com.liferay.portal.model.Theme> getControlPanelThemes(
070                    long companyId, long userId, boolean wapTheme) {
071                    return getService().getControlPanelThemes(companyId, userId, wapTheme);
072            }
073    
074            public static java.util.List<com.liferay.portal.model.Theme> getPageThemes(
075                    long companyId, long groupId, long userId, boolean wapTheme) {
076                    return getService().getPageThemes(companyId, groupId, userId, wapTheme);
077            }
078    
079            public static com.liferay.portal.model.Theme getTheme(long companyId,
080                    java.lang.String themeId, boolean wapTheme) {
081                    return getService().getTheme(companyId, themeId, wapTheme);
082            }
083    
084            public static java.util.List<com.liferay.portal.model.Theme> getThemes(
085                    long companyId) {
086                    return getService().getThemes(companyId);
087            }
088    
089            /**
090            * @deprecated As of 7.0.0, replaced by {@link #getPageThemes}
091            */
092            @Deprecated
093            public static java.util.List<com.liferay.portal.model.Theme> getThemes(
094                    long companyId, long groupId, long userId, boolean wapTheme) {
095                    return getService().getThemes(companyId, groupId, userId, wapTheme);
096            }
097    
098            public static java.util.List<com.liferay.portal.model.Theme> getWARThemes() {
099                    return getService().getWARThemes();
100            }
101    
102            public static java.util.List<com.liferay.portal.model.Theme> init(
103                    javax.servlet.ServletContext servletContext,
104                    java.lang.String themesPath, boolean loadFromServletContext,
105                    java.lang.String[] xmls,
106                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
107                    return getService()
108                                       .init(servletContext, themesPath, loadFromServletContext,
109                            xmls, pluginPackage);
110            }
111    
112            public static java.util.List<com.liferay.portal.model.Theme> init(
113                    java.lang.String servletContextName,
114                    javax.servlet.ServletContext servletContext,
115                    java.lang.String themesPath, boolean loadFromServletContext,
116                    java.lang.String[] xmls,
117                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
118                    return getService()
119                                       .init(servletContextName, servletContext, themesPath,
120                            loadFromServletContext, xmls, pluginPackage);
121            }
122    
123            /**
124            * Sets the Spring bean ID for this bean.
125            *
126            * @param beanIdentifier the Spring bean ID for this bean
127            */
128            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
129                    getService().setBeanIdentifier(beanIdentifier);
130            }
131    
132            public static void uninstallThemes(
133                    java.util.List<com.liferay.portal.model.Theme> themes) {
134                    getService().uninstallThemes(themes);
135            }
136    
137            public static ThemeLocalService getService() {
138                    if (_service == null) {
139                            _service = (ThemeLocalService)PortalBeanLocatorUtil.locate(ThemeLocalService.class.getName());
140    
141                            ReferenceRegistry.registerReference(ThemeLocalServiceUtil.class,
142                                    "_service");
143                    }
144    
145                    return _service;
146            }
147    
148            /**
149             * @deprecated As of 6.2.0
150             */
151            @Deprecated
152            public void setService(ThemeLocalService service) {
153            }
154    
155            private static ThemeLocalService _service;
156    }