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            public static com.liferay.portal.model.LayoutSetPrototype fetchLayoutSetPrototype(
077                    long layoutSetPrototypeId)
078                    throws com.liferay.portal.kernel.exception.PortalException {
079                    return getService().fetchLayoutSetPrototype(layoutSetPrototypeId);
080            }
081    
082            /**
083            * Returns the Spring bean ID for this bean.
084            *
085            * @return the Spring bean ID for this bean
086            */
087            public static java.lang.String getBeanIdentifier() {
088                    return getService().getBeanIdentifier();
089            }
090    
091            public static com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototype(
092                    long layoutSetPrototypeId)
093                    throws com.liferay.portal.kernel.exception.PortalException {
094                    return getService().getLayoutSetPrototype(layoutSetPrototypeId);
095            }
096    
097            public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> search(
098                    long companyId, java.lang.Boolean active,
099                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> obc)
100                    throws com.liferay.portal.kernel.exception.PortalException {
101                    return getService().search(companyId, active, obc);
102            }
103    
104            /**
105            * Sets the Spring bean ID for this bean.
106            *
107            * @param beanIdentifier the Spring bean ID for this bean
108            */
109            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
110                    getService().setBeanIdentifier(beanIdentifier);
111            }
112    
113            /**
114            * @deprecated As of 7.0.0, replaced by {@link
115            #updateLayoutSetPrototype(long, Map, Map, boolean, boolean,
116            ServiceContext)}
117            */
118            @Deprecated
119            public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
120                    long layoutSetPrototypeId,
121                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
122                    java.lang.String description, boolean active,
123                    boolean layoutsUpdateable,
124                    com.liferay.portal.service.ServiceContext serviceContext)
125                    throws com.liferay.portal.kernel.exception.PortalException {
126                    return getService()
127                                       .updateLayoutSetPrototype(layoutSetPrototypeId, nameMap,
128                            description, active, layoutsUpdateable, serviceContext);
129            }
130    
131            public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
132                    long layoutSetPrototypeId,
133                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
134                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
135                    boolean active, boolean layoutsUpdateable,
136                    com.liferay.portal.service.ServiceContext serviceContext)
137                    throws com.liferay.portal.kernel.exception.PortalException {
138                    return getService()
139                                       .updateLayoutSetPrototype(layoutSetPrototypeId, nameMap,
140                            descriptionMap, active, layoutsUpdateable, serviceContext);
141            }
142    
143            public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
144                    long layoutSetPrototypeId, java.lang.String settings)
145                    throws com.liferay.portal.kernel.exception.PortalException {
146                    return getService()
147                                       .updateLayoutSetPrototype(layoutSetPrototypeId, settings);
148            }
149    
150            public static LayoutSetPrototypeService getService() {
151                    if (_service == null) {
152                            _service = (LayoutSetPrototypeService)PortalBeanLocatorUtil.locate(LayoutSetPrototypeService.class.getName());
153    
154                            ReferenceRegistry.registerReference(LayoutSetPrototypeServiceUtil.class,
155                                    "_service");
156                    }
157    
158                    return _service;
159            }
160    
161            /**
162             * @deprecated As of 6.2.0
163             */
164            @Deprecated
165            public void setService(LayoutSetPrototypeService service) {
166            }
167    
168            private static LayoutSetPrototypeService _service;
169    }