001    /**
002     * Copyright (c) 2000-present 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            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet addRecordSet(
044                    long groupId, long ddmStructureId, java.lang.String recordSetKey,
045                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
046                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
047                    int minDisplayRows, int scope,
048                    com.liferay.portal.service.ServiceContext serviceContext)
049                    throws com.liferay.portal.kernel.exception.PortalException {
050                    return getService()
051                                       .addRecordSet(groupId, ddmStructureId, recordSetKey,
052                            nameMap, descriptionMap, minDisplayRows, scope, serviceContext);
053            }
054    
055            public static void deleteRecordSet(long recordSetId)
056                    throws com.liferay.portal.kernel.exception.PortalException {
057                    getService().deleteRecordSet(recordSetId);
058            }
059    
060            /**
061            * Returns the Spring bean ID for this bean.
062            *
063            * @return the Spring bean ID for this bean
064            */
065            public static java.lang.String getBeanIdentifier() {
066                    return getService().getBeanIdentifier();
067            }
068    
069            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet getRecordSet(
070                    long recordSetId)
071                    throws com.liferay.portal.kernel.exception.PortalException {
072                    return getService().getRecordSet(recordSetId);
073            }
074    
075            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> search(
076                    long companyId, long groupId, java.lang.String keywords, int scope,
077                    int start, int end,
078                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> orderByComparator) {
079                    return getService()
080                                       .search(companyId, groupId, keywords, scope, start, end,
081                            orderByComparator);
082            }
083    
084            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> search(
085                    long companyId, long groupId, java.lang.String name,
086                    java.lang.String description, int scope, boolean andOperator,
087                    int start, int end,
088                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> orderByComparator) {
089                    return getService()
090                                       .search(companyId, groupId, name, description, scope,
091                            andOperator, start, end, orderByComparator);
092            }
093    
094            public static int searchCount(long companyId, long groupId,
095                    java.lang.String keywords, int scope) {
096                    return getService().searchCount(companyId, groupId, keywords, scope);
097            }
098    
099            public static int searchCount(long companyId, long groupId,
100                    java.lang.String name, java.lang.String description, int scope,
101                    boolean andOperator) {
102                    return getService()
103                                       .searchCount(companyId, groupId, name, description, scope,
104                            andOperator);
105            }
106    
107            /**
108            * Sets the Spring bean ID for this bean.
109            *
110            * @param beanIdentifier the Spring bean ID for this bean
111            */
112            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
113                    getService().setBeanIdentifier(beanIdentifier);
114            }
115    
116            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateMinDisplayRows(
117                    long recordSetId, int minDisplayRows,
118                    com.liferay.portal.service.ServiceContext serviceContext)
119                    throws com.liferay.portal.kernel.exception.PortalException {
120                    return getService()
121                                       .updateMinDisplayRows(recordSetId, minDisplayRows,
122                            serviceContext);
123            }
124    
125            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
126                    long groupId, long ddmStructureId, java.lang.String recordSetKey,
127                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
128                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
129                    int minDisplayRows,
130                    com.liferay.portal.service.ServiceContext serviceContext)
131                    throws com.liferay.portal.kernel.exception.PortalException {
132                    return getService()
133                                       .updateRecordSet(groupId, ddmStructureId, recordSetKey,
134                            nameMap, descriptionMap, minDisplayRows, serviceContext);
135            }
136    
137            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
138                    long recordSetId, long ddmStructureId,
139                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
140                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
141                    int minDisplayRows,
142                    com.liferay.portal.service.ServiceContext serviceContext)
143                    throws com.liferay.portal.kernel.exception.PortalException {
144                    return getService()
145                                       .updateRecordSet(recordSetId, ddmStructureId, nameMap,
146                            descriptionMap, minDisplayRows, serviceContext);
147            }
148    
149            public static DDLRecordSetService getService() {
150                    if (_service == null) {
151                            _service = (DDLRecordSetService)PortalBeanLocatorUtil.locate(DDLRecordSetService.class.getName());
152    
153                            ReferenceRegistry.registerReference(DDLRecordSetServiceUtil.class,
154                                    "_service");
155                    }
156    
157                    return _service;
158            }
159    
160            /**
161             * @deprecated As of 6.2.0
162             */
163            @Deprecated
164            public void setService(DDLRecordSetService service) {
165            }
166    
167            private static DDLRecordSetService _service;
168    }