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.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.kernel.model.LayoutSetPrototype addLayoutSetPrototype(
050                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
051                    java.lang.String description, boolean active,
052                    boolean layoutsUpdateable, ServiceContext serviceContext)
053                    throws com.liferay.portal.kernel.exception.PortalException {
054                    return getService()
055                                       .addLayoutSetPrototype(nameMap, description, active,
056                            layoutsUpdateable, serviceContext);
057            }
058    
059            public static com.liferay.portal.kernel.model.LayoutSetPrototype addLayoutSetPrototype(
060                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
061                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
062                    boolean active, boolean layoutsUpdateable, ServiceContext serviceContext)
063                    throws com.liferay.portal.kernel.exception.PortalException {
064                    return getService()
065                                       .addLayoutSetPrototype(nameMap, descriptionMap, active,
066                            layoutsUpdateable, serviceContext);
067            }
068    
069            public static com.liferay.portal.kernel.model.LayoutSetPrototype fetchLayoutSetPrototype(
070                    long layoutSetPrototypeId)
071                    throws com.liferay.portal.kernel.exception.PortalException {
072                    return getService().fetchLayoutSetPrototype(layoutSetPrototypeId);
073            }
074    
075            public static com.liferay.portal.kernel.model.LayoutSetPrototype getLayoutSetPrototype(
076                    long layoutSetPrototypeId)
077                    throws com.liferay.portal.kernel.exception.PortalException {
078                    return getService().getLayoutSetPrototype(layoutSetPrototypeId);
079            }
080    
081            public static com.liferay.portal.kernel.model.LayoutSetPrototype updateLayoutSetPrototype(
082                    long layoutSetPrototypeId, java.lang.String settings)
083                    throws com.liferay.portal.kernel.exception.PortalException {
084                    return getService()
085                                       .updateLayoutSetPrototype(layoutSetPrototypeId, settings);
086            }
087    
088            /**
089            * @deprecated As of 7.0.0, replaced by {@link
090            #updateLayoutSetPrototype(long, Map, Map, boolean, boolean,
091            ServiceContext)}
092            */
093            @Deprecated
094            public static com.liferay.portal.kernel.model.LayoutSetPrototype updateLayoutSetPrototype(
095                    long layoutSetPrototypeId,
096                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
097                    java.lang.String description, boolean active,
098                    boolean layoutsUpdateable, ServiceContext serviceContext)
099                    throws com.liferay.portal.kernel.exception.PortalException {
100                    return getService()
101                                       .updateLayoutSetPrototype(layoutSetPrototypeId, nameMap,
102                            description, active, layoutsUpdateable, serviceContext);
103            }
104    
105            public static com.liferay.portal.kernel.model.LayoutSetPrototype updateLayoutSetPrototype(
106                    long layoutSetPrototypeId,
107                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
108                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
109                    boolean active, boolean layoutsUpdateable, ServiceContext serviceContext)
110                    throws com.liferay.portal.kernel.exception.PortalException {
111                    return getService()
112                                       .updateLayoutSetPrototype(layoutSetPrototypeId, nameMap,
113                            descriptionMap, active, layoutsUpdateable, serviceContext);
114            }
115    
116            /**
117            * Returns the OSGi service identifier.
118            *
119            * @return the OSGi service identifier
120            */
121            public static java.lang.String getOSGiServiceIdentifier() {
122                    return getService().getOSGiServiceIdentifier();
123            }
124    
125            public static java.util.List<com.liferay.portal.kernel.model.LayoutSetPrototype> search(
126                    long companyId, java.lang.Boolean active,
127                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.LayoutSetPrototype> obc)
128                    throws com.liferay.portal.kernel.exception.PortalException {
129                    return getService().search(companyId, active, obc);
130            }
131    
132            public static void deleteLayoutSetPrototype(long layoutSetPrototypeId)
133                    throws com.liferay.portal.kernel.exception.PortalException {
134                    getService().deleteLayoutSetPrototype(layoutSetPrototypeId);
135            }
136    
137            public static LayoutSetPrototypeService getService() {
138                    if (_service == null) {
139                            _service = (LayoutSetPrototypeService)PortalBeanLocatorUtil.locate(LayoutSetPrototypeService.class.getName());
140    
141                            ReferenceRegistry.registerReference(LayoutSetPrototypeServiceUtil.class,
142                                    "_service");
143                    }
144    
145                    return _service;
146            }
147    
148            private static LayoutSetPrototypeService _service;
149    }