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.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.exception.PortalException;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022    import com.liferay.portal.kernel.security.access.control.AccessControlled;
023    import com.liferay.portal.kernel.transaction.Isolation;
024    import com.liferay.portal.kernel.transaction.Transactional;
025    import com.liferay.portal.model.LayoutSet;
026    
027    import java.io.File;
028    import java.io.InputStream;
029    
030    /**
031     * Provides the remote service interface for LayoutSet. Methods of this
032     * service are expected to have security checks based on the propagated JAAS
033     * credentials because this service can be accessed remotely.
034     *
035     * @author Brian Wing Shun Chan
036     * @see LayoutSetServiceUtil
037     * @see com.liferay.portal.service.base.LayoutSetServiceBaseImpl
038     * @see com.liferay.portal.service.impl.LayoutSetServiceImpl
039     * @generated
040     */
041    @AccessControlled
042    @JSONWebService
043    @ProviderType
044    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
045            PortalException.class, SystemException.class})
046    public interface LayoutSetService extends BaseService {
047            /*
048             * NOTE FOR DEVELOPERS:
049             *
050             * Never modify or reference this interface directly. Always use {@link LayoutSetServiceUtil} to access the layout set remote service. Add custom service methods to {@link com.liferay.portal.service.impl.LayoutSetServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
051             */
052    
053            /**
054            * Returns the OSGi service identifier.
055            *
056            * @return the OSGi service identifier
057            */
058            public java.lang.String getOSGiServiceIdentifier();
059    
060            /**
061            * Updates the state of the layout set prototype link.
062            *
063            * <p>
064            * <strong>Important:</strong> Setting
065            * <code>layoutSetPrototypeLinkEnabled</code> to <code>true</code> and
066            * <code>layoutSetPrototypeUuid</code> to <code>null</code> when the layout
067            * set prototype's current uuid is <code>null</code> will result in an
068            * <code>IllegalStateException</code>.
069            * </p>
070            *
071            * @param groupId the primary key of the group
072            * @param privateLayout whether the layout set is private to the group
073            * @param layoutSetPrototypeLinkEnabled whether the layout set prototype is
074            link enabled
075            * @param layoutSetPrototypeUuid the uuid of the layout set prototype to
076            link with
077            */
078            public void updateLayoutSetPrototypeLinkEnabled(long groupId,
079                    boolean privateLayout, boolean layoutSetPrototypeLinkEnabled,
080                    java.lang.String layoutSetPrototypeUuid) throws PortalException;
081    
082            public void updateLogo(long groupId, boolean privateLayout, boolean logo,
083                    byte[] bytes) throws PortalException;
084    
085            public void updateLogo(long groupId, boolean privateLayout, boolean logo,
086                    File file) throws PortalException;
087    
088            public void updateLogo(long groupId, boolean privateLayout, boolean logo,
089                    InputStream inputStream) throws PortalException;
090    
091            public void updateLogo(long groupId, boolean privateLayout, boolean logo,
092                    InputStream inputStream, boolean cleanUpStream)
093                    throws PortalException;
094    
095            public LayoutSet updateLookAndFeel(long groupId, boolean privateLayout,
096                    java.lang.String themeId, java.lang.String colorSchemeId,
097                    java.lang.String css, boolean wapTheme) throws PortalException;
098    
099            public LayoutSet updateSettings(long groupId, boolean privateLayout,
100                    java.lang.String settings) throws PortalException;
101    
102            public LayoutSet updateVirtualHost(long groupId, boolean privateLayout,
103                    java.lang.String virtualHost) throws PortalException;
104    }