1
22
23 package com.liferay.portal.service;
24
25
26
47 public class ThemeLocalServiceUtil {
48 public static com.liferay.portal.model.ColorScheme getColorScheme(
49 long companyId, java.lang.String themeId,
50 java.lang.String colorSchemeId, boolean wapTheme) {
51 return getService()
52 .getColorScheme(companyId, themeId, colorSchemeId, wapTheme);
53 }
54
55 public static com.liferay.portal.model.Theme getTheme(long companyId,
56 java.lang.String themeId, boolean wapTheme) {
57 return getService().getTheme(companyId, themeId, wapTheme);
58 }
59
60 public static java.util.List<com.liferay.portal.model.Theme> getThemes(
61 long companyId) {
62 return getService().getThemes(companyId);
63 }
64
65 public static java.util.List<com.liferay.portal.model.Theme> getThemes(
66 long companyId, long groupId, long userId, boolean wapTheme)
67 throws com.liferay.portal.PortalException,
68 com.liferay.portal.SystemException {
69 return getService().getThemes(companyId, groupId, userId, wapTheme);
70 }
71
72 public static java.util.List<String> init(
73 javax.servlet.ServletContext servletContext,
74 java.lang.String themesPath, boolean loadFromServletContext,
75 java.lang.String[] xmls,
76 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
77 return getService()
78 .init(servletContext, themesPath, loadFromServletContext,
79 xmls, pluginPackage);
80 }
81
82 public static java.util.List<String> init(
83 java.lang.String servletContextName,
84 javax.servlet.ServletContext servletContext,
85 java.lang.String themesPath, boolean loadFromServletContext,
86 java.lang.String[] xmls,
87 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
88 return getService()
89 .init(servletContextName, servletContext, themesPath,
90 loadFromServletContext, xmls, pluginPackage);
91 }
92
93 public static void uninstallThemes(java.util.List<String> themeIds) {
94 getService().uninstallThemes(themeIds);
95 }
96
97 public static ThemeLocalService getService() {
98 if (_service == null) {
99 throw new RuntimeException("ThemeLocalService is not set");
100 }
101
102 return _service;
103 }
104
105 public void setService(ThemeLocalService service) {
106 _service = service;
107 }
108
109 private static ThemeLocalService _service;
110 }