001    /**
002     * Copyright (c) 2000-2013 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            * Returns the Spring bean ID for this bean.
046            *
047            * @return the Spring bean ID for this bean
048            */
049            public static java.lang.String getBeanIdentifier() {
050                    return getService().getBeanIdentifier();
051            }
052    
053            /**
054            * Sets the Spring bean ID for this bean.
055            *
056            * @param beanIdentifier the Spring bean ID for this bean
057            */
058            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059                    getService().setBeanIdentifier(beanIdentifier);
060            }
061    
062            public static com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
063                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
064                    java.lang.String description, boolean active,
065                    boolean layoutsUpdateable,
066                    com.liferay.portal.service.ServiceContext serviceContext)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    return getService()
070                                       .addLayoutSetPrototype(nameMap, description, active,
071                            layoutsUpdateable, serviceContext);
072            }
073    
074            public static void deleteLayoutSetPrototype(long layoutSetPrototypeId)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    getService().deleteLayoutSetPrototype(layoutSetPrototypeId);
078            }
079    
080            public static com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototype(
081                    long layoutSetPrototypeId)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    return getService().getLayoutSetPrototype(layoutSetPrototypeId);
085            }
086    
087            public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> search(
088                    long companyId, java.lang.Boolean active,
089                    com.liferay.portal.kernel.util.OrderByComparator obc)
090                    throws com.liferay.portal.kernel.exception.PortalException,
091                            com.liferay.portal.kernel.exception.SystemException {
092                    return getService().search(companyId, active, obc);
093            }
094    
095            public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
096                    long layoutSetPrototypeId,
097                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
098                    java.lang.String description, boolean active,
099                    boolean layoutsUpdateable,
100                    com.liferay.portal.service.ServiceContext serviceContext)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException {
103                    return getService()
104                                       .updateLayoutSetPrototype(layoutSetPrototypeId, nameMap,
105                            description, active, layoutsUpdateable, serviceContext);
106            }
107    
108            public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
109                    long layoutSetPrototypeId, java.lang.String settings)
110                    throws com.liferay.portal.kernel.exception.PortalException,
111                            com.liferay.portal.kernel.exception.SystemException {
112                    return getService()
113                                       .updateLayoutSetPrototype(layoutSetPrototypeId, settings);
114            }
115    
116            public static LayoutSetPrototypeService getService() {
117                    if (_service == null) {
118                            _service = (LayoutSetPrototypeService)PortalBeanLocatorUtil.locate(LayoutSetPrototypeService.class.getName());
119    
120                            ReferenceRegistry.registerReference(LayoutSetPrototypeServiceUtil.class,
121                                    "_service");
122                    }
123    
124                    return _service;
125            }
126    
127            /**
128             * @deprecated As of 6.2.0
129             */
130            public void setService(LayoutSetPrototypeService service) {
131            }
132    
133            private static LayoutSetPrototypeService _service;
134    }