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