001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
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 }