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.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the remote service utility for LayoutSetPrototype. This utility wraps
024     * {@link com.liferay.portal.service.impl.LayoutSetPrototypeServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
029     *
030     * @author Brian Wing Shun Chan
031     * @see LayoutSetPrototypeService
032     * @see com.liferay.portal.service.base.LayoutSetPrototypeServiceBaseImpl
033     * @see com.liferay.portal.service.impl.LayoutSetPrototypeServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class LayoutSetPrototypeServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.LayoutSetPrototypeServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043    
044            /**
045            * @deprecated As of 7.0.0, replaced by {@link #addLayoutSetPrototype(Map,
046            Map, boolean, boolean, ServiceContext)}
047            */
048            @Deprecated
049            public static com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
050                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
051                    java.lang.String description, boolean active,
052                    boolean layoutsUpdateable,
053                    com.liferay.portal.service.ServiceContext serviceContext)
054                    throws com.liferay.portal.kernel.exception.PortalException {
055                    return getService()
056                                       .addLayoutSetPrototype(nameMap, description, active,
057                            layoutsUpdateable, serviceContext);
058            }
059    
060            public static com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
061                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
062                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
063                    boolean active, boolean layoutsUpdateable,
064                    com.liferay.portal.service.ServiceContext serviceContext)
065                    throws com.liferay.portal.kernel.exception.PortalException {
066                    return getService()
067                                       .addLayoutSetPrototype(nameMap, descriptionMap, active,
068                            layoutsUpdateable, serviceContext);
069            }
070    
071            public static void deleteLayoutSetPrototype(long layoutSetPrototypeId)
072                    throws com.liferay.portal.kernel.exception.PortalException {
073                    getService().deleteLayoutSetPrototype(layoutSetPrototypeId);
074            }
075    
076            /**
077            * Returns the Spring bean ID for this bean.
078            *
079            * @return the Spring bean ID for this bean
080            */
081            public static java.lang.String getBeanIdentifier() {
082                    return getService().getBeanIdentifier();
083            }
084    
085            public static com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototype(
086                    long layoutSetPrototypeId)
087                    throws com.liferay.portal.kernel.exception.PortalException {
088                    return getService().getLayoutSetPrototype(layoutSetPrototypeId);
089            }
090    
091            public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> search(
092                    long companyId, java.lang.Boolean active,
093                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> obc)
094                    throws com.liferay.portal.kernel.exception.PortalException {
095                    return getService().search(companyId, active, obc);
096            }
097    
098            /**
099            * Sets the Spring bean ID for this bean.
100            *
101            * @param beanIdentifier the Spring bean ID for this bean
102            */
103            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
104                    getService().setBeanIdentifier(beanIdentifier);
105            }
106    
107            /**
108            * @deprecated As of 7.0.0, replaced by {@link
109            #updateLayoutSetPrototype(long, Map, Map, boolean, boolean,
110            ServiceContext)}
111            */
112            @Deprecated
113            public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
114                    long layoutSetPrototypeId,
115                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
116                    java.lang.String description, boolean active,
117                    boolean layoutsUpdateable,
118                    com.liferay.portal.service.ServiceContext serviceContext)
119                    throws com.liferay.portal.kernel.exception.PortalException {
120                    return getService()
121                                       .updateLayoutSetPrototype(layoutSetPrototypeId, nameMap,
122                            description, active, layoutsUpdateable, serviceContext);
123            }
124    
125            public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
126                    long layoutSetPrototypeId,
127                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
128                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
129                    boolean active, boolean layoutsUpdateable,
130                    com.liferay.portal.service.ServiceContext serviceContext)
131                    throws com.liferay.portal.kernel.exception.PortalException {
132                    return getService()
133                                       .updateLayoutSetPrototype(layoutSetPrototypeId, nameMap,
134                            descriptionMap, active, layoutsUpdateable, serviceContext);
135            }
136    
137            public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
138                    long layoutSetPrototypeId, java.lang.String settings)
139                    throws com.liferay.portal.kernel.exception.PortalException {
140                    return getService()
141                                       .updateLayoutSetPrototype(layoutSetPrototypeId, settings);
142            }
143    
144            public static LayoutSetPrototypeService getService() {
145                    if (_service == null) {
146                            _service = (LayoutSetPrototypeService)PortalBeanLocatorUtil.locate(LayoutSetPrototypeService.class.getName());
147    
148                            ReferenceRegistry.registerReference(LayoutSetPrototypeServiceUtil.class,
149                                    "_service");
150                    }
151    
152                    return _service;
153            }
154    
155            /**
156             * @deprecated As of 6.2.0
157             */
158            @Deprecated
159            public void setService(LayoutSetPrototypeService service) {
160            }
161    
162            private static LayoutSetPrototypeService _service;
163    }