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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the remote service utility for DDLRecordSet. This utility wraps
024     * {@link com.liferay.portlet.dynamicdatalists.service.impl.DDLRecordSetServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
029     *
030     * @author Brian Wing Shun Chan
031     * @see DDLRecordSetService
032     * @see com.liferay.portlet.dynamicdatalists.service.base.DDLRecordSetServiceBaseImpl
033     * @see com.liferay.portlet.dynamicdatalists.service.impl.DDLRecordSetServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class DDLRecordSetServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * 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.
042             */
043    
044            /**
045            * Returns the Spring bean ID for this bean.
046            *
047            * @return the Spring bean ID for this bean
048            */
049            public static java.lang.String getBeanIdentifier() {
050                    return getService().getBeanIdentifier();
051            }
052    
053            /**
054            * Sets the Spring bean ID for this bean.
055            *
056            * @param beanIdentifier the Spring bean ID for this bean
057            */
058            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059                    getService().setBeanIdentifier(beanIdentifier);
060            }
061    
062            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet addRecordSet(
063                    long groupId, long ddmStructureId, java.lang.String recordSetKey,
064                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
065                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
066                    int minDisplayRows, int scope,
067                    com.liferay.portal.service.ServiceContext serviceContext)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return getService()
071                                       .addRecordSet(groupId, ddmStructureId, recordSetKey,
072                            nameMap, descriptionMap, minDisplayRows, scope, serviceContext);
073            }
074    
075            public static void deleteRecordSet(long recordSetId)
076                    throws com.liferay.portal.kernel.exception.PortalException,
077                            com.liferay.portal.kernel.exception.SystemException {
078                    getService().deleteRecordSet(recordSetId);
079            }
080    
081            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet getRecordSet(
082                    long recordSetId)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException {
085                    return getService().getRecordSet(recordSetId);
086            }
087    
088            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> search(
089                    long companyId, long groupId, java.lang.String keywords, int scope,
090                    int start, int end,
091                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return getService()
094                                       .search(companyId, groupId, keywords, scope, start, end,
095                            orderByComparator);
096            }
097    
098            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> search(
099                    long companyId, long groupId, java.lang.String name,
100                    java.lang.String description, int scope, boolean andOperator,
101                    int start, int end,
102                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
103                    throws com.liferay.portal.kernel.exception.SystemException {
104                    return getService()
105                                       .search(companyId, groupId, name, description, scope,
106                            andOperator, start, end, orderByComparator);
107            }
108    
109            public static int searchCount(long companyId, long groupId,
110                    java.lang.String keywords, int scope)
111                    throws com.liferay.portal.kernel.exception.SystemException {
112                    return getService().searchCount(companyId, groupId, keywords, scope);
113            }
114    
115            public static int searchCount(long companyId, long groupId,
116                    java.lang.String name, java.lang.String description, int scope,
117                    boolean andOperator)
118                    throws com.liferay.portal.kernel.exception.SystemException {
119                    return getService()
120                                       .searchCount(companyId, groupId, name, description, scope,
121                            andOperator);
122            }
123    
124            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateMinDisplayRows(
125                    long recordSetId, int minDisplayRows,
126                    com.liferay.portal.service.ServiceContext serviceContext)
127                    throws com.liferay.portal.kernel.exception.PortalException,
128                            com.liferay.portal.kernel.exception.SystemException {
129                    return getService()
130                                       .updateMinDisplayRows(recordSetId, minDisplayRows,
131                            serviceContext);
132            }
133    
134            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
135                    long recordSetId, long ddmStructureId,
136                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
137                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
138                    int minDisplayRows,
139                    com.liferay.portal.service.ServiceContext serviceContext)
140                    throws com.liferay.portal.kernel.exception.PortalException,
141                            com.liferay.portal.kernel.exception.SystemException {
142                    return getService()
143                                       .updateRecordSet(recordSetId, ddmStructureId, nameMap,
144                            descriptionMap, minDisplayRows, serviceContext);
145            }
146    
147            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
148                    long groupId, long ddmStructureId, java.lang.String recordSetKey,
149                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
150                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
151                    int minDisplayRows,
152                    com.liferay.portal.service.ServiceContext serviceContext)
153                    throws com.liferay.portal.kernel.exception.PortalException,
154                            com.liferay.portal.kernel.exception.SystemException {
155                    return getService()
156                                       .updateRecordSet(groupId, ddmStructureId, recordSetKey,
157                            nameMap, descriptionMap, minDisplayRows, serviceContext);
158            }
159    
160            public static DDLRecordSetService getService() {
161                    if (_service == null) {
162                            _service = (DDLRecordSetService)PortalBeanLocatorUtil.locate(DDLRecordSetService.class.getName());
163    
164                            ReferenceRegistry.registerReference(DDLRecordSetServiceUtil.class,
165                                    "_service");
166                    }
167    
168                    return _service;
169            }
170    
171            /**
172             * @deprecated As of 6.2.0
173             */
174            public void setService(DDLRecordSetService service) {
175            }
176    
177            private static DDLRecordSetService _service;
178    }