001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class ThemeLocalServiceUtil {
033 public static com.liferay.portal.model.ColorScheme getColorScheme(
034 long companyId, java.lang.String themeId,
035 java.lang.String colorSchemeId, boolean wapTheme)
036 throws com.liferay.portal.kernel.exception.SystemException {
037 return getService()
038 .getColorScheme(companyId, themeId, colorSchemeId, wapTheme);
039 }
040
041 public static com.liferay.portal.model.Theme getTheme(long companyId,
042 java.lang.String themeId, boolean wapTheme)
043 throws com.liferay.portal.kernel.exception.SystemException {
044 return getService().getTheme(companyId, themeId, wapTheme);
045 }
046
047 public static java.util.List<com.liferay.portal.model.Theme> getThemes(
048 long companyId) {
049 return getService().getThemes(companyId);
050 }
051
052 public static java.util.List<com.liferay.portal.model.Theme> getThemes(
053 long companyId, long groupId, long userId, boolean wapTheme)
054 throws com.liferay.portal.kernel.exception.SystemException {
055 return getService().getThemes(companyId, groupId, userId, wapTheme);
056 }
057
058 public static java.util.List<com.liferay.portal.model.Theme> getWARThemes() {
059 return getService().getWARThemes();
060 }
061
062 public static java.util.List<java.lang.String> init(
063 javax.servlet.ServletContext servletContext,
064 java.lang.String themesPath, boolean loadFromServletContext,
065 java.lang.String[] xmls,
066 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
067 return getService()
068 .init(servletContext, themesPath, loadFromServletContext,
069 xmls, pluginPackage);
070 }
071
072 public static java.util.List<java.lang.String> init(
073 java.lang.String servletContextName,
074 javax.servlet.ServletContext servletContext,
075 java.lang.String themesPath, boolean loadFromServletContext,
076 java.lang.String[] xmls,
077 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
078 return getService()
079 .init(servletContextName, servletContext, themesPath,
080 loadFromServletContext, xmls, pluginPackage);
081 }
082
083 public static void uninstallThemes(
084 java.util.List<java.lang.String> themeIds) {
085 getService().uninstallThemes(themeIds);
086 }
087
088 public static ThemeLocalService getService() {
089 if (_service == null) {
090 _service = (ThemeLocalService)PortalBeanLocatorUtil.locate(ThemeLocalService.class.getName());
091 }
092
093 return _service;
094 }
095
096 public void setService(ThemeLocalService service) {
097 _service = service;
098 }
099
100 private static ThemeLocalService _service;
101 }