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.portlet.dynamicdatalists.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 d d l record set remote service. This utility wraps {@link com.liferay.portlet.dynamicdatalists.service.impl.DDLRecordSetServiceImpl} 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 DDLRecordSetService
030     * @see com.liferay.portlet.dynamicdatalists.service.base.DDLRecordSetServiceBaseImpl
031     * @see com.liferay.portlet.dynamicdatalists.service.impl.DDLRecordSetServiceImpl
032     * @generated
033     */
034    public class DDLRecordSetServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.dynamicdatalists.service.impl.DDLRecordSetServiceImpl} and rerun ServiceBuilder to regenerate this class.
039             */
040            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet addRecordSet(
041                    long groupId, long ddmStructureId, java.lang.String recordSetKey,
042                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
043                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
044                    int minDisplayRows, int scope,
045                    com.liferay.portal.service.ServiceContext serviceContext)
046                    throws com.liferay.portal.kernel.exception.PortalException,
047                            com.liferay.portal.kernel.exception.SystemException {
048                    return getService()
049                                       .addRecordSet(groupId, ddmStructureId, recordSetKey,
050                            nameMap, descriptionMap, minDisplayRows, scope, serviceContext);
051            }
052    
053            public static void deleteRecordSet(long recordSetId)
054                    throws com.liferay.portal.kernel.exception.PortalException,
055                            com.liferay.portal.kernel.exception.SystemException {
056                    getService().deleteRecordSet(recordSetId);
057            }
058    
059            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet getRecordSet(
060                    long recordSetId)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException {
063                    return getService().getRecordSet(recordSetId);
064            }
065    
066            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateMinDisplayRows(
067                    long recordSetId, int minDisplayRows,
068                    com.liferay.portal.service.ServiceContext serviceContext)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return getService()
072                                       .updateMinDisplayRows(recordSetId, minDisplayRows,
073                            serviceContext);
074            }
075    
076            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
077                    long recordSetId, long ddmStructureId,
078                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
079                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
080                    int minDisplayRows,
081                    com.liferay.portal.service.ServiceContext serviceContext)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    return getService()
085                                       .updateRecordSet(recordSetId, ddmStructureId, nameMap,
086                            descriptionMap, minDisplayRows, serviceContext);
087            }
088    
089            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
090                    long groupId, long ddmStructureId, java.lang.String recordSetKey,
091                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
092                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
093                    int minDisplayRows,
094                    com.liferay.portal.service.ServiceContext serviceContext)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException {
097                    return getService()
098                                       .updateRecordSet(groupId, ddmStructureId, recordSetKey,
099                            nameMap, descriptionMap, minDisplayRows, serviceContext);
100            }
101    
102            public static DDLRecordSetService getService() {
103                    if (_service == null) {
104                            _service = (DDLRecordSetService)PortalBeanLocatorUtil.locate(DDLRecordSetService.class.getName());
105    
106                            ReferenceRegistry.registerReference(DDLRecordSetServiceUtil.class,
107                                    "_service");
108                            MethodCache.remove(DDLRecordSetService.class);
109                    }
110    
111                    return _service;
112            }
113    
114            public void setService(DDLRecordSetService service) {
115                    MethodCache.remove(DDLRecordSetService.class);
116    
117                    _service = service;
118    
119                    ReferenceRegistry.registerReference(DDLRecordSetServiceUtil.class,
120                            "_service");
121                    MethodCache.remove(DDLRecordSetService.class);
122            }
123    
124            private static DDLRecordSetService _service;
125    }