001
014
015 package com.liferay.portal.kernel.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.model.ColorScheme;
022 import com.liferay.portal.kernel.model.PortletDecorator;
023 import com.liferay.portal.kernel.model.Theme;
024 import com.liferay.portal.kernel.plugin.PluginPackage;
025 import com.liferay.portal.kernel.transaction.Isolation;
026 import com.liferay.portal.kernel.transaction.Propagation;
027 import com.liferay.portal.kernel.transaction.Transactional;
028
029 import java.util.List;
030
031 import javax.servlet.ServletContext;
032
033
045 @ProviderType
046 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
047 PortalException.class, SystemException.class})
048 public interface ThemeLocalService extends BaseLocalService {
049
054 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
055 public ColorScheme fetchColorScheme(long companyId,
056 java.lang.String themeId, java.lang.String colorSchemeId);
057
058 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
059 public PortletDecorator fetchPortletDecorator(long companyId,
060 java.lang.String themeId, java.lang.String colorSchemeId);
061
062 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
063 public Theme fetchTheme(long companyId, java.lang.String themeId);
064
065 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
066 public ColorScheme getColorScheme(long companyId, java.lang.String themeId,
067 java.lang.String colorSchemeId);
068
069 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
070 public List<Theme> getControlPanelThemes(long companyId, long userId);
071
072
077 public java.lang.String getOSGiServiceIdentifier();
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public List<Theme> getPageThemes(long companyId, long groupId, long userId);
081
082 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
083 public PortletDecorator getPortletDecorator(long companyId,
084 java.lang.String themeId, java.lang.String portletDecoratorId);
085
086 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087 public Theme getTheme(long companyId, java.lang.String themeId);
088
089 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
090 public List<Theme> getThemes(long companyId);
091
092
095 @java.lang.Deprecated
096 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097 public List<Theme> getThemes(long companyId, long groupId, long userId,
098 boolean wapTheme);
099
100 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
101 public List<Theme> getWARThemes();
102
103 public List<Theme> init(ServletContext servletContext,
104 java.lang.String themesPath, boolean loadFromServletContext,
105 java.lang.String[] xmls, PluginPackage pluginPackage);
106
107 public List<Theme> init(java.lang.String servletContextName,
108 ServletContext servletContext, java.lang.String themesPath,
109 boolean loadFromServletContext, java.lang.String[] xmls,
110 PluginPackage pluginPackage);
111
112 public void uninstallThemes(List<Theme> themes);
113 }