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            public static com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototype(
083                    long layoutSetPrototypeId)
084                    throws com.liferay.portal.kernel.exception.PortalException {
085                    return getService().getLayoutSetPrototype(layoutSetPrototypeId);
086            }
087    
088            /**
089            * Returns the OSGi service identifier.
090            *
091            * @return the OSGi service identifier
092            */
093            public static java.lang.String getOSGiServiceIdentifier() {
094                    return getService().getOSGiServiceIdentifier();
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            * @deprecated As of 7.0.0, replaced by {@link
106            #updateLayoutSetPrototype(long, Map, Map, boolean, boolean,
107            ServiceContext)}
108            */
109            @Deprecated
110            public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
111                    long layoutSetPrototypeId,
112                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
113                    java.lang.String description, boolean active,
114                    boolean layoutsUpdateable,
115                    com.liferay.portal.service.ServiceContext serviceContext)
116                    throws com.liferay.portal.kernel.exception.PortalException {
117                    return getService()
118                                       .updateLayoutSetPrototype(layoutSetPrototypeId, nameMap,
119                            description, active, layoutsUpdateable, serviceContext);
120            }
121    
122            public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
123                    long layoutSetPrototypeId,
124                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
125                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
126                    boolean active, boolean layoutsUpdateable,
127                    com.liferay.portal.service.ServiceContext serviceContext)
128                    throws com.liferay.portal.kernel.exception.PortalException {
129                    return getService()
130                                       .updateLayoutSetPrototype(layoutSetPrototypeId, nameMap,
131                            descriptionMap, active, layoutsUpdateable, serviceContext);
132            }
133    
134            public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
135                    long layoutSetPrototypeId, java.lang.String settings)
136                    throws com.liferay.portal.kernel.exception.PortalException {
137                    return getService()
138                                       .updateLayoutSetPrototype(layoutSetPrototypeId, settings);
139            }
140    
141            public static LayoutSetPrototypeService getService() {
142                    if (_service == null) {
143                            _service = (LayoutSetPrototypeService)PortalBeanLocatorUtil.locate(LayoutSetPrototypeService.class.getName());
144    
145                            ReferenceRegistry.registerReference(LayoutSetPrototypeServiceUtil.class,
146                                    "_service");
147                    }
148    
149                    return _service;
150            }
151    
152            private static LayoutSetPrototypeService _service;
153    }