001
014
015 package com.liferay.portal.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.plugin.PluginPackage;
022 import com.liferay.portal.kernel.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025 import com.liferay.portal.model.ColorScheme;
026 import com.liferay.portal.model.PortletDecorator;
027 import com.liferay.portal.model.Theme;
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, boolean wapTheme);
068
069 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
070 public List<Theme> getControlPanelThemes(long companyId, long userId,
071 boolean wapTheme);
072
073
078 public java.lang.String getOSGiServiceIdentifier();
079
080 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
081 public List<Theme> getPageThemes(long companyId, long groupId, long userId,
082 boolean wapTheme);
083
084 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
085 public PortletDecorator getPortletDecorator(long companyId,
086 java.lang.String themeId, java.lang.String portletDecoratorId);
087
088 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
089 public Theme getTheme(long companyId, java.lang.String themeId,
090 boolean wapTheme);
091
092 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
093 public List<Theme> getThemes(long companyId);
094
095
098 @java.lang.Deprecated
099 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100 public List<Theme> getThemes(long companyId, long groupId, long userId,
101 boolean wapTheme);
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public List<Theme> getWARThemes();
105
106 public List<Theme> init(ServletContext servletContext,
107 java.lang.String themesPath, boolean loadFromServletContext,
108 java.lang.String[] xmls, PluginPackage pluginPackage);
109
110 public List<Theme> init(java.lang.String servletContextName,
111 ServletContext servletContext, java.lang.String themesPath,
112 boolean loadFromServletContext, java.lang.String[] xmls,
113 PluginPackage pluginPackage);
114
115 public void uninstallThemes(List<Theme> themes);
116 }