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 Spring bean ID for this bean.
046            *
047            * @return the Spring bean ID for this bean
048            */
049            public static java.lang.String getBeanIdentifier() {
050                    return getService().getBeanIdentifier();
051            }
052    
053            /**
054            * Sets the Spring bean ID for this bean.
055            *
056            * @param beanIdentifier the Spring bean ID for this bean
057            */
058            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059                    getService().setBeanIdentifier(beanIdentifier);
060            }
061    
062            /**
063            * Updates the state of the layout set prototype link.
064            *
065            * <p>
066            * <strong>Important:</strong> Setting
067            * <code>layoutSetPrototypeLinkEnabled</code> to <code>true</code> and
068            * <code>layoutSetPrototypeUuid</code> to <code>null</code> when the layout
069            * set prototype's current uuid is <code>null</code> will result in an
070            * <code>IllegalStateException</code>.
071            * </p>
072            *
073            * @param groupId the primary key of the group
074            * @param privateLayout whether the layout set is private to the group
075            * @param layoutSetPrototypeLinkEnabled whether the layout set prototype is
076            link enabled
077            * @param layoutSetPrototypeUuid the uuid of the layout set prototype to
078            link with
079            * @throws PortalException if a portal exception occurred
080            */
081            public static void updateLayoutSetPrototypeLinkEnabled(long groupId,
082                    boolean privateLayout, boolean layoutSetPrototypeLinkEnabled,
083                    java.lang.String layoutSetPrototypeUuid)
084                    throws com.liferay.portal.kernel.exception.PortalException {
085                    getService()
086                            .updateLayoutSetPrototypeLinkEnabled(groupId, privateLayout,
087                            layoutSetPrototypeLinkEnabled, layoutSetPrototypeUuid);
088            }
089    
090            public static void updateLogo(long groupId, boolean privateLayout,
091                    boolean logo, byte[] bytes)
092                    throws com.liferay.portal.kernel.exception.PortalException {
093                    getService().updateLogo(groupId, privateLayout, logo, bytes);
094            }
095    
096            public static void updateLogo(long groupId, boolean privateLayout,
097                    boolean logo, java.io.File file)
098                    throws com.liferay.portal.kernel.exception.PortalException {
099                    getService().updateLogo(groupId, privateLayout, logo, file);
100            }
101    
102            public static void updateLogo(long groupId, boolean privateLayout,
103                    boolean logo, java.io.InputStream inputStream)
104                    throws com.liferay.portal.kernel.exception.PortalException {
105                    getService().updateLogo(groupId, privateLayout, logo, inputStream);
106            }
107    
108            public static void updateLogo(long groupId, boolean privateLayout,
109                    boolean logo, java.io.InputStream inputStream, boolean cleanUpStream)
110                    throws com.liferay.portal.kernel.exception.PortalException {
111                    getService()
112                            .updateLogo(groupId, privateLayout, logo, inputStream, cleanUpStream);
113            }
114    
115            public static com.liferay.portal.model.LayoutSet updateLookAndFeel(
116                    long groupId, boolean privateLayout, java.lang.String themeId,
117                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
118                    throws com.liferay.portal.kernel.exception.PortalException {
119                    return getService()
120                                       .updateLookAndFeel(groupId, privateLayout, themeId,
121                            colorSchemeId, css, wapTheme);
122            }
123    
124            public static com.liferay.portal.model.LayoutSet updateSettings(
125                    long groupId, boolean privateLayout, java.lang.String settings)
126                    throws com.liferay.portal.kernel.exception.PortalException {
127                    return getService().updateSettings(groupId, privateLayout, settings);
128            }
129    
130            public static com.liferay.portal.model.LayoutSet updateVirtualHost(
131                    long groupId, boolean privateLayout, java.lang.String virtualHost)
132                    throws com.liferay.portal.kernel.exception.PortalException {
133                    return getService()
134                                       .updateVirtualHost(groupId, privateLayout, virtualHost);
135            }
136    
137            public static LayoutSetService getService() {
138                    if (_service == null) {
139                            _service = (LayoutSetService)PortalBeanLocatorUtil.locate(LayoutSetService.class.getName());
140    
141                            ReferenceRegistry.registerReference(LayoutSetServiceUtil.class,
142                                    "_service");
143                    }
144    
145                    return _service;
146            }
147    
148            /**
149             * @deprecated As of 6.2.0
150             */
151            @Deprecated
152            public void setService(LayoutSetService service) {
153            }
154    
155            private static LayoutSetService _service;
156    }