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 DDLRecord. This utility wraps
024     * {@link com.liferay.portlet.dynamicdatalists.service.impl.DDLRecordServiceImpl} 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 DDLRecordService
032     * @see com.liferay.portlet.dynamicdatalists.service.base.DDLRecordServiceBaseImpl
033     * @see com.liferay.portlet.dynamicdatalists.service.impl.DDLRecordServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class DDLRecordServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.dynamicdatalists.service.impl.DDLRecordServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
044                    long groupId, long recordSetId, int displayIndex,
045                    com.liferay.portlet.dynamicdatamapping.storage.DDMFormValues ddmFormValues,
046                    com.liferay.portal.service.ServiceContext serviceContext)
047                    throws com.liferay.portal.kernel.exception.PortalException {
048                    return getService()
049                                       .addRecord(groupId, recordSetId, displayIndex,
050                            ddmFormValues, serviceContext);
051            }
052    
053            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
054                    long groupId, long recordSetId, int displayIndex,
055                    com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
056                    com.liferay.portal.service.ServiceContext serviceContext)
057                    throws com.liferay.portal.kernel.exception.PortalException {
058                    return getService()
059                                       .addRecord(groupId, recordSetId, displayIndex, fields,
060                            serviceContext);
061            }
062    
063            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
064                    long groupId, long recordSetId, int displayIndex,
065                    java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
066                    com.liferay.portal.service.ServiceContext serviceContext)
067                    throws com.liferay.portal.kernel.exception.PortalException {
068                    return getService()
069                                       .addRecord(groupId, recordSetId, displayIndex, fieldsMap,
070                            serviceContext);
071            }
072    
073            public static void deleteRecord(long recordId)
074                    throws com.liferay.portal.kernel.exception.PortalException {
075                    getService().deleteRecord(recordId);
076            }
077    
078            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord deleteRecordLocale(
079                    long recordId, java.util.Locale locale,
080                    com.liferay.portal.service.ServiceContext serviceContext)
081                    throws com.liferay.portal.kernel.exception.PortalException {
082                    return getService().deleteRecordLocale(recordId, locale, serviceContext);
083            }
084    
085            /**
086            * Returns the Spring bean ID for this bean.
087            *
088            * @return the Spring bean ID for this bean
089            */
090            public static java.lang.String getBeanIdentifier() {
091                    return getService().getBeanIdentifier();
092            }
093    
094            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord getRecord(
095                    long recordId)
096                    throws com.liferay.portal.kernel.exception.PortalException {
097                    return getService().getRecord(recordId);
098            }
099    
100            public static void revertRecord(long recordId, java.lang.String version,
101                    com.liferay.portal.service.ServiceContext serviceContext)
102                    throws com.liferay.portal.kernel.exception.PortalException {
103                    getService().revertRecord(recordId, version, serviceContext);
104            }
105    
106            /**
107            * @deprecated As of 7.0.0, replaced by {@link #revertRecord(long, long,
108            String, ServiceContext)}
109            */
110            @Deprecated
111            public static void revertRecordVersion(long recordId,
112                    java.lang.String version,
113                    com.liferay.portal.service.ServiceContext serviceContext)
114                    throws com.liferay.portal.kernel.exception.PortalException {
115                    getService().revertRecordVersion(recordId, version, serviceContext);
116            }
117    
118            /**
119            * Sets the Spring bean ID for this bean.
120            *
121            * @param beanIdentifier the Spring bean ID for this bean
122            */
123            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
124                    getService().setBeanIdentifier(beanIdentifier);
125            }
126    
127            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
128                    long recordId, int displayIndex,
129                    java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
130                    boolean mergeFields,
131                    com.liferay.portal.service.ServiceContext serviceContext)
132                    throws com.liferay.portal.kernel.exception.PortalException {
133                    return getService()
134                                       .updateRecord(recordId, displayIndex, fieldsMap,
135                            mergeFields, serviceContext);
136            }
137    
138            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
139                    long recordId, boolean majorVersion, int displayIndex,
140                    com.liferay.portlet.dynamicdatamapping.storage.DDMFormValues ddmFormValues,
141                    com.liferay.portal.service.ServiceContext serviceContext)
142                    throws com.liferay.portal.kernel.exception.PortalException {
143                    return getService()
144                                       .updateRecord(recordId, majorVersion, displayIndex,
145                            ddmFormValues, serviceContext);
146            }
147    
148            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
149                    long recordId, boolean majorVersion, int displayIndex,
150                    com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
151                    boolean mergeFields,
152                    com.liferay.portal.service.ServiceContext serviceContext)
153                    throws com.liferay.portal.kernel.exception.PortalException {
154                    return getService()
155                                       .updateRecord(recordId, majorVersion, displayIndex, fields,
156                            mergeFields, serviceContext);
157            }
158    
159            public static DDLRecordService getService() {
160                    if (_service == null) {
161                            _service = (DDLRecordService)PortalBeanLocatorUtil.locate(DDLRecordService.class.getName());
162    
163                            ReferenceRegistry.registerReference(DDLRecordServiceUtil.class,
164                                    "_service");
165                    }
166    
167                    return _service;
168            }
169    
170            /**
171             * @deprecated As of 6.2.0
172             */
173            @Deprecated
174            public void setService(DDLRecordService service) {
175            }
176    
177            private static DDLRecordService _service;
178    }