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.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the local service utility for LayoutTemplate. This utility wraps
024     * {@link com.liferay.portal.service.impl.LayoutTemplateLocalServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on the local server. Methods of this service will not have security checks
027     * based on the propagated JAAS credentials because this service can only be
028     * accessed from within the same VM.
029     *
030     * @author Brian Wing Shun Chan
031     * @see LayoutTemplateLocalService
032     * @see com.liferay.portal.service.base.LayoutTemplateLocalServiceBaseImpl
033     * @see com.liferay.portal.service.impl.LayoutTemplateLocalServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class LayoutTemplateLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.LayoutTemplateLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
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 static java.lang.String getBeanIdentifier() {
050                    return getService().getBeanIdentifier();
051            }
052    
053            public static java.lang.String getContent(
054                    java.lang.String layoutTemplateId, boolean standard,
055                    java.lang.String themeId) {
056                    return getService().getContent(layoutTemplateId, standard, themeId);
057            }
058    
059            public static com.liferay.portal.model.LayoutTemplate getLayoutTemplate(
060                    java.lang.String layoutTemplateId, boolean standard,
061                    java.lang.String themeId) {
062                    return getService()
063                                       .getLayoutTemplate(layoutTemplateId, standard, themeId);
064            }
065    
066            public static java.util.List<com.liferay.portal.model.LayoutTemplate> getLayoutTemplates() {
067                    return getService().getLayoutTemplates();
068            }
069    
070            public static java.util.List<com.liferay.portal.model.LayoutTemplate> getLayoutTemplates(
071                    java.lang.String themeId) {
072                    return getService().getLayoutTemplates(themeId);
073            }
074    
075            public static java.lang.String getWapContent(
076                    java.lang.String layoutTemplateId, boolean standard,
077                    java.lang.String themeId) {
078                    return getService().getWapContent(layoutTemplateId, standard, themeId);
079            }
080    
081            public static java.util.List<com.liferay.portal.model.LayoutTemplate> init(
082                    javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
083                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
084                    return getService().init(servletContext, xmls, pluginPackage);
085            }
086    
087            public static java.util.List<com.liferay.portal.model.LayoutTemplate> init(
088                    java.lang.String servletContextName,
089                    javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
090                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
091                    return getService()
092                                       .init(servletContextName, servletContext, xmls, pluginPackage);
093            }
094    
095            public static void readLayoutTemplate(java.lang.String servletContextName,
096                    javax.servlet.ServletContext servletContext,
097                    java.util.Set<com.liferay.portal.model.LayoutTemplate> layoutTemplates,
098                    com.liferay.portal.kernel.xml.Element element, boolean standard,
099                    java.lang.String themeId,
100                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
101                    getService()
102                            .readLayoutTemplate(servletContextName, servletContext,
103                            layoutTemplates, element, standard, themeId, pluginPackage);
104            }
105    
106            /**
107            * Sets the Spring bean ID for this bean.
108            *
109            * @param beanIdentifier the Spring bean ID for this bean
110            */
111            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
112                    getService().setBeanIdentifier(beanIdentifier);
113            }
114    
115            public static void uninstallLayoutTemplate(
116                    java.lang.String layoutTemplateId, boolean standard) {
117                    getService().uninstallLayoutTemplate(layoutTemplateId, standard);
118            }
119    
120            public static void uninstallLayoutTemplates(java.lang.String themeId) {
121                    getService().uninstallLayoutTemplates(themeId);
122            }
123    
124            public static LayoutTemplateLocalService getService() {
125                    if (_service == null) {
126                            _service = (LayoutTemplateLocalService)PortalBeanLocatorUtil.locate(LayoutTemplateLocalService.class.getName());
127    
128                            ReferenceRegistry.registerReference(LayoutTemplateLocalServiceUtil.class,
129                                    "_service");
130                    }
131    
132                    return _service;
133            }
134    
135            /**
136             * @deprecated As of 6.2.0
137             */
138            @Deprecated
139            public void setService(LayoutTemplateLocalService service) {
140            }
141    
142            private static LayoutTemplateLocalService _service;
143    }