1
22
23 package com.liferay.portal.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Isolation;
28 import com.liferay.portal.kernel.annotation.Propagation;
29 import com.liferay.portal.kernel.annotation.Transactional;
30
31
55 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
56 PortalException.class, SystemException.class})
57 public interface ThemeLocalService {
58 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
59 public com.liferay.portal.model.ColorScheme getColorScheme(long companyId,
60 java.lang.String themeId, java.lang.String colorSchemeId,
61 boolean wapTheme) throws com.liferay.portal.SystemException;
62
63 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
64 public com.liferay.portal.model.Theme getTheme(long companyId,
65 java.lang.String themeId, boolean wapTheme)
66 throws com.liferay.portal.SystemException;
67
68 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
69 public java.util.List<com.liferay.portal.model.Theme> getThemes(
70 long companyId);
71
72 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
73 public java.util.List<com.liferay.portal.model.Theme> getThemes(
74 long companyId, long groupId, long userId, boolean wapTheme)
75 throws com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public java.util.List<com.liferay.portal.model.Theme> getWARThemes();
79
80 public java.util.List<String> init(
81 javax.servlet.ServletContext servletContext,
82 java.lang.String themesPath, boolean loadFromServletContext,
83 java.lang.String[] xmls,
84 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
85
86 public java.util.List<String> init(java.lang.String servletContextName,
87 javax.servlet.ServletContext servletContext,
88 java.lang.String themesPath, boolean loadFromServletContext,
89 java.lang.String[] xmls,
90 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
91
92 public void uninstallThemes(java.util.List<String> themeIds);
93 }