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.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link DDLRecordService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see DDLRecordService
026     * @generated
027     */
028    @ProviderType
029    public class DDLRecordServiceWrapper implements DDLRecordService,
030            ServiceWrapper<DDLRecordService> {
031            public DDLRecordServiceWrapper(DDLRecordService ddlRecordService) {
032                    _ddlRecordService = ddlRecordService;
033            }
034    
035            @Override
036            public com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
037                    long groupId, long recordSetId, int displayIndex,
038                    com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
039                    com.liferay.portal.service.ServiceContext serviceContext)
040                    throws com.liferay.portal.kernel.exception.PortalException {
041                    return _ddlRecordService.addRecord(groupId, recordSetId, displayIndex,
042                            fields, serviceContext);
043            }
044    
045            @Override
046            public com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
047                    long groupId, long recordSetId, int displayIndex,
048                    java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
049                    com.liferay.portal.service.ServiceContext serviceContext)
050                    throws com.liferay.portal.kernel.exception.PortalException {
051                    return _ddlRecordService.addRecord(groupId, recordSetId, displayIndex,
052                            fieldsMap, serviceContext);
053            }
054    
055            @Override
056            public void deleteRecord(long recordId)
057                    throws com.liferay.portal.kernel.exception.PortalException {
058                    _ddlRecordService.deleteRecord(recordId);
059            }
060    
061            @Override
062            public com.liferay.portlet.dynamicdatalists.model.DDLRecord deleteRecordLocale(
063                    long recordId, java.util.Locale locale,
064                    com.liferay.portal.service.ServiceContext serviceContext)
065                    throws com.liferay.portal.kernel.exception.PortalException {
066                    return _ddlRecordService.deleteRecordLocale(recordId, locale,
067                            serviceContext);
068            }
069    
070            /**
071            * Returns the Spring bean ID for this bean.
072            *
073            * @return the Spring bean ID for this bean
074            */
075            @Override
076            public java.lang.String getBeanIdentifier() {
077                    return _ddlRecordService.getBeanIdentifier();
078            }
079    
080            @Override
081            public com.liferay.portlet.dynamicdatalists.model.DDLRecord getRecord(
082                    long recordId)
083                    throws com.liferay.portal.kernel.exception.PortalException {
084                    return _ddlRecordService.getRecord(recordId);
085            }
086    
087            @Override
088            public void revertRecord(long recordId, java.lang.String version,
089                    com.liferay.portal.service.ServiceContext serviceContext)
090                    throws com.liferay.portal.kernel.exception.PortalException {
091                    _ddlRecordService.revertRecord(recordId, version, serviceContext);
092            }
093    
094            /**
095            * @deprecated As of 7.0.0, replaced by {@link #revertRecord(long, long,
096            String, ServiceContext)}
097            */
098            @Deprecated
099            @Override
100            public void revertRecordVersion(long recordId, java.lang.String version,
101                    com.liferay.portal.service.ServiceContext serviceContext)
102                    throws com.liferay.portal.kernel.exception.PortalException {
103                    _ddlRecordService.revertRecordVersion(recordId, version, serviceContext);
104            }
105    
106            /**
107            * Sets the Spring bean ID for this bean.
108            *
109            * @param beanIdentifier the Spring bean ID for this bean
110            */
111            @Override
112            public void setBeanIdentifier(java.lang.String beanIdentifier) {
113                    _ddlRecordService.setBeanIdentifier(beanIdentifier);
114            }
115    
116            @Override
117            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
118                    long recordId, int displayIndex,
119                    java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
120                    boolean mergeFields,
121                    com.liferay.portal.service.ServiceContext serviceContext)
122                    throws com.liferay.portal.kernel.exception.PortalException {
123                    return _ddlRecordService.updateRecord(recordId, displayIndex,
124                            fieldsMap, mergeFields, serviceContext);
125            }
126    
127            @Override
128            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
129                    long recordId, boolean majorVersion, int displayIndex,
130                    com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
131                    boolean mergeFields,
132                    com.liferay.portal.service.ServiceContext serviceContext)
133                    throws com.liferay.portal.kernel.exception.PortalException {
134                    return _ddlRecordService.updateRecord(recordId, majorVersion,
135                            displayIndex, fields, mergeFields, serviceContext);
136            }
137    
138            /**
139             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
140             */
141            @Deprecated
142            public DDLRecordService getWrappedDDLRecordService() {
143                    return _ddlRecordService;
144            }
145    
146            /**
147             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
148             */
149            @Deprecated
150            public void setWrappedDDLRecordService(DDLRecordService ddlRecordService) {
151                    _ddlRecordService = ddlRecordService;
152            }
153    
154            @Override
155            public DDLRecordService getWrappedService() {
156                    return _ddlRecordService;
157            }
158    
159            @Override
160            public void setWrappedService(DDLRecordService ddlRecordService) {
161                    _ddlRecordService = ddlRecordService;
162            }
163    
164            private DDLRecordService _ddlRecordService;
165    }