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.LayoutTemplate;
022    import com.liferay.portal.kernel.plugin.PluginPackage;
023    import com.liferay.portal.kernel.transaction.Isolation;
024    import com.liferay.portal.kernel.transaction.Propagation;
025    import com.liferay.portal.kernel.transaction.Transactional;
026    import com.liferay.portal.kernel.xml.Element;
027    
028    import java.util.List;
029    import java.util.Set;
030    
031    import javax.servlet.ServletContext;
032    
033    /**
034     * Provides the local service interface for LayoutTemplate. 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 LayoutTemplateLocalServiceUtil
041     * @see com.liferay.portal.service.base.LayoutTemplateLocalServiceBaseImpl
042     * @see com.liferay.portal.service.impl.LayoutTemplateLocalServiceImpl
043     * @generated
044     */
045    @ProviderType
046    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
047            PortalException.class, SystemException.class})
048    public interface LayoutTemplateLocalService extends BaseLocalService {
049            /*
050             * NOTE FOR DEVELOPERS:
051             *
052             * Never modify or reference this interface directly. Always use {@link LayoutTemplateLocalServiceUtil} to access the layout template local service. Add custom service methods to {@link com.liferay.portal.service.impl.LayoutTemplateLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
053             */
054            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
055            public LayoutTemplate getLayoutTemplate(java.lang.String layoutTemplateId,
056                    boolean standard, java.lang.String themeId);
057    
058            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
059            public java.lang.String getContent(java.lang.String layoutTemplateId,
060                    boolean standard, java.lang.String themeId);
061    
062            /**
063            * Returns the OSGi service identifier.
064            *
065            * @return the OSGi service identifier
066            */
067            public java.lang.String getOSGiServiceIdentifier();
068    
069            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
070            public List<LayoutTemplate> getLayoutTemplates();
071    
072            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
073            public List<LayoutTemplate> getLayoutTemplates(java.lang.String themeId);
074    
075            public List<LayoutTemplate> init(java.lang.String servletContextName,
076                    ServletContext servletContext, java.lang.String[] xmls,
077                    PluginPackage pluginPackage);
078    
079            public List<LayoutTemplate> init(ServletContext servletContext,
080                    java.lang.String[] xmls, PluginPackage pluginPackage);
081    
082            public void readLayoutTemplate(java.lang.String servletContextName,
083                    ServletContext servletContext, Set<LayoutTemplate> layoutTemplates,
084                    Element element, boolean standard, java.lang.String themeId,
085                    PluginPackage pluginPackage);
086    
087            public void uninstallLayoutTemplate(java.lang.String layoutTemplateId,
088                    boolean standard);
089    
090            public void uninstallLayoutTemplates(java.lang.String themeId);
091    }