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