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