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