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.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    /**
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, boolean wapTheme);
068    
069            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
070            public List<Theme> getControlPanelThemes(long companyId, long userId,
071                    boolean wapTheme);
072    
073            /**
074            * Returns the OSGi service identifier.
075            *
076            * @return the OSGi service identifier
077            */
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            /**
096            * @deprecated As of 7.0.0, replaced by {@link #getPageThemes}
097            */
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    }