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 LayoutSetService} 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       LayoutSetService
030     * @generated
031     */
032    public class LayoutSetServiceUtil {
033            public static void updateLogo(long groupId, boolean privateLayout,
034                    boolean logo, java.io.File file)
035                    throws com.liferay.portal.kernel.exception.PortalException,
036                            com.liferay.portal.kernel.exception.SystemException {
037                    getService().updateLogo(groupId, privateLayout, logo, file);
038            }
039    
040            public static com.liferay.portal.model.LayoutSet updateLookAndFeel(
041                    long groupId, boolean privateLayout, java.lang.String themeId,
042                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
043                    throws com.liferay.portal.kernel.exception.PortalException,
044                            com.liferay.portal.kernel.exception.SystemException {
045                    return getService()
046                                       .updateLookAndFeel(groupId, privateLayout, themeId,
047                            colorSchemeId, css, wapTheme);
048            }
049    
050            public static com.liferay.portal.model.LayoutSet updateSettings(
051                    long groupId, boolean privateLayout, java.lang.String settings)
052                    throws com.liferay.portal.kernel.exception.PortalException,
053                            com.liferay.portal.kernel.exception.SystemException {
054                    return getService().updateSettings(groupId, privateLayout, settings);
055            }
056    
057            public static com.liferay.portal.model.LayoutSet updateVirtualHost(
058                    long groupId, boolean privateLayout, java.lang.String virtualHost)
059                    throws com.liferay.portal.kernel.exception.PortalException,
060                            com.liferay.portal.kernel.exception.SystemException {
061                    return getService()
062                                       .updateVirtualHost(groupId, privateLayout, virtualHost);
063            }
064    
065            public static LayoutSetService getService() {
066                    if (_service == null) {
067                            _service = (LayoutSetService)PortalBeanLocatorUtil.locate(LayoutSetService.class.getName());
068                    }
069    
070                    return _service;
071            }
072    
073            public void setService(LayoutSetService service) {
074                    _service = service;
075            }
076    
077            private static LayoutSetService _service;
078    }