001
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
036 @ProviderType
037 public class ThemeLocalServiceUtil {
038
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.PortletDecorator fetchPortletDecorator(
049 long companyId, java.lang.String themeId, java.lang.String colorSchemeId) {
050 return getService()
051 .fetchPortletDecorator(companyId, themeId, colorSchemeId);
052 }
053
054 public static com.liferay.portal.model.Theme fetchTheme(long companyId,
055 java.lang.String themeId) {
056 return getService().fetchTheme(companyId, themeId);
057 }
058
059
064 public static java.lang.String getBeanIdentifier() {
065 return getService().getBeanIdentifier();
066 }
067
068 public static com.liferay.portal.model.ColorScheme getColorScheme(
069 long companyId, java.lang.String themeId,
070 java.lang.String colorSchemeId, boolean wapTheme) {
071 return getService()
072 .getColorScheme(companyId, themeId, colorSchemeId, wapTheme);
073 }
074
075 public static java.util.List<com.liferay.portal.model.Theme> getControlPanelThemes(
076 long companyId, long userId, boolean wapTheme) {
077 return getService().getControlPanelThemes(companyId, userId, wapTheme);
078 }
079
080 public static java.util.List<com.liferay.portal.model.Theme> getPageThemes(
081 long companyId, long groupId, long userId, boolean wapTheme) {
082 return getService().getPageThemes(companyId, groupId, userId, wapTheme);
083 }
084
085 public static com.liferay.portal.model.PortletDecorator getPortletDecorator(
086 long companyId, java.lang.String themeId,
087 java.lang.String portletDecoratorId) {
088 return getService()
089 .getPortletDecorator(companyId, themeId, portletDecoratorId);
090 }
091
092 public static com.liferay.portal.model.Theme getTheme(long companyId,
093 java.lang.String themeId, boolean wapTheme) {
094 return getService().getTheme(companyId, themeId, wapTheme);
095 }
096
097 public static java.util.List<com.liferay.portal.model.Theme> getThemes(
098 long companyId) {
099 return getService().getThemes(companyId);
100 }
101
102
105 @Deprecated
106 public static java.util.List<com.liferay.portal.model.Theme> getThemes(
107 long companyId, long groupId, long userId, boolean wapTheme) {
108 return getService().getThemes(companyId, groupId, userId, wapTheme);
109 }
110
111 public static java.util.List<com.liferay.portal.model.Theme> getWARThemes() {
112 return getService().getWARThemes();
113 }
114
115 public static java.util.List<com.liferay.portal.model.Theme> init(
116 javax.servlet.ServletContext servletContext,
117 java.lang.String themesPath, boolean loadFromServletContext,
118 java.lang.String[] xmls,
119 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
120 return getService()
121 .init(servletContext, themesPath, loadFromServletContext,
122 xmls, pluginPackage);
123 }
124
125 public static java.util.List<com.liferay.portal.model.Theme> init(
126 java.lang.String servletContextName,
127 javax.servlet.ServletContext servletContext,
128 java.lang.String themesPath, boolean loadFromServletContext,
129 java.lang.String[] xmls,
130 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
131 return getService()
132 .init(servletContextName, servletContext, themesPath,
133 loadFromServletContext, xmls, pluginPackage);
134 }
135
136
141 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
142 getService().setBeanIdentifier(beanIdentifier);
143 }
144
145 public static void uninstallThemes(
146 java.util.List<com.liferay.portal.model.Theme> themes) {
147 getService().uninstallThemes(themes);
148 }
149
150 public static ThemeLocalService getService() {
151 if (_service == null) {
152 _service = (ThemeLocalService)PortalBeanLocatorUtil.locate(ThemeLocalService.class.getName());
153
154 ReferenceRegistry.registerReference(ThemeLocalServiceUtil.class,
155 "_service");
156 }
157
158 return _service;
159 }
160
161
164 @Deprecated
165 public void setService(ThemeLocalService service) {
166 }
167
168 private static ThemeLocalService _service;
169 }