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     * The utility for the layout template local service. This utility wraps {@link com.liferay.portal.service.impl.LayoutTemplateLocalServiceImpl} and is the primary access point for service operations in application layer code running on the local server.
021     *
022     * <p>
023     * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.LayoutTemplateLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
024     * </p>
025     *
026     * <p>
027     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
028     * </p>
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    public class LayoutTemplateLocalServiceUtil {
037            public static java.lang.String getContent(
038                    java.lang.String layoutTemplateId, boolean standard,
039                    java.lang.String themeId)
040                    throws com.liferay.portal.kernel.exception.SystemException {
041                    return getService().getContent(layoutTemplateId, standard, themeId);
042            }
043    
044            public static com.liferay.portal.model.LayoutTemplate getLayoutTemplate(
045                    java.lang.String layoutTemplateId, boolean standard,
046                    java.lang.String themeId) {
047                    return getService()
048                                       .getLayoutTemplate(layoutTemplateId, standard, themeId);
049            }
050    
051            public static java.util.List<com.liferay.portal.model.LayoutTemplate> getLayoutTemplates() {
052                    return getService().getLayoutTemplates();
053            }
054    
055            public static java.util.List<com.liferay.portal.model.LayoutTemplate> getLayoutTemplates(
056                    java.lang.String themeId) {
057                    return getService().getLayoutTemplates(themeId);
058            }
059    
060            public static java.lang.String getWapContent(
061                    java.lang.String layoutTemplateId, boolean standard,
062                    java.lang.String themeId)
063                    throws com.liferay.portal.kernel.exception.SystemException {
064                    return getService().getWapContent(layoutTemplateId, standard, themeId);
065            }
066    
067            public static java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.lang.Boolean>> init(
068                    javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
069                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
070                    return getService().init(servletContext, xmls, pluginPackage);
071            }
072    
073            public static java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.lang.Boolean>> init(
074                    java.lang.String servletContextName,
075                    javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
076                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
077                    return getService()
078                                       .init(servletContextName, servletContext, xmls, pluginPackage);
079            }
080    
081            public static void readLayoutTemplate(java.lang.String servletContextName,
082                    javax.servlet.ServletContext servletContext,
083                    java.util.Set<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.lang.Boolean>> layoutTemplateIds,
084                    com.liferay.portal.kernel.xml.Element el, boolean standard,
085                    java.lang.String themeId,
086                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
087                    getService()
088                            .readLayoutTemplate(servletContextName, servletContext,
089                            layoutTemplateIds, el, standard, themeId, pluginPackage);
090            }
091    
092            public static void uninstallLayoutTemplate(
093                    java.lang.String layoutTemplateId, boolean standard) {
094                    getService().uninstallLayoutTemplate(layoutTemplateId, standard);
095            }
096    
097            public static void uninstallLayoutTemplates(java.lang.String themeId) {
098                    getService().uninstallLayoutTemplates(themeId);
099            }
100    
101            public static LayoutTemplateLocalService getService() {
102                    if (_service == null) {
103                            _service = (LayoutTemplateLocalService)PortalBeanLocatorUtil.locate(LayoutTemplateLocalService.class.getName());
104                    }
105    
106                    return _service;
107            }
108    
109            public void setService(LayoutTemplateLocalService service) {
110                    _service = service;
111            }
112    
113            private static LayoutTemplateLocalService _service;
114    }