001    /**
002     * Copyright (c) 2000-2010 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.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * <p>
021     * This class provides static methods for the
022     * {@link LayoutTemplateLocalService} bean. The static methods of
023     * this class calls the same methods of the bean instance. It's convenient to be
024     * able to just write one line to call a method on a bean instead of writing a
025     * lookup call and a method call.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       LayoutTemplateLocalService
030     * @generated
031     */
032    public class LayoutTemplateLocalServiceUtil {
033            public static java.lang.String getContent(
034                    java.lang.String layoutTemplateId, boolean standard,
035                    java.lang.String themeId)
036                    throws com.liferay.portal.kernel.exception.SystemException {
037                    return getService().getContent(layoutTemplateId, standard, themeId);
038            }
039    
040            public static com.liferay.portal.model.LayoutTemplate getLayoutTemplate(
041                    java.lang.String layoutTemplateId, boolean standard,
042                    java.lang.String themeId) {
043                    return getService()
044                                       .getLayoutTemplate(layoutTemplateId, standard, themeId);
045            }
046    
047            public static java.util.List<com.liferay.portal.model.LayoutTemplate> getLayoutTemplates() {
048                    return getService().getLayoutTemplates();
049            }
050    
051            public static java.util.List<com.liferay.portal.model.LayoutTemplate> getLayoutTemplates(
052                    java.lang.String themeId) {
053                    return getService().getLayoutTemplates(themeId);
054            }
055    
056            public static java.lang.String getWapContent(
057                    java.lang.String layoutTemplateId, boolean standard,
058                    java.lang.String themeId)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return getService().getWapContent(layoutTemplateId, standard, themeId);
061            }
062    
063            public static java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.lang.Boolean>> init(
064                    javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
065                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
066                    return getService().init(servletContext, xmls, pluginPackage);
067            }
068    
069            public static java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.lang.Boolean>> init(
070                    java.lang.String servletContextName,
071                    javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
072                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
073                    return getService()
074                                       .init(servletContextName, servletContext, xmls, pluginPackage);
075            }
076    
077            public static void readLayoutTemplate(java.lang.String servletContextName,
078                    javax.servlet.ServletContext servletContext,
079                    java.util.Set<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.lang.Boolean>> layoutTemplateIds,
080                    com.liferay.portal.kernel.xml.Element el, boolean standard,
081                    java.lang.String themeId,
082                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
083                    getService()
084                            .readLayoutTemplate(servletContextName, servletContext,
085                            layoutTemplateIds, el, standard, themeId, pluginPackage);
086            }
087    
088            public static void uninstallLayoutTemplate(
089                    java.lang.String layoutTemplateId, boolean standard) {
090                    getService().uninstallLayoutTemplate(layoutTemplateId, standard);
091            }
092    
093            public static void uninstallLayoutTemplates(java.lang.String themeId) {
094                    getService().uninstallLayoutTemplates(themeId);
095            }
096    
097            public static LayoutTemplateLocalService getService() {
098                    if (_service == null) {
099                            _service = (LayoutTemplateLocalService)PortalBeanLocatorUtil.locate(LayoutTemplateLocalService.class.getName());
100                    }
101    
102                    return _service;
103            }
104    
105            public void setService(LayoutTemplateLocalService service) {
106                    _service = service;
107            }
108    
109            private static LayoutTemplateLocalService _service;
110    }