1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portal.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="LayoutTemplateLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link LayoutTemplateLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       LayoutTemplateLocalService
37   * @generated
38   */
39  public class LayoutTemplateLocalServiceUtil {
40      public static java.lang.String getContent(
41          java.lang.String layoutTemplateId, boolean standard,
42          java.lang.String themeId) throws com.liferay.portal.SystemException {
43          return getService().getContent(layoutTemplateId, standard, themeId);
44      }
45  
46      public static com.liferay.portal.model.LayoutTemplate getLayoutTemplate(
47          java.lang.String layoutTemplateId, boolean standard,
48          java.lang.String themeId) {
49          return getService()
50                     .getLayoutTemplate(layoutTemplateId, standard, themeId);
51      }
52  
53      public static java.util.List<com.liferay.portal.model.LayoutTemplate> getLayoutTemplates() {
54          return getService().getLayoutTemplates();
55      }
56  
57      public static java.util.List<com.liferay.portal.model.LayoutTemplate> getLayoutTemplates(
58          java.lang.String themeId) {
59          return getService().getLayoutTemplates(themeId);
60      }
61  
62      public static java.lang.String getWapContent(
63          java.lang.String layoutTemplateId, boolean standard,
64          java.lang.String themeId) throws com.liferay.portal.SystemException {
65          return getService().getWapContent(layoutTemplateId, standard, themeId);
66      }
67  
68      public static java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, Boolean>> init(
69          javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
70          com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
71          return getService().init(servletContext, xmls, pluginPackage);
72      }
73  
74      public static java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, Boolean>> init(
75          java.lang.String servletContextName,
76          javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
77          com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
78          return getService()
79                     .init(servletContextName, servletContext, xmls, pluginPackage);
80      }
81  
82      public static void readLayoutTemplate(java.lang.String servletContextName,
83          javax.servlet.ServletContext servletContext,
84          java.util.Set<com.liferay.portal.kernel.util.ObjectValuePair<String, Boolean>> layoutTemplateIds,
85          com.liferay.portal.kernel.xml.Element el, boolean standard,
86          java.lang.String themeId,
87          com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
88          getService()
89              .readLayoutTemplate(servletContextName, servletContext,
90              layoutTemplateIds, el, standard, themeId, pluginPackage);
91      }
92  
93      public static void uninstallLayoutTemplate(
94          java.lang.String layoutTemplateId, boolean standard) {
95          getService().uninstallLayoutTemplate(layoutTemplateId, standard);
96      }
97  
98      public static void uninstallLayoutTemplates(java.lang.String themeId) {
99          getService().uninstallLayoutTemplates(themeId);
100     }
101 
102     public static LayoutTemplateLocalService getService() {
103         if (_service == null) {
104             _service = (LayoutTemplateLocalService)PortalBeanLocatorUtil.locate(LayoutTemplateLocalService.class.getName());
105         }
106 
107         return _service;
108     }
109 
110     public void setService(LayoutTemplateLocalService service) {
111         _service = service;
112     }
113 
114     private static LayoutTemplateLocalService _service;
115 }