001    /**
002     * Copyright (c) 2000-2013 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    
047            /**
048            * Returns the Spring bean ID for this bean.
049            *
050            * @return the Spring bean ID for this bean
051            */
052            public java.lang.String getBeanIdentifier();
053    
054            /**
055            * Sets the Spring bean ID for this bean.
056            *
057            * @param beanIdentifier the Spring bean ID for this bean
058            */
059            public void setBeanIdentifier(java.lang.String beanIdentifier);
060    
061            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
062            public com.liferay.portal.model.ColorScheme fetchColorScheme(
063                    long companyId, java.lang.String themeId, java.lang.String colorSchemeId);
064    
065            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
066            public com.liferay.portal.model.Theme fetchTheme(long companyId,
067                    java.lang.String themeId);
068    
069            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
070            public com.liferay.portal.model.ColorScheme getColorScheme(long companyId,
071                    java.lang.String themeId, java.lang.String colorSchemeId,
072                    boolean wapTheme)
073                    throws com.liferay.portal.kernel.exception.SystemException;
074    
075            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
076            public com.liferay.portal.model.Theme getTheme(long companyId,
077                    java.lang.String themeId, boolean wapTheme)
078                    throws com.liferay.portal.kernel.exception.SystemException;
079    
080            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
081            public java.util.List<com.liferay.portal.model.Theme> getThemes(
082                    long companyId);
083    
084            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
085            public java.util.List<com.liferay.portal.model.Theme> getThemes(
086                    long companyId, long groupId, long userId, boolean wapTheme)
087                    throws com.liferay.portal.kernel.exception.SystemException;
088    
089            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
090            public java.util.List<com.liferay.portal.model.Theme> getWARThemes();
091    
092            public java.util.List<com.liferay.portal.model.Theme> init(
093                    javax.servlet.ServletContext servletContext,
094                    java.lang.String themesPath, boolean loadFromServletContext,
095                    java.lang.String[] xmls,
096                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
097    
098            public java.util.List<com.liferay.portal.model.Theme> init(
099                    java.lang.String servletContextName,
100                    javax.servlet.ServletContext servletContext,
101                    java.lang.String themesPath, boolean loadFromServletContext,
102                    java.lang.String[] xmls,
103                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
104    
105            public void uninstallThemes(
106                    java.util.List<com.liferay.portal.model.Theme> themes);
107    }