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.LayoutPrototype;
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, com.liferay.portal.service.ServiceContext serviceContext)
064                    throws PortalException;
065    
066            public LayoutPrototype addLayoutPrototype(
067                    Map<Locale, java.lang.String> nameMap,
068                    Map<Locale, java.lang.String> descriptionMap, boolean active,
069                    com.liferay.portal.service.ServiceContext serviceContext)
070                    throws PortalException;
071    
072            public void deleteLayoutPrototype(long layoutPrototypeId)
073                    throws PortalException;
074    
075            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
076            public LayoutPrototype fetchLayoutPrototype(long layoutPrototypeId)
077                    throws PortalException;
078    
079            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080            public LayoutPrototype getLayoutPrototype(long layoutPrototypeId)
081                    throws PortalException;
082    
083            /**
084            * Returns the OSGi service identifier.
085            *
086            * @return the OSGi service identifier
087            */
088            public java.lang.String getOSGiServiceIdentifier();
089    
090            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091            public List<LayoutPrototype> search(long companyId,
092                    java.lang.Boolean active, OrderByComparator<LayoutPrototype> obc)
093                    throws PortalException;
094    
095            /**
096            * @deprecated As of 7.0.0, replaced by {@link #updateLayoutPrototype(long,
097            Map, Map, boolean, ServiceContext)}
098            */
099            @java.lang.Deprecated
100            public LayoutPrototype updateLayoutPrototype(long layoutPrototypeId,
101                    Map<Locale, java.lang.String> nameMap, java.lang.String description,
102                    boolean active, com.liferay.portal.service.ServiceContext serviceContext)
103                    throws PortalException;
104    
105            public LayoutPrototype updateLayoutPrototype(long layoutPrototypeId,
106                    Map<Locale, java.lang.String> nameMap,
107                    Map<Locale, java.lang.String> descriptionMap, boolean active,
108                    com.liferay.portal.service.ServiceContext serviceContext)
109                    throws PortalException;
110    }