001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class ThemeLocalServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static com.liferay.portal.model.ColorScheme fetchColorScheme(
059 long companyId, java.lang.String themeId, java.lang.String colorSchemeId) {
060 return getService().fetchColorScheme(companyId, themeId, colorSchemeId);
061 }
062
063 public static com.liferay.portal.model.Theme fetchTheme(long companyId,
064 java.lang.String themeId) {
065 return getService().fetchTheme(companyId, themeId);
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 throws com.liferay.portal.kernel.exception.SystemException {
072 return getService()
073 .getColorScheme(companyId, themeId, colorSchemeId, wapTheme);
074 }
075
076 public static com.liferay.portal.model.Theme getTheme(long companyId,
077 java.lang.String themeId, boolean wapTheme)
078 throws com.liferay.portal.kernel.exception.SystemException {
079 return getService().getTheme(companyId, themeId, wapTheme);
080 }
081
082 public static java.util.List<com.liferay.portal.model.Theme> getThemes(
083 long companyId) {
084 return getService().getThemes(companyId);
085 }
086
087 public static java.util.List<com.liferay.portal.model.Theme> getThemes(
088 long companyId, long groupId, long userId, boolean wapTheme)
089 throws com.liferay.portal.kernel.exception.SystemException {
090 return getService().getThemes(companyId, groupId, userId, wapTheme);
091 }
092
093 public static java.util.List<com.liferay.portal.model.Theme> getWARThemes() {
094 return getService().getWARThemes();
095 }
096
097 public static java.util.List<java.lang.String> init(
098 javax.servlet.ServletContext servletContext,
099 java.lang.String themesPath, boolean loadFromServletContext,
100 java.lang.String[] xmls,
101 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
102 return getService()
103 .init(servletContext, themesPath, loadFromServletContext,
104 xmls, pluginPackage);
105 }
106
107 public static java.util.List<java.lang.String> init(
108 java.lang.String servletContextName,
109 javax.servlet.ServletContext servletContext,
110 java.lang.String themesPath, boolean loadFromServletContext,
111 java.lang.String[] xmls,
112 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
113 return getService()
114 .init(servletContextName, servletContext, themesPath,
115 loadFromServletContext, xmls, pluginPackage);
116 }
117
118 public static void uninstallThemes(
119 java.util.List<java.lang.String> themeIds) {
120 getService().uninstallThemes(themeIds);
121 }
122
123 public static ThemeLocalService getService() {
124 if (_service == null) {
125 _service = (ThemeLocalService)PortalBeanLocatorUtil.locate(ThemeLocalService.class.getName());
126
127 ReferenceRegistry.registerReference(ThemeLocalServiceUtil.class,
128 "_service");
129 }
130
131 return _service;
132 }
133
134
137 public void setService(ThemeLocalService service) {
138 }
139
140 private static ThemeLocalService _service;
141 }