001    /**
002     * Copyright (c) 2000-2012 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.MethodCache;
019    import com.liferay.portal.kernel.util.ReferenceRegistry;
020    
021    /**
022     * 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.
023     *
024     * <p>
025     * 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.
026     * </p>
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            public static com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
041                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
042                    java.lang.String description, boolean active,
043                    boolean layoutsUpdateable,
044                    com.liferay.portal.service.ServiceContext serviceContext)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    return getService()
048                                       .addLayoutSetPrototype(nameMap, description, active,
049                            layoutsUpdateable, serviceContext);
050            }
051    
052            public static void deleteLayoutSetPrototype(long layoutSetPrototypeId)
053                    throws com.liferay.portal.kernel.exception.PortalException,
054                            com.liferay.portal.kernel.exception.SystemException {
055                    getService().deleteLayoutSetPrototype(layoutSetPrototypeId);
056            }
057    
058            public static com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototype(
059                    long layoutSetPrototypeId)
060                    throws com.liferay.portal.kernel.exception.PortalException,
061                            com.liferay.portal.kernel.exception.SystemException {
062                    return getService().getLayoutSetPrototype(layoutSetPrototypeId);
063            }
064    
065            public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> search(
066                    long companyId, java.lang.Boolean active,
067                    com.liferay.portal.kernel.util.OrderByComparator obc)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return getService().search(companyId, active, obc);
071            }
072    
073            public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
074                    long layoutSetPrototypeId,
075                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
076                    java.lang.String description, boolean active,
077                    boolean layoutsUpdateable,
078                    com.liferay.portal.service.ServiceContext serviceContext)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException {
081                    return getService()
082                                       .updateLayoutSetPrototype(layoutSetPrototypeId, nameMap,
083                            description, active, layoutsUpdateable, serviceContext);
084            }
085    
086            public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
087                    long layoutSetPrototypeId, java.lang.String settings)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return getService()
091                                       .updateLayoutSetPrototype(layoutSetPrototypeId, settings);
092            }
093    
094            public static LayoutSetPrototypeService getService() {
095                    if (_service == null) {
096                            _service = (LayoutSetPrototypeService)PortalBeanLocatorUtil.locate(LayoutSetPrototypeService.class.getName());
097    
098                            ReferenceRegistry.registerReference(LayoutSetPrototypeServiceUtil.class,
099                                    "_service");
100                            MethodCache.remove(LayoutSetPrototypeService.class);
101                    }
102    
103                    return _service;
104            }
105    
106            public void setService(LayoutSetPrototypeService service) {
107                    MethodCache.remove(LayoutSetPrototypeService.class);
108    
109                    _service = service;
110    
111                    ReferenceRegistry.registerReference(LayoutSetPrototypeServiceUtil.class,
112                            "_service");
113                    MethodCache.remove(LayoutSetPrototypeService.class);
114            }
115    
116            private static LayoutSetPrototypeService _service;
117    }