001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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 allowModifications, boolean allowLayoutAddition,
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                            allowModifications, allowLayoutAddition, 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 allowModifications, boolean allowLayoutAddition,
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, allowModifications, allowLayoutAddition,
084                            serviceContext);
085            }
086    
087            public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
088                    long layoutSetPrototypeId, java.lang.String settings)
089                    throws com.liferay.portal.kernel.exception.PortalException,
090                            com.liferay.portal.kernel.exception.SystemException {
091                    return getService()
092                                       .updateLayoutSetPrototype(layoutSetPrototypeId, settings);
093            }
094    
095            public static LayoutSetPrototypeService getService() {
096                    if (_service == null) {
097                            _service = (LayoutSetPrototypeService)PortalBeanLocatorUtil.locate(LayoutSetPrototypeService.class.getName());
098    
099                            ReferenceRegistry.registerReference(LayoutSetPrototypeServiceUtil.class,
100                                    "_service");
101                            MethodCache.remove(LayoutSetPrototypeService.class);
102                    }
103    
104                    return _service;
105            }
106    
107            public void setService(LayoutSetPrototypeService service) {
108                    MethodCache.remove(LayoutSetPrototypeService.class);
109    
110                    _service = service;
111    
112                    ReferenceRegistry.registerReference(LayoutSetPrototypeServiceUtil.class,
113                            "_service");
114                    MethodCache.remove(LayoutSetPrototypeService.class);
115            }
116    
117            private static LayoutSetPrototypeService _service;
118    }