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 java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> search(
086                    long companyId, long groupId, java.lang.String keywords, int scope,
087                    int start, int end,
088                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
089                    throws com.liferay.portal.kernel.exception.SystemException {
090                    return getService()
091                                       .search(companyId, groupId, keywords, scope, start, end,
092                            orderByComparator);
093            }
094    
095            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> search(
096                    long companyId, long groupId, java.lang.String name,
097                    java.lang.String description, int scope, boolean andOperator,
098                    int start, int end,
099                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
100                    throws com.liferay.portal.kernel.exception.SystemException {
101                    return getService()
102                                       .search(companyId, groupId, name, description, scope,
103                            andOperator, start, end, orderByComparator);
104            }
105    
106            public static int searchCount(long companyId, long groupId,
107                    java.lang.String keywords, int scope)
108                    throws com.liferay.portal.kernel.exception.SystemException {
109                    return getService().searchCount(companyId, groupId, keywords, scope);
110            }
111    
112            public static int searchCount(long companyId, long groupId,
113                    java.lang.String name, java.lang.String description, int scope,
114                    boolean andOperator)
115                    throws com.liferay.portal.kernel.exception.SystemException {
116                    return getService()
117                                       .searchCount(companyId, groupId, name, description, scope,
118                            andOperator);
119            }
120    
121            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateMinDisplayRows(
122                    long recordSetId, int minDisplayRows,
123                    com.liferay.portal.service.ServiceContext serviceContext)
124                    throws com.liferay.portal.kernel.exception.PortalException,
125                            com.liferay.portal.kernel.exception.SystemException {
126                    return getService()
127                                       .updateMinDisplayRows(recordSetId, minDisplayRows,
128                            serviceContext);
129            }
130    
131            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
132                    long recordSetId, long ddmStructureId,
133                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
134                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
135                    int minDisplayRows,
136                    com.liferay.portal.service.ServiceContext serviceContext)
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException {
139                    return getService()
140                                       .updateRecordSet(recordSetId, ddmStructureId, nameMap,
141                            descriptionMap, minDisplayRows, serviceContext);
142            }
143    
144            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
145                    long groupId, long ddmStructureId, java.lang.String recordSetKey,
146                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
147                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
148                    int minDisplayRows,
149                    com.liferay.portal.service.ServiceContext serviceContext)
150                    throws com.liferay.portal.kernel.exception.PortalException,
151                            com.liferay.portal.kernel.exception.SystemException {
152                    return getService()
153                                       .updateRecordSet(groupId, ddmStructureId, recordSetKey,
154                            nameMap, descriptionMap, minDisplayRows, serviceContext);
155            }
156    
157            public static DDLRecordSetService getService() {
158                    if (_service == null) {
159                            _service = (DDLRecordSetService)PortalBeanLocatorUtil.locate(DDLRecordSetService.class.getName());
160    
161                            ReferenceRegistry.registerReference(DDLRecordSetServiceUtil.class,
162                                    "_service");
163                    }
164    
165                    return _service;
166            }
167    
168            /**
169             * @deprecated As of 6.2.0
170             */
171            public void setService(DDLRecordSetService service) {
172            }
173    
174            private static DDLRecordSetService _service;
175    }