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.Propagation;
025    import com.liferay.portal.kernel.transaction.Transactional;
026    
027    /**
028     * Provides the remote service interface for LayoutSetPrototype. Methods of this
029     * service are expected to have security checks based on the propagated JAAS
030     * credentials because this service can be accessed remotely.
031     *
032     * @author Brian Wing Shun Chan
033     * @see LayoutSetPrototypeServiceUtil
034     * @see com.liferay.portal.service.base.LayoutSetPrototypeServiceBaseImpl
035     * @see com.liferay.portal.service.impl.LayoutSetPrototypeServiceImpl
036     * @generated
037     */
038    @AccessControlled
039    @JSONWebService
040    @ProviderType
041    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
042            PortalException.class, SystemException.class})
043    public interface LayoutSetPrototypeService extends BaseService {
044            /*
045             * NOTE FOR DEVELOPERS:
046             *
047             * Never modify or reference this interface directly. Always use {@link LayoutSetPrototypeServiceUtil} to access the layout set prototype remote service. Add custom service methods to {@link com.liferay.portal.service.impl.LayoutSetPrototypeServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
048             */
049    
050            /**
051            * @deprecated As of 7.0.0, replaced by {@link #addLayoutSetPrototype(Map,
052            Map, boolean, boolean, ServiceContext)}
053            */
054            @java.lang.Deprecated
055            public com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
056                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
057                    java.lang.String description, boolean active,
058                    boolean layoutsUpdateable,
059                    com.liferay.portal.service.ServiceContext serviceContext)
060                    throws PortalException;
061    
062            public com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
063                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
064                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
065                    boolean active, boolean layoutsUpdateable,
066                    com.liferay.portal.service.ServiceContext serviceContext)
067                    throws PortalException;
068    
069            public void deleteLayoutSetPrototype(long layoutSetPrototypeId)
070                    throws PortalException;
071    
072            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
073            public com.liferay.portal.model.LayoutSetPrototype fetchLayoutSetPrototype(
074                    long layoutSetPrototypeId) throws PortalException;
075    
076            /**
077            * Returns the Spring bean ID for this bean.
078            *
079            * @return the Spring bean ID for this bean
080            */
081            public java.lang.String getBeanIdentifier();
082    
083            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
084            public com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototype(
085                    long layoutSetPrototypeId) throws PortalException;
086    
087            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
088            public java.util.List<com.liferay.portal.model.LayoutSetPrototype> search(
089                    long companyId, java.lang.Boolean active,
090                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> obc)
091                    throws PortalException;
092    
093            /**
094            * Sets the Spring bean ID for this bean.
095            *
096            * @param beanIdentifier the Spring bean ID for this bean
097            */
098            public void setBeanIdentifier(java.lang.String beanIdentifier);
099    
100            /**
101            * @deprecated As of 7.0.0, replaced by {@link
102            #updateLayoutSetPrototype(long, Map, Map, boolean, boolean,
103            ServiceContext)}
104            */
105            @java.lang.Deprecated
106            public com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
107                    long layoutSetPrototypeId,
108                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
109                    java.lang.String description, boolean active,
110                    boolean layoutsUpdateable,
111                    com.liferay.portal.service.ServiceContext serviceContext)
112                    throws PortalException;
113    
114            public com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
115                    long layoutSetPrototypeId,
116                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
117                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
118                    boolean active, boolean layoutsUpdateable,
119                    com.liferay.portal.service.ServiceContext serviceContext)
120                    throws PortalException;
121    
122            public com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
123                    long layoutSetPrototypeId, java.lang.String settings)
124                    throws PortalException;
125    }