com.liferay.portal.service.LayoutTemplateLocalServiceUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-service Show documentation
Show all versions of portal-service Show documentation
Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.service;
import aQute.bnd.annotation.ProviderType;
import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
import com.liferay.portal.kernel.util.ReferenceRegistry;
/**
* Provides the local service utility for LayoutTemplate. 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. 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.
*
* @author Brian Wing Shun Chan
* @see LayoutTemplateLocalService
* @see com.liferay.portal.service.base.LayoutTemplateLocalServiceBaseImpl
* @see com.liferay.portal.service.impl.LayoutTemplateLocalServiceImpl
* @generated
*/
@ProviderType
public class LayoutTemplateLocalServiceUtil {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.LayoutTemplateLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
*/
/**
* Returns the Spring bean ID for this bean.
*
* @return the Spring bean ID for this bean
*/
public static java.lang.String getBeanIdentifier() {
return getService().getBeanIdentifier();
}
/**
* Sets the Spring bean ID for this bean.
*
* @param beanIdentifier the Spring bean ID for this bean
*/
public static void setBeanIdentifier(java.lang.String beanIdentifier) {
getService().setBeanIdentifier(beanIdentifier);
}
public static java.lang.String getContent(
java.lang.String layoutTemplateId, boolean standard,
java.lang.String themeId)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().getContent(layoutTemplateId, standard, themeId);
}
public static com.liferay.portal.model.LayoutTemplate getLayoutTemplate(
java.lang.String layoutTemplateId, boolean standard,
java.lang.String themeId) {
return getService()
.getLayoutTemplate(layoutTemplateId, standard, themeId);
}
public static java.util.List getLayoutTemplates() {
return getService().getLayoutTemplates();
}
public static java.util.List getLayoutTemplates(
java.lang.String themeId) {
return getService().getLayoutTemplates(themeId);
}
public static java.lang.String getWapContent(
java.lang.String layoutTemplateId, boolean standard,
java.lang.String themeId)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().getWapContent(layoutTemplateId, standard, themeId);
}
public static java.util.List init(
javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
return getService().init(servletContext, xmls, pluginPackage);
}
public static java.util.List init(
java.lang.String servletContextName,
javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
return getService()
.init(servletContextName, servletContext, xmls, pluginPackage);
}
public static void readLayoutTemplate(java.lang.String servletContextName,
javax.servlet.ServletContext servletContext,
java.util.Set layoutTemplates,
com.liferay.portal.kernel.xml.Element element, boolean standard,
java.lang.String themeId,
com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
getService()
.readLayoutTemplate(servletContextName, servletContext,
layoutTemplates, element, standard, themeId, pluginPackage);
}
public static void uninstallLayoutTemplate(
java.lang.String layoutTemplateId, boolean standard) {
getService().uninstallLayoutTemplate(layoutTemplateId, standard);
}
public static void uninstallLayoutTemplates(java.lang.String themeId) {
getService().uninstallLayoutTemplates(themeId);
}
public static LayoutTemplateLocalService getService() {
if (_service == null) {
_service = (LayoutTemplateLocalService)PortalBeanLocatorUtil.locate(LayoutTemplateLocalService.class.getName());
ReferenceRegistry.registerReference(LayoutTemplateLocalServiceUtil.class,
"_service");
}
return _service;
}
/**
* @deprecated As of 6.2.0
*/
public void setService(LayoutTemplateLocalService service) {
}
private static LayoutTemplateLocalService _service;
}