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.kernel.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.model.LayoutSetPrototype;
023    import com.liferay.portal.kernel.security.access.control.AccessControlled;
024    import com.liferay.portal.kernel.transaction.Isolation;
025    import com.liferay.portal.kernel.transaction.Propagation;
026    import com.liferay.portal.kernel.transaction.Transactional;
027    import com.liferay.portal.kernel.util.OrderByComparator;
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, ServiceContext serviceContext)
064                    throws PortalException;
065    
066            public LayoutSetPrototype addLayoutSetPrototype(
067                    Map<Locale, java.lang.String> nameMap,
068                    Map<Locale, java.lang.String> descriptionMap, boolean active,
069                    boolean layoutsUpdateable, ServiceContext serviceContext)
070                    throws PortalException;
071    
072            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
073            public LayoutSetPrototype fetchLayoutSetPrototype(long layoutSetPrototypeId)
074                    throws PortalException;
075    
076            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
077            public LayoutSetPrototype getLayoutSetPrototype(long layoutSetPrototypeId)
078                    throws PortalException;
079    
080            public LayoutSetPrototype updateLayoutSetPrototype(
081                    long layoutSetPrototypeId, java.lang.String settings)
082                    throws PortalException;
083    
084            /**
085            * @deprecated As of 7.0.0, replaced by {@link
086            #updateLayoutSetPrototype(long, Map, Map, boolean, boolean,
087            ServiceContext)}
088            */
089            @java.lang.Deprecated
090            public LayoutSetPrototype updateLayoutSetPrototype(
091                    long layoutSetPrototypeId, Map<Locale, java.lang.String> nameMap,
092                    java.lang.String description, boolean active,
093                    boolean layoutsUpdateable, ServiceContext serviceContext)
094                    throws PortalException;
095    
096            public LayoutSetPrototype updateLayoutSetPrototype(
097                    long layoutSetPrototypeId, Map<Locale, java.lang.String> nameMap,
098                    Map<Locale, java.lang.String> descriptionMap, boolean active,
099                    boolean layoutsUpdateable, ServiceContext serviceContext)
100                    throws PortalException;
101    
102            /**
103            * Returns the OSGi service identifier.
104            *
105            * @return the OSGi service identifier
106            */
107            public java.lang.String getOSGiServiceIdentifier();
108    
109            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110            public List<LayoutSetPrototype> search(long companyId,
111                    java.lang.Boolean active, OrderByComparator<LayoutSetPrototype> obc)
112                    throws PortalException;
113    
114            public void deleteLayoutSetPrototype(long layoutSetPrototypeId)
115                    throws PortalException;
116    }