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            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
077            public com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototype(
078                    long layoutSetPrototypeId) throws PortalException;
079    
080            /**
081            * Returns the OSGi service identifier.
082            *
083            * @return the OSGi service identifier
084            */
085            public java.lang.String getOSGiServiceIdentifier();
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            * @deprecated As of 7.0.0, replaced by {@link
095            #updateLayoutSetPrototype(long, Map, Map, boolean, boolean,
096            ServiceContext)}
097            */
098            @java.lang.Deprecated
099            public com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
100                    long layoutSetPrototypeId,
101                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
102                    java.lang.String description, boolean active,
103                    boolean layoutsUpdateable,
104                    com.liferay.portal.service.ServiceContext serviceContext)
105                    throws PortalException;
106    
107            public com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
108                    long layoutSetPrototypeId,
109                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
110                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
111                    boolean active, boolean layoutsUpdateable,
112                    com.liferay.portal.service.ServiceContext serviceContext)
113                    throws PortalException;
114    
115            public com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
116                    long layoutSetPrototypeId, java.lang.String settings)
117                    throws PortalException;
118    }