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