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 com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * Provides the remote service utility for LayoutSet. This utility wraps
022     * {@link com.liferay.portal.service.impl.LayoutSetServiceImpl} and is the
023     * primary access point for service operations in application layer code running
024     * on a remote server. Methods of this service are expected to have security
025     * checks based on the propagated JAAS credentials because this service can be
026     * accessed remotely.
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    
041            /**
042            * Returns the Spring bean ID for this bean.
043            *
044            * @return the Spring bean ID for this bean
045            */
046            public static java.lang.String getBeanIdentifier() {
047                    return getService().getBeanIdentifier();
048            }
049    
050            /**
051            * Sets the Spring bean ID for this bean.
052            *
053            * @param beanIdentifier the Spring bean ID for this bean
054            */
055            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056                    getService().setBeanIdentifier(beanIdentifier);
057            }
058    
059            /**
060            * Updates the state of the layout set prototype link.
061            *
062            * <p>
063            * <strong>Important:</strong> Setting
064            * <code>layoutSetPrototypeLinkEnabled</code> to <code>true</code> and
065            * <code>layoutSetPrototypeUuid</code> to <code>null</code> when the layout
066            * set prototype's current uuid is <code>null</code> will result in an
067            * <code>IllegalStateException</code>.
068            * </p>
069            *
070            * @param groupId the primary key of the group
071            * @param privateLayout whether the layout set is private to the group
072            * @param layoutSetPrototypeLinkEnabled whether the layout set prototype is
073            link enabled
074            * @param layoutSetPrototypeUuid the uuid of the layout set prototype to
075            link with
076            * @throws PortalException if a portal exception occurred
077            * @throws SystemException if a system exception occurred
078            */
079            public static void updateLayoutSetPrototypeLinkEnabled(long groupId,
080                    boolean privateLayout, boolean layoutSetPrototypeLinkEnabled,
081                    java.lang.String layoutSetPrototypeUuid)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    getService()
085                            .updateLayoutSetPrototypeLinkEnabled(groupId, privateLayout,
086                            layoutSetPrototypeLinkEnabled, layoutSetPrototypeUuid);
087            }
088    
089            public static void updateLogo(long groupId, boolean privateLayout,
090                    boolean logo, byte[] bytes)
091                    throws com.liferay.portal.kernel.exception.PortalException,
092                            com.liferay.portal.kernel.exception.SystemException {
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                            com.liferay.portal.kernel.exception.SystemException {
100                    getService().updateLogo(groupId, privateLayout, logo, file);
101            }
102    
103            public static void updateLogo(long groupId, boolean privateLayout,
104                    boolean logo, java.io.InputStream inputStream)
105                    throws com.liferay.portal.kernel.exception.PortalException,
106                            com.liferay.portal.kernel.exception.SystemException {
107                    getService().updateLogo(groupId, privateLayout, logo, inputStream);
108            }
109    
110            public static void updateLogo(long groupId, boolean privateLayout,
111                    boolean logo, java.io.InputStream inputStream, boolean cleanUpStream)
112                    throws com.liferay.portal.kernel.exception.PortalException,
113                            com.liferay.portal.kernel.exception.SystemException {
114                    getService()
115                            .updateLogo(groupId, privateLayout, logo, inputStream, cleanUpStream);
116            }
117    
118            public static com.liferay.portal.model.LayoutSet updateLookAndFeel(
119                    long groupId, boolean privateLayout, java.lang.String themeId,
120                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
121                    throws com.liferay.portal.kernel.exception.PortalException,
122                            com.liferay.portal.kernel.exception.SystemException {
123                    return getService()
124                                       .updateLookAndFeel(groupId, privateLayout, themeId,
125                            colorSchemeId, css, wapTheme);
126            }
127    
128            public static com.liferay.portal.model.LayoutSet updateSettings(
129                    long groupId, boolean privateLayout, java.lang.String settings)
130                    throws com.liferay.portal.kernel.exception.PortalException,
131                            com.liferay.portal.kernel.exception.SystemException {
132                    return getService().updateSettings(groupId, privateLayout, settings);
133            }
134    
135            public static com.liferay.portal.model.LayoutSet updateVirtualHost(
136                    long groupId, boolean privateLayout, java.lang.String virtualHost)
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException {
139                    return getService()
140                                       .updateVirtualHost(groupId, privateLayout, virtualHost);
141            }
142    
143            public static LayoutSetService getService() {
144                    if (_service == null) {
145                            _service = (LayoutSetService)PortalBeanLocatorUtil.locate(LayoutSetService.class.getName());
146    
147                            ReferenceRegistry.registerReference(LayoutSetServiceUtil.class,
148                                    "_service");
149                    }
150    
151                    return _service;
152            }
153    
154            /**
155             * @deprecated As of 6.2.0
156             */
157            public void setService(LayoutSetService service) {
158            }
159    
160            private static LayoutSetService _service;
161    }