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