001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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.transaction.Isolation;
022    import com.liferay.portal.kernel.transaction.Propagation;
023    import com.liferay.portal.kernel.transaction.Transactional;
024    
025    /**
026     * Provides the local service interface for Theme. Methods of this
027     * service will not have security checks based on the propagated JAAS
028     * credentials because this service can only be accessed from within the same
029     * VM.
030     *
031     * @author Brian Wing Shun Chan
032     * @see ThemeLocalServiceUtil
033     * @see com.liferay.portal.service.base.ThemeLocalServiceBaseImpl
034     * @see com.liferay.portal.service.impl.ThemeLocalServiceImpl
035     * @generated
036     */
037    @ProviderType
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface ThemeLocalService extends BaseLocalService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify or reference this interface directly. Always use {@link ThemeLocalServiceUtil} to access the theme local service. Add custom service methods to {@link com.liferay.portal.service.impl.ThemeLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
045             */
046            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
047            public com.liferay.portal.model.ColorScheme fetchColorScheme(
048                    long companyId, java.lang.String themeId, java.lang.String colorSchemeId);
049    
050            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
051            public com.liferay.portal.model.PortletDecorator fetchPortletDecorator(
052                    long companyId, java.lang.String themeId, java.lang.String colorSchemeId);
053    
054            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
055            public com.liferay.portal.model.Theme fetchTheme(long companyId,
056                    java.lang.String themeId);
057    
058            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
059            public com.liferay.portal.model.ColorScheme getColorScheme(long companyId,
060                    java.lang.String themeId, java.lang.String colorSchemeId,
061                    boolean wapTheme);
062    
063            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
064            public java.util.List<com.liferay.portal.model.Theme> getControlPanelThemes(
065                    long companyId, long userId, boolean wapTheme);
066    
067            /**
068            * Returns the OSGi service identifier.
069            *
070            * @return the OSGi service identifier
071            */
072            public java.lang.String getOSGiServiceIdentifier();
073    
074            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
075            public java.util.List<com.liferay.portal.model.Theme> getPageThemes(
076                    long companyId, long groupId, long userId, boolean wapTheme);
077    
078            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
079            public com.liferay.portal.model.PortletDecorator getPortletDecorator(
080                    long companyId, java.lang.String themeId,
081                    java.lang.String portletDecoratorId);
082    
083            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
084            public com.liferay.portal.model.Theme getTheme(long companyId,
085                    java.lang.String themeId, boolean wapTheme);
086    
087            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
088            public java.util.List<com.liferay.portal.model.Theme> getThemes(
089                    long companyId);
090    
091            /**
092            * @deprecated As of 7.0.0, replaced by {@link #getPageThemes}
093            */
094            @java.lang.Deprecated
095            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
096            public java.util.List<com.liferay.portal.model.Theme> getThemes(
097                    long companyId, long groupId, long userId, boolean wapTheme);
098    
099            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100            public java.util.List<com.liferay.portal.model.Theme> getWARThemes();
101    
102            public java.util.List<com.liferay.portal.model.Theme> init(
103                    javax.servlet.ServletContext servletContext,
104                    java.lang.String themesPath, boolean loadFromServletContext,
105                    java.lang.String[] xmls,
106                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
107    
108            public java.util.List<com.liferay.portal.model.Theme> init(
109                    java.lang.String servletContextName,
110                    javax.servlet.ServletContext servletContext,
111                    java.lang.String themesPath, boolean loadFromServletContext,
112                    java.lang.String[] xmls,
113                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
114    
115            public void uninstallThemes(
116                    java.util.List<com.liferay.portal.model.Theme> themes);
117    }