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