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.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    /**
034     * Provides the local service interface for Theme. Methods of this
035     * service will not have security checks based on the propagated JAAS
036     * credentials because this service can only be accessed from within the same
037     * VM.
038     *
039     * @author Brian Wing Shun Chan
040     * @see ThemeLocalServiceUtil
041     * @see com.liferay.portal.service.base.ThemeLocalServiceBaseImpl
042     * @see com.liferay.portal.service.impl.ThemeLocalServiceImpl
043     * @generated
044     */
045    @ProviderType
046    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
047            PortalException.class, SystemException.class})
048    public interface ThemeLocalService extends BaseLocalService {
049            /*
050             * NOTE FOR DEVELOPERS:
051             *
052             * 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.
053             */
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            /**
073            * Returns the OSGi service identifier.
074            *
075            * @return the OSGi service identifier
076            */
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            /**
093            * @deprecated As of 7.0.0, replaced by {@link #getPageThemes}
094            */
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    }