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.LayoutPrototype;
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 LayoutPrototype. 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 LayoutPrototypeServiceUtil
040     * @see com.liferay.portal.service.base.LayoutPrototypeServiceBaseImpl
041     * @see com.liferay.portal.service.impl.LayoutPrototypeServiceImpl
042     * @generated
043     */
044    @AccessControlled
045    @JSONWebService
046    @ProviderType
047    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
048            PortalException.class, SystemException.class})
049    public interface LayoutPrototypeService extends BaseService {
050            /*
051             * NOTE FOR DEVELOPERS:
052             *
053             * Never modify or reference this interface directly. Always use {@link LayoutPrototypeServiceUtil} to access the layout prototype remote service. Add custom service methods to {@link com.liferay.portal.service.impl.LayoutPrototypeServiceImpl} 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 #addLayoutPrototype(Map, Map,
058            boolean, ServiceContext)}
059            */
060            @java.lang.Deprecated
061            public LayoutPrototype addLayoutPrototype(
062                    Map<Locale, java.lang.String> nameMap, java.lang.String description,
063                    boolean active,
064                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
065                    throws PortalException;
066    
067            public LayoutPrototype addLayoutPrototype(
068                    Map<Locale, java.lang.String> nameMap,
069                    Map<Locale, java.lang.String> descriptionMap, boolean active,
070                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
071                    throws PortalException;
072    
073            public void deleteLayoutPrototype(long layoutPrototypeId)
074                    throws PortalException;
075    
076            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
077            public LayoutPrototype fetchLayoutPrototype(long layoutPrototypeId)
078                    throws PortalException;
079    
080            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
081            public LayoutPrototype getLayoutPrototype(long layoutPrototypeId)
082                    throws PortalException;
083    
084            /**
085            * Returns the OSGi service identifier.
086            *
087            * @return the OSGi service identifier
088            */
089            public java.lang.String getOSGiServiceIdentifier();
090    
091            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092            public List<LayoutPrototype> search(long companyId,
093                    java.lang.Boolean active, OrderByComparator<LayoutPrototype> obc)
094                    throws PortalException;
095    
096            /**
097            * @deprecated As of 7.0.0, replaced by {@link #updateLayoutPrototype(long,
098            Map, Map, boolean, ServiceContext)}
099            */
100            @java.lang.Deprecated
101            public LayoutPrototype updateLayoutPrototype(long layoutPrototypeId,
102                    Map<Locale, java.lang.String> nameMap, java.lang.String description,
103                    boolean active,
104                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
105                    throws PortalException;
106    
107            public LayoutPrototype updateLayoutPrototype(long layoutPrototypeId,
108                    Map<Locale, java.lang.String> nameMap,
109                    Map<Locale, java.lang.String> descriptionMap, boolean active,
110                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
111                    throws PortalException;
112    }