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.Theme fetchTheme(long companyId,
049 java.lang.String themeId) {
050 return getService().fetchTheme(companyId, themeId);
051 }
052
053
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
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
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
151 @Deprecated
152 public void setService(ThemeLocalService service) {
153 }
154
155 private static ThemeLocalService _service;
156 }