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.portlet.dynamicdatalists.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 DDLRecordSet. This utility wraps
022     * {@link com.liferay.portlet.dynamicdatalists.service.impl.DDLRecordSetServiceImpl} 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 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    
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            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet addRecordSet(
060                    long groupId, long ddmStructureId, java.lang.String recordSetKey,
061                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
062                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
063                    int minDisplayRows, int scope,
064                    com.liferay.portal.service.ServiceContext serviceContext)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    return getService()
068                                       .addRecordSet(groupId, ddmStructureId, recordSetKey,
069                            nameMap, descriptionMap, minDisplayRows, scope, serviceContext);
070            }
071    
072            public static void deleteRecordSet(long recordSetId)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException {
075                    getService().deleteRecordSet(recordSetId);
076            }
077    
078            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet getRecordSet(
079                    long recordSetId)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException {
082                    return getService().getRecordSet(recordSetId);
083            }
084    
085            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateMinDisplayRows(
086                    long recordSetId, int minDisplayRows,
087                    com.liferay.portal.service.ServiceContext serviceContext)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return getService()
091                                       .updateMinDisplayRows(recordSetId, minDisplayRows,
092                            serviceContext);
093            }
094    
095            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
096                    long recordSetId, long ddmStructureId,
097                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
098                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
099                    int minDisplayRows,
100                    com.liferay.portal.service.ServiceContext serviceContext)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException {
103                    return getService()
104                                       .updateRecordSet(recordSetId, ddmStructureId, nameMap,
105                            descriptionMap, minDisplayRows, serviceContext);
106            }
107    
108            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
109                    long groupId, long ddmStructureId, java.lang.String recordSetKey,
110                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
111                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
112                    int minDisplayRows,
113                    com.liferay.portal.service.ServiceContext serviceContext)
114                    throws com.liferay.portal.kernel.exception.PortalException,
115                            com.liferay.portal.kernel.exception.SystemException {
116                    return getService()
117                                       .updateRecordSet(groupId, ddmStructureId, recordSetKey,
118                            nameMap, descriptionMap, minDisplayRows, serviceContext);
119            }
120    
121            public static DDLRecordSetService getService() {
122                    if (_service == null) {
123                            _service = (DDLRecordSetService)PortalBeanLocatorUtil.locate(DDLRecordSetService.class.getName());
124    
125                            ReferenceRegistry.registerReference(DDLRecordSetServiceUtil.class,
126                                    "_service");
127                    }
128    
129                    return _service;
130            }
131    
132            /**
133             * @deprecated As of 6.2.0
134             */
135            public void setService(DDLRecordSetService service) {
136            }
137    
138            private static DDLRecordSetService _service;
139    }