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 prototype remote service. This utility wraps {@link com.liferay.portal.service.impl.LayoutPrototypeServiceImpl} 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 LayoutPrototypeService
029     * @see com.liferay.portal.service.base.LayoutPrototypeServiceBaseImpl
030     * @see com.liferay.portal.service.impl.LayoutPrototypeServiceImpl
031     * @generated
032     */
033    public class LayoutPrototypeServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.LayoutPrototypeServiceImpl} 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            /**
059            * @deprecated As of 6.2.0, replaced by {@link #addLayoutPrototype(long,
060            Map, String, boolean, ServiceContext)}
061            */
062            public static com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
063                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
064                    java.lang.String description, boolean active)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    return getService().addLayoutPrototype(nameMap, description, active);
068            }
069    
070            public static com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
071                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
072                    java.lang.String description, boolean active,
073                    com.liferay.portal.service.ServiceContext serviceContext)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return getService()
077                                       .addLayoutPrototype(nameMap, description, active,
078                            serviceContext);
079            }
080    
081            public static void deleteLayoutPrototype(long layoutPrototypeId)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    getService().deleteLayoutPrototype(layoutPrototypeId);
085            }
086    
087            public static com.liferay.portal.model.LayoutPrototype getLayoutPrototype(
088                    long layoutPrototypeId)
089                    throws com.liferay.portal.kernel.exception.PortalException,
090                            com.liferay.portal.kernel.exception.SystemException {
091                    return getService().getLayoutPrototype(layoutPrototypeId);
092            }
093    
094            public static java.util.List<com.liferay.portal.model.LayoutPrototype> search(
095                    long companyId, java.lang.Boolean active,
096                    com.liferay.portal.kernel.util.OrderByComparator obc)
097                    throws com.liferay.portal.kernel.exception.PortalException,
098                            com.liferay.portal.kernel.exception.SystemException {
099                    return getService().search(companyId, active, obc);
100            }
101    
102            /**
103            * @deprecated As of 6.2.0, replaced by {@link #updateLayoutPrototype(long,
104            Map, String, boolean, ServiceContext)}
105            */
106            public static com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
107                    long layoutPrototypeId,
108                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
109                    java.lang.String description, boolean active)
110                    throws com.liferay.portal.kernel.exception.PortalException,
111                            com.liferay.portal.kernel.exception.SystemException {
112                    return getService()
113                                       .updateLayoutPrototype(layoutPrototypeId, nameMap,
114                            description, active);
115            }
116    
117            public static com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
118                    long layoutPrototypeId,
119                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
120                    java.lang.String description, boolean active,
121                    com.liferay.portal.service.ServiceContext serviceContext)
122                    throws com.liferay.portal.kernel.exception.PortalException,
123                            com.liferay.portal.kernel.exception.SystemException {
124                    return getService()
125                                       .updateLayoutPrototype(layoutPrototypeId, nameMap,
126                            description, active, serviceContext);
127            }
128    
129            public static LayoutPrototypeService getService() {
130                    if (_service == null) {
131                            _service = (LayoutPrototypeService)PortalBeanLocatorUtil.locate(LayoutPrototypeService.class.getName());
132    
133                            ReferenceRegistry.registerReference(LayoutPrototypeServiceUtil.class,
134                                    "_service");
135                    }
136    
137                    return _service;
138            }
139    
140            /**
141             * @deprecated As of 6.2.0
142             */
143            public void setService(LayoutPrototypeService service) {
144            }
145    
146            private static LayoutPrototypeService _service;
147    }