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 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                            com.liferay.portal.kernel.exception.SystemException {
083                    return _ddlRecordService.deleteRecordLocale(recordId, locale,
084                            serviceContext);
085            }
086    
087            @Override
088            public com.liferay.portlet.dynamicdatalists.model.DDLRecord getRecord(
089                    long recordId)
090                    throws com.liferay.portal.kernel.exception.PortalException,
091                            com.liferay.portal.kernel.exception.SystemException {
092                    return _ddlRecordService.getRecord(recordId);
093            }
094    
095            @Override
096            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
097                    long recordId, boolean majorVersion, int displayIndex,
098                    com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
099                    boolean mergeFields,
100                    com.liferay.portal.service.ServiceContext serviceContext)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException {
103                    return _ddlRecordService.updateRecord(recordId, majorVersion,
104                            displayIndex, fields, mergeFields, serviceContext);
105            }
106    
107            @Override
108            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
109                    long recordId, int displayIndex,
110                    java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
111                    boolean mergeFields,
112                    com.liferay.portal.service.ServiceContext serviceContext)
113                    throws com.liferay.portal.kernel.exception.PortalException,
114                            com.liferay.portal.kernel.exception.SystemException {
115                    return _ddlRecordService.updateRecord(recordId, displayIndex,
116                            fieldsMap, mergeFields, serviceContext);
117            }
118    
119            /**
120             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
121             */
122            public DDLRecordService getWrappedDDLRecordService() {
123                    return _ddlRecordService;
124            }
125    
126            /**
127             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
128             */
129            public void setWrappedDDLRecordService(DDLRecordService ddlRecordService) {
130                    _ddlRecordService = ddlRecordService;
131            }
132    
133            @Override
134            public DDLRecordService getWrappedService() {
135                    return _ddlRecordService;
136            }
137    
138            @Override
139            public void setWrappedService(DDLRecordService ddlRecordService) {
140                    _ddlRecordService = ddlRecordService;
141            }
142    
143            private DDLRecordService _ddlRecordService;
144    }