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     * <p>
021     * This class provides static methods for the
022     * {@link LayoutPrototypeService} bean. The static methods of
023     * this class calls the same methods of the bean instance. It's convenient to be
024     * able to just write one line to call a method on a bean instead of writing a
025     * lookup call and a method call.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       LayoutPrototypeService
030     * @generated
031     */
032    public class LayoutPrototypeServiceUtil {
033            public static com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
034                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
035                    java.lang.String description, boolean active)
036                    throws com.liferay.portal.kernel.exception.PortalException,
037                            com.liferay.portal.kernel.exception.SystemException {
038                    return getService().addLayoutPrototype(nameMap, description, active);
039            }
040    
041            public static void deleteLayoutPrototype(long layoutPrototypeId)
042                    throws com.liferay.portal.kernel.exception.PortalException,
043                            com.liferay.portal.kernel.exception.SystemException {
044                    getService().deleteLayoutPrototype(layoutPrototypeId);
045            }
046    
047            public static com.liferay.portal.model.LayoutPrototype getLayoutPrototype(
048                    long layoutPrototypeId)
049                    throws com.liferay.portal.kernel.exception.PortalException,
050                            com.liferay.portal.kernel.exception.SystemException {
051                    return getService().getLayoutPrototype(layoutPrototypeId);
052            }
053    
054            public static java.util.List<com.liferay.portal.model.LayoutPrototype> search(
055                    long companyId, java.lang.Boolean active,
056                    com.liferay.portal.kernel.util.OrderByComparator obc)
057                    throws com.liferay.portal.kernel.exception.PortalException,
058                            com.liferay.portal.kernel.exception.SystemException {
059                    return getService().search(companyId, active, obc);
060            }
061    
062            public static com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
063                    long layoutPrototypeId,
064                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
065                    java.lang.String description, boolean active)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    return getService()
069                                       .updateLayoutPrototype(layoutPrototypeId, nameMap,
070                            description, active);
071            }
072    
073            public static LayoutPrototypeService getService() {
074                    if (_service == null) {
075                            _service = (LayoutPrototypeService)PortalBeanLocatorUtil.locate(LayoutPrototypeService.class.getName());
076                    }
077    
078                    return _service;
079            }
080    
081            public void setService(LayoutPrototypeService service) {
082                    _service = service;
083            }
084    
085            private static LayoutPrototypeService _service;
086    }