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 com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.transaction.Isolation;
020    import com.liferay.portal.kernel.transaction.Propagation;
021    import com.liferay.portal.kernel.transaction.Transactional;
022    
023    /**
024     * Provides the local service interface for Theme. Methods of this
025     * service will not have security checks based on the propagated JAAS
026     * credentials because this service can only be accessed from within the same
027     * VM.
028     *
029     * @author Brian Wing Shun Chan
030     * @see ThemeLocalServiceUtil
031     * @see com.liferay.portal.service.base.ThemeLocalServiceBaseImpl
032     * @see com.liferay.portal.service.impl.ThemeLocalServiceImpl
033     * @generated
034     */
035    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
036            PortalException.class, SystemException.class})
037    public interface ThemeLocalService extends BaseLocalService {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * 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.
042             */
043    
044            /**
045            * Returns the Spring bean ID for this bean.
046            *
047            * @return the Spring bean ID for this bean
048            */
049            public java.lang.String getBeanIdentifier();
050    
051            /**
052            * Sets the Spring bean ID for this bean.
053            *
054            * @param beanIdentifier the Spring bean ID for this bean
055            */
056            public void setBeanIdentifier(java.lang.String beanIdentifier);
057    
058            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
059            public com.liferay.portal.model.ColorScheme fetchColorScheme(
060                    long companyId, java.lang.String themeId, java.lang.String colorSchemeId);
061    
062            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
063            public com.liferay.portal.model.Theme fetchTheme(long companyId,
064                    java.lang.String themeId);
065    
066            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
067            public com.liferay.portal.model.ColorScheme getColorScheme(long companyId,
068                    java.lang.String themeId, java.lang.String colorSchemeId,
069                    boolean wapTheme)
070                    throws com.liferay.portal.kernel.exception.SystemException;
071    
072            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
073            public com.liferay.portal.model.Theme getTheme(long companyId,
074                    java.lang.String themeId, boolean wapTheme)
075                    throws com.liferay.portal.kernel.exception.SystemException;
076    
077            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078            public java.util.List<com.liferay.portal.model.Theme> getThemes(
079                    long companyId);
080    
081            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
082            public java.util.List<com.liferay.portal.model.Theme> getThemes(
083                    long companyId, long groupId, long userId, boolean wapTheme)
084                    throws com.liferay.portal.kernel.exception.SystemException;
085    
086            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087            public java.util.List<com.liferay.portal.model.Theme> getWARThemes();
088    
089            public java.util.List<com.liferay.portal.model.Theme> init(
090                    javax.servlet.ServletContext servletContext,
091                    java.lang.String themesPath, boolean loadFromServletContext,
092                    java.lang.String[] xmls,
093                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
094    
095            public java.util.List<com.liferay.portal.model.Theme> init(
096                    java.lang.String servletContextName,
097                    javax.servlet.ServletContext servletContext,
098                    java.lang.String themesPath, boolean loadFromServletContext,
099                    java.lang.String[] xmls,
100                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
101    
102            public void uninstallThemes(
103                    java.util.List<com.liferay.portal.model.Theme> themes);
104    }