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            public static java.lang.String getContent(
044                    java.lang.String layoutTemplateId, boolean standard,
045                    java.lang.String themeId) {
046                    return getService().getContent(layoutTemplateId, standard, themeId);
047            }
048    
049            public static com.liferay.portal.model.LayoutTemplate getLayoutTemplate(
050                    java.lang.String layoutTemplateId, boolean standard,
051                    java.lang.String themeId) {
052                    return getService()
053                                       .getLayoutTemplate(layoutTemplateId, standard, themeId);
054            }
055    
056            public static java.util.List<com.liferay.portal.model.LayoutTemplate> getLayoutTemplates() {
057                    return getService().getLayoutTemplates();
058            }
059    
060            public static java.util.List<com.liferay.portal.model.LayoutTemplate> getLayoutTemplates(
061                    java.lang.String themeId) {
062                    return getService().getLayoutTemplates(themeId);
063            }
064    
065            /**
066            * Returns the OSGi service identifier.
067            *
068            * @return the OSGi service identifier
069            */
070            public static java.lang.String getOSGiServiceIdentifier() {
071                    return getService().getOSGiServiceIdentifier();
072            }
073    
074            public static java.lang.String getWapContent(
075                    java.lang.String layoutTemplateId, boolean standard,
076                    java.lang.String themeId) {
077                    return getService().getWapContent(layoutTemplateId, standard, themeId);
078            }
079    
080            public static java.util.List<com.liferay.portal.model.LayoutTemplate> init(
081                    javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
082                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
083                    return getService().init(servletContext, xmls, pluginPackage);
084            }
085    
086            public static java.util.List<com.liferay.portal.model.LayoutTemplate> init(
087                    java.lang.String servletContextName,
088                    javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
089                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
090                    return getService()
091                                       .init(servletContextName, servletContext, xmls, pluginPackage);
092            }
093    
094            public static void readLayoutTemplate(java.lang.String servletContextName,
095                    javax.servlet.ServletContext servletContext,
096                    java.util.Set<com.liferay.portal.model.LayoutTemplate> layoutTemplates,
097                    com.liferay.portal.kernel.xml.Element element, boolean standard,
098                    java.lang.String themeId,
099                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
100                    getService()
101                            .readLayoutTemplate(servletContextName, servletContext,
102                            layoutTemplates, element, standard, themeId, pluginPackage);
103            }
104    
105            public static void uninstallLayoutTemplate(
106                    java.lang.String layoutTemplateId, boolean standard) {
107                    getService().uninstallLayoutTemplate(layoutTemplateId, standard);
108            }
109    
110            public static void uninstallLayoutTemplates(java.lang.String themeId) {
111                    getService().uninstallLayoutTemplates(themeId);
112            }
113    
114            public static LayoutTemplateLocalService getService() {
115                    if (_service == null) {
116                            _service = (LayoutTemplateLocalService)PortalBeanLocatorUtil.locate(LayoutTemplateLocalService.class.getName());
117    
118                            ReferenceRegistry.registerReference(LayoutTemplateLocalServiceUtil.class,
119                                    "_service");
120                    }
121    
122                    return _service;
123            }
124    
125            private static LayoutTemplateLocalService _service;
126    }