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