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