001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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 set remote service. This utility wraps {@link com.liferay.portal.service.impl.LayoutSetServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
023     *
024     * <p>
025     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see LayoutSetService
030     * @see com.liferay.portal.service.base.LayoutSetServiceBaseImpl
031     * @see com.liferay.portal.service.impl.LayoutSetServiceImpl
032     * @generated
033     */
034    public class LayoutSetServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.LayoutSetServiceImpl} and rerun ServiceBuilder to regenerate this class.
039             */
040            public static void updateLogo(long groupId, boolean privateLayout,
041                    boolean logo, java.io.InputStream inputStream)
042                    throws com.liferay.portal.kernel.exception.PortalException,
043                            com.liferay.portal.kernel.exception.SystemException {
044                    getService().updateLogo(groupId, privateLayout, logo, inputStream);
045            }
046    
047            public static void updateLogo(long groupId, boolean privateLayout,
048                    boolean logo, java.io.InputStream inputStream, boolean cleanUpStream)
049                    throws com.liferay.portal.kernel.exception.PortalException,
050                            com.liferay.portal.kernel.exception.SystemException {
051                    getService()
052                            .updateLogo(groupId, privateLayout, logo, inputStream, cleanUpStream);
053            }
054    
055            public static com.liferay.portal.model.LayoutSet updateLookAndFeel(
056                    long groupId, boolean privateLayout, java.lang.String themeId,
057                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
058                    throws com.liferay.portal.kernel.exception.PortalException,
059                            com.liferay.portal.kernel.exception.SystemException {
060                    return getService()
061                                       .updateLookAndFeel(groupId, privateLayout, themeId,
062                            colorSchemeId, css, wapTheme);
063            }
064    
065            public static com.liferay.portal.model.LayoutSet updateSettings(
066                    long groupId, boolean privateLayout, java.lang.String settings)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    return getService().updateSettings(groupId, privateLayout, settings);
070            }
071    
072            public static com.liferay.portal.model.LayoutSet updateVirtualHost(
073                    long groupId, boolean privateLayout, java.lang.String virtualHost)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return getService()
077                                       .updateVirtualHost(groupId, privateLayout, virtualHost);
078            }
079    
080            public static LayoutSetService getService() {
081                    if (_service == null) {
082                            _service = (LayoutSetService)PortalBeanLocatorUtil.locate(LayoutSetService.class.getName());
083    
084                            ReferenceRegistry.registerReference(LayoutSetServiceUtil.class,
085                                    "_service");
086                            MethodCache.remove(LayoutSetService.class);
087                    }
088    
089                    return _service;
090            }
091    
092            public void setService(LayoutSetService service) {
093                    MethodCache.remove(LayoutSetService.class);
094    
095                    _service = service;
096    
097                    ReferenceRegistry.registerReference(LayoutSetServiceUtil.class,
098                            "_service");
099                    MethodCache.remove(LayoutSetService.class);
100            }
101    
102            private static LayoutSetService _service;
103    }