001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the remote service utility for LayoutSet. This utility wraps
024     * {@link com.liferay.portal.service.impl.LayoutSetServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
029     *
030     * @author Brian Wing Shun Chan
031     * @see LayoutSetService
032     * @see com.liferay.portal.service.base.LayoutSetServiceBaseImpl
033     * @see com.liferay.portal.service.impl.LayoutSetServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class LayoutSetServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.LayoutSetServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043    
044            /**
045            * Returns the OSGi service identifier.
046            *
047            * @return the OSGi service identifier
048            */
049            public static java.lang.String getOSGiServiceIdentifier() {
050                    return getService().getOSGiServiceIdentifier();
051            }
052    
053            /**
054            * Updates the state of the layout set prototype link.
055            *
056            * <p>
057            * <strong>Important:</strong> Setting
058            * <code>layoutSetPrototypeLinkEnabled</code> to <code>true</code> and
059            * <code>layoutSetPrototypeUuid</code> to <code>null</code> when the layout
060            * set prototype's current uuid is <code>null</code> will result in an
061            * <code>IllegalStateException</code>.
062            * </p>
063            *
064            * @param groupId the primary key of the group
065            * @param privateLayout whether the layout set is private to the group
066            * @param layoutSetPrototypeLinkEnabled whether the layout set prototype is
067            link enabled
068            * @param layoutSetPrototypeUuid the uuid of the layout set prototype to
069            link with
070            */
071            public static void updateLayoutSetPrototypeLinkEnabled(long groupId,
072                    boolean privateLayout, boolean layoutSetPrototypeLinkEnabled,
073                    java.lang.String layoutSetPrototypeUuid)
074                    throws com.liferay.portal.kernel.exception.PortalException {
075                    getService()
076                            .updateLayoutSetPrototypeLinkEnabled(groupId, privateLayout,
077                            layoutSetPrototypeLinkEnabled, layoutSetPrototypeUuid);
078            }
079    
080            public static void updateLogo(long groupId, boolean privateLayout,
081                    boolean logo, byte[] bytes)
082                    throws com.liferay.portal.kernel.exception.PortalException {
083                    getService().updateLogo(groupId, privateLayout, logo, bytes);
084            }
085    
086            public static void updateLogo(long groupId, boolean privateLayout,
087                    boolean logo, java.io.File file)
088                    throws com.liferay.portal.kernel.exception.PortalException {
089                    getService().updateLogo(groupId, privateLayout, logo, file);
090            }
091    
092            public static void updateLogo(long groupId, boolean privateLayout,
093                    boolean logo, java.io.InputStream inputStream)
094                    throws com.liferay.portal.kernel.exception.PortalException {
095                    getService().updateLogo(groupId, privateLayout, logo, inputStream);
096            }
097    
098            public static void updateLogo(long groupId, boolean privateLayout,
099                    boolean logo, java.io.InputStream inputStream, boolean cleanUpStream)
100                    throws com.liferay.portal.kernel.exception.PortalException {
101                    getService()
102                            .updateLogo(groupId, privateLayout, logo, inputStream, cleanUpStream);
103            }
104    
105            public static com.liferay.portal.model.LayoutSet updateLookAndFeel(
106                    long groupId, boolean privateLayout, java.lang.String themeId,
107                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
108                    throws com.liferay.portal.kernel.exception.PortalException {
109                    return getService()
110                                       .updateLookAndFeel(groupId, privateLayout, themeId,
111                            colorSchemeId, css, wapTheme);
112            }
113    
114            public static com.liferay.portal.model.LayoutSet updateSettings(
115                    long groupId, boolean privateLayout, java.lang.String settings)
116                    throws com.liferay.portal.kernel.exception.PortalException {
117                    return getService().updateSettings(groupId, privateLayout, settings);
118            }
119    
120            public static com.liferay.portal.model.LayoutSet updateVirtualHost(
121                    long groupId, boolean privateLayout, java.lang.String virtualHost)
122                    throws com.liferay.portal.kernel.exception.PortalException {
123                    return getService()
124                                       .updateVirtualHost(groupId, privateLayout, virtualHost);
125            }
126    
127            public static LayoutSetService getService() {
128                    if (_service == null) {
129                            _service = (LayoutSetService)PortalBeanLocatorUtil.locate(LayoutSetService.class.getName());
130    
131                            ReferenceRegistry.registerReference(LayoutSetServiceUtil.class,
132                                    "_service");
133                    }
134    
135                    return _service;
136            }
137    
138            private static LayoutSetService _service;
139    }