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