001    /**
002     * Copyright (c) 2000-2013 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    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * 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.
022     *
023     * <p>
024     * 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.
025     * </p>
026     *
027     * @author Brian Wing Shun Chan
028     * @see LayoutTemplateLocalService
029     * @see com.liferay.portal.service.base.LayoutTemplateLocalServiceBaseImpl
030     * @see com.liferay.portal.service.impl.LayoutTemplateLocalServiceImpl
031     * @generated
032     */
033    public class LayoutTemplateLocalServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.LayoutTemplateLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
038             */
039    
040            /**
041            * Returns the Spring bean ID for this bean.
042            *
043            * @return the Spring bean ID for this bean
044            */
045            public static java.lang.String getBeanIdentifier() {
046                    return getService().getBeanIdentifier();
047            }
048    
049            /**
050            * Sets the Spring bean ID for this bean.
051            *
052            * @param beanIdentifier the Spring bean ID for this bean
053            */
054            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055                    getService().setBeanIdentifier(beanIdentifier);
056            }
057    
058            public static java.lang.String getContent(
059                    java.lang.String layoutTemplateId, boolean standard,
060                    java.lang.String themeId)
061                    throws com.liferay.portal.kernel.exception.SystemException {
062                    return getService().getContent(layoutTemplateId, standard, themeId);
063            }
064    
065            public static com.liferay.portal.model.LayoutTemplate getLayoutTemplate(
066                    java.lang.String layoutTemplateId, boolean standard,
067                    java.lang.String themeId) {
068                    return getService()
069                                       .getLayoutTemplate(layoutTemplateId, standard, themeId);
070            }
071    
072            public static java.util.List<com.liferay.portal.model.LayoutTemplate> getLayoutTemplates() {
073                    return getService().getLayoutTemplates();
074            }
075    
076            public static java.util.List<com.liferay.portal.model.LayoutTemplate> getLayoutTemplates(
077                    java.lang.String themeId) {
078                    return getService().getLayoutTemplates(themeId);
079            }
080    
081            public static java.lang.String getWapContent(
082                    java.lang.String layoutTemplateId, boolean standard,
083                    java.lang.String themeId)
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    return getService().getWapContent(layoutTemplateId, standard, themeId);
086            }
087    
088            public static java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.lang.Boolean>> init(
089                    javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
090                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
091                    return getService().init(servletContext, xmls, pluginPackage);
092            }
093    
094            public static java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.lang.Boolean>> init(
095                    java.lang.String servletContextName,
096                    javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
097                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
098                    return getService()
099                                       .init(servletContextName, servletContext, xmls, pluginPackage);
100            }
101    
102            public static void readLayoutTemplate(java.lang.String servletContextName,
103                    javax.servlet.ServletContext servletContext,
104                    java.util.Set<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.lang.Boolean>> layoutTemplateIds,
105                    com.liferay.portal.kernel.xml.Element el, boolean standard,
106                    java.lang.String themeId,
107                    com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
108                    getService()
109                            .readLayoutTemplate(servletContextName, servletContext,
110                            layoutTemplateIds, el, standard, themeId, pluginPackage);
111            }
112    
113            public static void uninstallLayoutTemplate(
114                    java.lang.String layoutTemplateId, boolean standard) {
115                    getService().uninstallLayoutTemplate(layoutTemplateId, standard);
116            }
117    
118            public static void uninstallLayoutTemplates(java.lang.String themeId) {
119                    getService().uninstallLayoutTemplates(themeId);
120            }
121    
122            public static LayoutTemplateLocalService getService() {
123                    if (_service == null) {
124                            _service = (LayoutTemplateLocalService)PortalBeanLocatorUtil.locate(LayoutTemplateLocalService.class.getName());
125    
126                            ReferenceRegistry.registerReference(LayoutTemplateLocalServiceUtil.class,
127                                    "_service");
128                    }
129    
130                    return _service;
131            }
132    
133            /**
134             * @deprecated
135             */
136            public void setService(LayoutTemplateLocalService service) {
137            }
138    
139            private static LayoutTemplateLocalService _service;
140    }