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 ColorScheme getColorScheme(long companyId, java.lang.String themeId,
060 java.lang.String colorSchemeId);
061
062 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
063 public PortletDecorator fetchPortletDecorator(long companyId,
064 java.lang.String themeId, java.lang.String colorSchemeId);
065
066 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
067 public PortletDecorator getPortletDecorator(long companyId,
068 java.lang.String themeId, java.lang.String portletDecoratorId);
069
070 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
071 public Theme fetchTheme(long companyId, java.lang.String themeId);
072
073 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
074 public Theme getTheme(long companyId, java.lang.String themeId);
075
076
081 public java.lang.String getOSGiServiceIdentifier();
082
083 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
084 public List<Theme> getControlPanelThemes(long companyId, long userId);
085
086 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087 public List<Theme> getPageThemes(long companyId, long groupId, long userId);
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(java.lang.String servletContextName,
104 ServletContext servletContext, java.lang.String themesPath,
105 boolean loadFromServletContext, java.lang.String[] xmls,
106 PluginPackage pluginPackage);
107
108 public List<Theme> init(ServletContext servletContext,
109 java.lang.String themesPath, boolean loadFromServletContext,
110 java.lang.String[] xmls, PluginPackage pluginPackage);
111
112 public void uninstallThemes(List<Theme> themes);
113 }