001    /**
002     * Copyright (c) 2000-2013 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            * @throws SystemException if a system exception occurred
081            */
082            public static void updateLayoutSetPrototypeLinkEnabled(long groupId,
083                    boolean privateLayout, boolean layoutSetPrototypeLinkEnabled,
084                    java.lang.String layoutSetPrototypeUuid)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException {
087                    getService()
088                            .updateLayoutSetPrototypeLinkEnabled(groupId, privateLayout,
089                            layoutSetPrototypeLinkEnabled, layoutSetPrototypeUuid);
090            }
091    
092            public static void updateLogo(long groupId, boolean privateLayout,
093                    boolean logo, byte[] bytes)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException {
096                    getService().updateLogo(groupId, privateLayout, logo, bytes);
097            }
098    
099            public static void updateLogo(long groupId, boolean privateLayout,
100                    boolean logo, java.io.File file)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException {
103                    getService().updateLogo(groupId, privateLayout, logo, file);
104            }
105    
106            public static void updateLogo(long groupId, boolean privateLayout,
107                    boolean logo, java.io.InputStream inputStream)
108                    throws com.liferay.portal.kernel.exception.PortalException,
109                            com.liferay.portal.kernel.exception.SystemException {
110                    getService().updateLogo(groupId, privateLayout, logo, inputStream);
111            }
112    
113            public static void updateLogo(long groupId, boolean privateLayout,
114                    boolean logo, java.io.InputStream inputStream, boolean cleanUpStream)
115                    throws com.liferay.portal.kernel.exception.PortalException,
116                            com.liferay.portal.kernel.exception.SystemException {
117                    getService()
118                            .updateLogo(groupId, privateLayout, logo, inputStream, cleanUpStream);
119            }
120    
121            public static com.liferay.portal.model.LayoutSet updateLookAndFeel(
122                    long groupId, boolean privateLayout, java.lang.String themeId,
123                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
124                    throws com.liferay.portal.kernel.exception.PortalException,
125                            com.liferay.portal.kernel.exception.SystemException {
126                    return getService()
127                                       .updateLookAndFeel(groupId, privateLayout, themeId,
128                            colorSchemeId, css, wapTheme);
129            }
130    
131            public static com.liferay.portal.model.LayoutSet updateSettings(
132                    long groupId, boolean privateLayout, java.lang.String settings)
133                    throws com.liferay.portal.kernel.exception.PortalException,
134                            com.liferay.portal.kernel.exception.SystemException {
135                    return getService().updateSettings(groupId, privateLayout, settings);
136            }
137    
138            public static com.liferay.portal.model.LayoutSet updateVirtualHost(
139                    long groupId, boolean privateLayout, java.lang.String virtualHost)
140                    throws com.liferay.portal.kernel.exception.PortalException,
141                            com.liferay.portal.kernel.exception.SystemException {
142                    return getService()
143                                       .updateVirtualHost(groupId, privateLayout, virtualHost);
144            }
145    
146            public static LayoutSetService getService() {
147                    if (_service == null) {
148                            _service = (LayoutSetService)PortalBeanLocatorUtil.locate(LayoutSetService.class.getName());
149    
150                            ReferenceRegistry.registerReference(LayoutSetServiceUtil.class,
151                                    "_service");
152                    }
153    
154                    return _service;
155            }
156    
157            /**
158             * @deprecated As of 6.2.0
159             */
160            public void setService(LayoutSetService service) {
161            }
162    
163            private static LayoutSetService _service;
164    }