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